-
Notifications
You must be signed in to change notification settings - Fork 19
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
'scipy' has no attribute 'spatial' #21
Comments
Irrelevant comment removed |
It's scipy.spatial, no scipy.special: pairwise_dist = scipy.spatial.distance.cdist(a, b, metric='euclidean') |
Both |
I don't understand the comment. The issue I am reporting is that confidence.py does not import scipy.spatial. Should it? |
If you have installed the scipy module as required by AF2, see this file, the error message should be gone. Scipy.spatial was not explicitly imported in confidence.py as you correctly pointed out, but the spatial module will be imported in other part of the code before confidence.py. |
It seems after installing AF2 I have two copies of scipy, one in regular site-packages and one that comes with jax: find ./ -name scipy -type d The one that comes with jax does not contain the spatial module: ls ./lib/python3.7/site-packages/jax/scipy |
Forgot to add, jax is correct version also: python.af2complex -c 'import jax;print(jax.version)' |
The numpy version after instalaltion of AF2 2.3.1 did not match the version listed in af2complex requirements.txt. |
From af2complex/src/alphafold/common/confidence.py
pairwise_dist = scipy.spatial.distance.cdist(a, b, metric='euclidean')
AttributeError: module 'scipy' has no attribute 'spatial'
when running example1.sh. There does not appear to be an import statement for scipy.spatial.
The text was updated successfully, but these errors were encountered: