Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

dp testing error #774

Closed
mrinmoumandal143 opened this issue Jun 19, 2021 · 1 comment · Fixed by #797
Closed

dp testing error #774

mrinmoumandal143 opened this issue Jun 19, 2021 · 1 comment · Fixed by #797
Labels

Comments

@mrinmoumandal143
Copy link

mrinmoumandal143 commented Jun 19, 2021

I installed the python version of tensorflow and DeepMD. During the testing I am facing this issue :

(TensorFlow_venv) mrinmoy@Idea:~/software$ dp [-h] {train,freeze,test} ...
WARNING:tensorflow:From /home/mrinmoy/software/tensorflow_venv/lib/python3.6/site-packages/tensorflow_core/python/compat/v2_compat.py:65: disable_resource_variables (from tensorflow.python.ops.variable_scope) is deprecated and will be removed in a future version.
Instructions for updating:
non-resource variables are not supported in the long term
Traceback (most recent call last):
  File "/home/mrinmoy/software/tensorflow_venv/bin/dp", line 5, in <module>
    from deepmd.main import main
  File "/home/mrinmoy/software/tensorflow_venv/lib/python3.6/site-packages/deepmd/__init__.py", line 1, in <module>
    from .env import set_mkl
  File "/home/mrinmoy/software/tensorflow_venv/lib/python3.6/site-packages/deepmd/env.py", line 61, in <module>
    op_module = get_module("libop_abi")
  File "/home/mrinmoy/software/tensorflow_venv/lib/python3.6/site-packages/deepmd/env.py", line 58, in get_module
    module = tf.load_op_library(module_path + "{}.{}".format(module_name, ext))
  File "/home/mrinmoy/software/tensorflow_venv/lib/python3.6/site-packages/tensorflow_core/python/framework/load_library.py", line 61, in load_op_library
    lib_handle = py_tf.TF_LoadLibrary(library_filename)
tensorflow.python.framework.errors_impl.NotFoundError: /home/mrinmoy/software/tensorflow_venv/lib/python3.6/site-packages/deepmd/libop_abi.so: undefined symbol: _ZNK10tensorflow8OpKernel11TraceStringERKNS_15OpKernelContextEb
(tensorflow_venv) mrinmoy@Idea:~/software$ 

Could you please help me ?

Thanks
Mrinmoy Mandal

@njzjz
Copy link
Member

njzjz commented Jun 19, 2021

This is an inconsistent between tensorflow library and deepmd-kit library. If you were using pip install deepmd-kit, you may use pip install deepmd-kit --no-binary deepmd-kit instead to compile by yourself.

@njzjz njzjz linked a pull request Jun 25, 2021 that will close this issue
@njzjz njzjz added the document label Jun 25, 2021
@njzjz njzjz closed this as completed Jun 26, 2021
njzjz added a commit to njzjz/deepmd-kit that referenced this issue Sep 21, 2023
Since there are lots of parameters still not added (deepmodeling#771, deepmodeling#773, deepmodeling#774,
deepmodeling#781, deepmodeling#782), we only enable loose check for `dpgen run` (i.e.
`strict_check=False`).
@njzjz njzjz added Docs and removed document labels Nov 4, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants