-
Notifications
You must be signed in to change notification settings - Fork 74
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
ImportError: Could not find module 'torchmdnet_neighbors' in /torchmdnet/neighbors #226
Comments
Did you run "pip install ." in the torchmd-net folder also? |
This is the result of running 'pip install .' in the torchmd-net-main folder About the second suggestion, I couldn't use mamba on Google Colab. I try to add the required libraries to the Python installation in Colab as suggested in this stackoverflow article
But it also reports problems when it tries to load torchmdnet. |
I believe the issue there is that you are supposed to have this on the first cell: !pip install -q condacolab
import condacolab
condacolab.install() # expect a kernel restart The last line will reset the kernel, so the rest will not run. Having said this I have been trying to run it in google colab but I keep running into issues related to CUDA stuff created by the conda installation. |
I use
And apparently everything was installed without problems but then when I tried to import some libraries
I got the error
Also, I noticed that the versions of the packages installed using acellera are different from those indicated in the environment.yml file |
New question! In my local cpu I try to create the environment using
Also I tried
|
In colab, the torch/cuda versions installed as dependencies are interfering with the torch/cuda versions already available in the system. This is due to the fact that in colab you cannot create a new conda env, only use the base one which installs to /usr/local. To install in your current machine, do this: $ mamba create -n my_new_env -c acellera torchmd-net |
Hi, I tried to installed with the command you mention
and I got an error
|
The package is there: https://anaconda.org/acellera/torchmd-net/ |
I understood the origin of the problem, it is unrelated to GPUs. This is the output in my laptop: $ mamba install -c acellera torchmd-net==0.7.1
/home/raul/mambaforge/lib/python3.10/site-packages/conda_package_streaming/package_streaming.py:19: UserWarning: zstandard could not be imported. Running without .conda support.
warnings.warn("zstandard could not be imported. Running without .conda support.")
/home/raul/mambaforge/lib/python3.10/site-packages/conda_package_handling/api.py:29: UserWarning: Install zstandard Python bindings for .conda support
_warnings.warn("Install zstandard Python bindings for .conda support")
Looking for: ['torchmd-net==0.7.1']
conda-forge/linux-64 Using cache
conda-forge/noarch Using cache
acellera/linux-64 No change
acellera/noarch No change
Pinned packages:
- python 3.10.*
Could not solve for environment specs
The following package could not be installed
└─ torchmd-net 0.7.1 does not exist (perhaps a typo or a missing channel). The initial warnings are not present in the other machine. $ python
Python 3.10.8 | packaged by conda-forge | (main, Nov 22 2022, 08:26:04) [GCC 10.4.0] on linux
Type "help", "copyright", "credits" or "license" for more information.
>>> import zstandard
Traceback (most recent call last):
File "<stdin>", line 1, in <module>
File "/home/raul/mambaforge/lib/python3.10/site-packages/zstandard/__init__.py", line 39, in <module>
from .backend_c import * # type: ignore
ImportError: zstd C API versions mismatch; Python bindings were not compiled/linked against expected zstd version (10505 returned by the lib, 10502 hardcoded in zstd headers, 10502 hardcoded in the cext) The zstandard library is used for decompressing the newer .conda package format in the repodata.json files that are pulled from anaconda, which is compressed using the Zstandard algorithm. Without it working correctly, mamba is "blind" to packages in this section, such as torchmd-net in this case. |
Oh wait, you seem to be using OSX? There is no package built for OSX. Some dependencies prevent that. I do not have experience with OSX, so I cannot really guide you with building the package yourself there. |
Oh, I get it. Then I would try to do it in my laptop (which uses linux). |
Hello, I am trying to reproduce the results of the "Coarse Graining of Chignolin" section of the paper "TorchMD: A Deep Learning Framework for Molecular Simulations". I didn't have any problem when running the first part of the notebook Chignolin_Coarse-Grained_Tutorial.ipynb. However, when I tried to run the subsequent section I got the error message
ImportError: Could not find module 'torchmdnet_neighbors' in /content/drive/MyDrive/torchmdnet/neighbors
I want to run everything on Google Colab (because of a request of my PI) so I put the torchmdnet repo and torchmd in my Drive folder and also imported every required package indicated on the environment.yml; I am not sure which is exactly the source of error, so if anyone has an idea on how to solve it, it would be very appreciated!
Also if you consider that I must run this tutorial on a local cpu/gpu or cluster (I mean if it's the only way to do it), I would like to know.
The text was updated successfully, but these errors were encountered: