schrodinger / pymol-open-source

Open-source foundation of the user-sponsored PyMOL molecular visualization system.
https://pymol.org/
Other
1.2k stars 281 forks source link

No module named 'pymol.cmd' #219

Closed biotech70 closed 7 months ago

biotech70 commented 2 years ago

Hi during the execution of Pymol I get the following error:

_Traceback (most recent call last): File "/home/proteininstitute/miniconda3/lib/python3.8/site-packages/pymol/init.py", line 72, in import pymol File "/home/proteininstitute/miniconda3/lib/python3.8/site-packages/pymol/init.py", line 558, in import pymol._cmd ModuleNotFoundError: No module named 'pymol.cmd'

JarrettSJohnson commented 2 years ago

Was this self built? The pymol open-source conda forge package?

biotech70 commented 2 years ago

No, I used your source code. I download it from Github and install it in ubuntu 20.04, but my bashrc file was deleted and after that, I get this error for Pymol execution.

biotech70 commented 2 years ago

Of course, I tried again to install the Pymol using your source code, which shows this error, but the following error was displayed. pymol error

smiles724 commented 2 years ago

I met a similar issue, which reports it cannot find pymol_cmd.

Is there anyone who can provide any solution to tackle it? I would really appreciate it! image

speleo3 commented 2 years ago

@smiles724 try something like sudo apt install libgl1

Other packages which provide libGL.so.1: https://packages.ubuntu.com/search?suite=focal&arch=amd64&mode=exactfilename&searchon=contents&keywords=libGL.so.1

smiles724 commented 2 years ago

Great thanks, it works!!!

JarrettSJohnson commented 7 months ago

Going to close. The issue from smiles724 is different than the original post and has been resolved. The image from biotech70 suggests that the python included in the environment does not match the platform config of what it's being ran on.

marking2004 commented 3 months ago

Hi during the execution of Pymol I get the following error:

_Traceback (most recent call last): File "/home/proteininstitute/miniconda3/lib/python3.8/site-packages/pymol/init.py", line 72, in import pymol File "/home/proteininstitute/miniconda3/lib/python3.8/site-packages/pymol/init.py", line 558, in import pymol._cmd ModuleNotFoundError: No module named 'pymol.cmd'

I got the same error too. How can I tackle it?