DeepKE icon indicating copy to clipboard operation
DeepKE copied to clipboard

DeepKE/example/re/standard gives an Error.

Open Du-danger opened this issue 3 years ago • 5 comments

DeepKE/example/re/standard gives an Error.

I follow the procedure step by step, but get an error which is: /home/xxx/anaconda3/envs/deepke/lib/python3.8/site-packages/numpy-1.24.1-py3.8-linux-x86_64.egg/numpy/init.py", line 284, in getattr raise AttributeError("module {!r} has no attribute " AttributeError: module 'numpy' has no attribute 'object'

Is this is a bug?

Du-danger avatar Dec 28 '22 06:12 Du-danger

The error is happened, when I execute ''python run.py'' in dir DeepKE/example/re/standard.

Du-danger avatar Dec 28 '22 06:12 Du-danger

Please try to reinstall numpy==1.18.5. And we have updated setup.py.

xxupiano avatar Dec 28 '22 06:12 xxupiano

After ''reinstall numpy==1.18.5'', but get a new error: File "/home/xxx/anaconda3/envs/deepke/lib/python3.8/site-packages/botocore-1.24.45-py3.8.egg/botocore/httpsession.py", line 21, in from urllib3.util.ssl_ import ( ImportError: cannot import name 'DEFAULT_CIPHERS' from 'urllib3.util.ssl_' (/home/xxx/anaconda3/envs/deepke/lib/python3.8/site-packages/urllib3-2.0.0a2-py3.8.egg/urllib3/util/ssl_.py)

HaoJiaHuo!

Du-danger avatar Dec 28 '22 07:12 Du-danger

Maybe you can try pip install --upgrade urllib3.

xxupiano avatar Dec 28 '22 07:12 xxupiano

You can try to Install with the latest setup.py file.

If the installation still fails, you can set the 20 lines in setup.py to an empty list, install the source code in src, and then directly pip install - r requirements.txt

tlk1997 avatar Dec 28 '22 13:12 tlk1997