-
Notifications
You must be signed in to change notification settings - Fork 158
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
InSty: NameError: name 'Interactions' is not defined #1932
Comments
Did you install the developed version of ProDy (from GitHub: https://github.com/prody/ProDy)? On the GitHub version, everything is working: In [1]: from prody import * |
Yes and in the released versions it is not. We have the same issue in #1924 |
In case someone does not know what to do:
Done. Enjoy using InSty and WatFinder. |
Thank you. Re-install the developed version works for me.
@> PDB file is found in working directory (5kqm.pdb). File /tools/ProDy/prody/proteins/interactions.py:2731, in Interactions.calcProteinInteractions(self, atoms, **kwargs) File /tools/ProDy/prody/proteins/interactions.py:434, in calcHydrogenBonds(atoms, **kwargs) File /tools/ProDy/prody/measure/contacts.py:306, in findNeighbors(atoms, radius, atoms2, unitcell, seqsep) File /tools/ProDy/prody/measure/contacts.py:217, in iterNeighbors(atoms, radius, atoms2, unitcell, seqsep) File /tools/ProDy/prody/kdtree/kdtree.py:179, in KDTree.call(self, radius, center) File /tools/ProDy/prody/kdtree/kdtree.py:259, in KDTree.getIndices(self) File /tools/ProDy/prody/kdtree/kdtree.py:291, in KDTree.getCount(self) AttributeError: 'C KDTree' object has no attribute 'neighbor_get_count'
|
That's interesting. In [1]: from prody import * @> Connecting wwPDB FTP server RCSB PDB (USA). |
Try this python setup.py build_ext --inplace --force |
Building the C extensions should fix kdtree and using inplace and -e should make sure python can find them |
problem solved! |
Great. Let’s keep it open so other people see it |
Which module is this Interactions class dependent on?
interactions = Interactions()
http://www.bahargroup.org/prody/tutorials/insty_tutorial/insty_tutorial.pdf
The text was updated successfully, but these errors were encountered: