jr-marchand / caviar

// PROJECT PAUSED FOR NOW (lack of capacity) // Protein cavity identification and automatic subpocket decomposition
https://jr-marchand.github.io/caviar
Other
43 stars 14 forks source link

ModuleNotFoundError : No module named 'caviar.prody_parser.kdtree._CKDTree' #3

Closed leelasd closed 4 years ago

leelasd commented 4 years ago

Hi,

Thanks for writing this package. I have read your paper and I am very impressed by the results you have shown. I have tried to install Caviar on my Mac to do some testing. I have come across the following bug. Any suggestions on how to resolve this is would be highly appreciated.

I am using python 3.7.8 and the OS is macos catalina verson 10.15.6

Traceback (most recent call last):
  File "/Users/leeladodda/anaconda3/envs/caviar/bin/caviar", line 33, in <module>
    sys.exit(load_entry_point('caviar==1.1.0', 'console_scripts', 'caviar')())
  File "/Users/leeladodda/anaconda3/envs/caviar/lib/python3.7/site-packages/pkg_resources/__init__.py", line 488, in load_entry_point
    return get_distribution(dist).load_entry_point(group, name)
  File "/Users/leeladodda/anaconda3/envs/caviar/lib/python3.7/site-packages/pkg_resources/__init__.py", line 2872, in load_entry_point
    return ep.load()
  File "/Users/leeladodda/anaconda3/envs/caviar/lib/python3.7/site-packages/pkg_resources/__init__.py", line 2472, in load
    return self.resolve()
  File "/Users/leeladodda/anaconda3/envs/caviar/lib/python3.7/site-packages/pkg_resources/__init__.py", line 2478, in resolve
    module = __import__(self.module_name, fromlist=['__name__'], level=0)
  File "/Users/leeladodda/anaconda3/envs/caviar/lib/python3.7/site-packages/caviar/caviar.py", line 7, in <module>
    from caviar.prody_parser import *
  File "/Users/leeladodda/anaconda3/envs/caviar/lib/python3.7/site-packages/caviar/prody_parser/__init__.py", line 73, in <module>
    from . import kdtree
  File "/Users/leeladodda/anaconda3/envs/caviar/lib/python3.7/site-packages/caviar/prody_parser/kdtree/__init__.py", line 5, in <module>
    from .kdtree import KDTree
  File "/Users/leeladodda/anaconda3/envs/caviar/lib/python3.7/site-packages/caviar/prody_parser/kdtree/kdtree.py", line 18, in <module>
    from ._CKDTree import KDTree as _KDTree
ModuleNotFoundError: No module named 'caviar.prody_parser.kdtree._CKDTree'

Thanks for making the code available and great work.

Best wishes, Leela

jr-marchand commented 4 years ago

Hi Leela, thanks a lot for the nice comments and for the interest!

I literally pushed a new version yesterday, few hours before your message! And since the new code requires two external libraries in C and C++, I should have adjusted the conda package.

Option 1: I created an osx conda package. Maybe it works, but I don't have a Mac to test it.

Could you please try to:

Option 2: Use the previous CAVIAR version (1.0.1)

In case Option 1 still does not work, you should be able to use the previous version for now (without CIF/DCD support), which you can install with: conda create -n caviar_old -c jr-marchand caviar=1.0.

Alternative option: build the package yourself with setup.py

In that case, you would need to have the dependencies installed and the easiest way imo is the following.

Hopefully the first solution works. Please let me know! Cheers, JR

leelasd commented 4 years ago

Thank you so much @jr-marchand, Alternative strategy worked for me (doing python setup.py install ) Here is a visual by opening caviar files in ChimeraX

testing_caviar
jr-marchand commented 4 years ago

Thanks a lot for the feedback! I'm glad to see it works. I'll try again to generate a working conda package once I get access to an Apple computer.