Skip to content
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

ModuleNotFoundError: No module named 'openai' #14

Closed
anqima-ai opened this issue May 14, 2023 · 2 comments
Closed

ModuleNotFoundError: No module named 'openai' #14

anqima-ai opened this issue May 14, 2023 · 2 comments

Comments

@anqima-ai
Copy link

This is the error message after typing the first line into the command line of PyMOL

PyMOL>run https://raw.githubusercontent.com/JinyuanSun/ChatMol/main/chatmol.py
Traceback (most recent call last):
File "/usr/local/Cellar/pymol/2.5.0/libexec/lib/python3.9/site-packages/pymol/parsing.py", line 467, in run
run_(path, ns_pymol, ns_pymol)
File "/usr/local/Cellar/pymol/2.5.0/libexec/lib/python3.9/site-packages/pymol/parsing.py", line 516, in run_file
execfile(file,global_ns,local_ns)
File "/usr/local/Cellar/pymol/2.5.0/libexec/lib/python3.9/site-packages/pymol/parsing.py", line 511, in execfile
exec(co, global_ns, local_ns)
File "https://raw.githubusercontent.com/JinyuanSun/ChatMol/main/chatmol.py", line 2, in
PyMOL Molecular Graphics System
ModuleNotFoundError: No module named 'openai'

But I have installed openai using PIP

(anaconda3)xxx-MacBook-Air:~ xxx$ which openai
/Users/xxx/opt/anaconda3/bin/openai

(anaconda3)xxx-MacBook-Air:~ xxx$ which pymol
/usr/local/bin/pymol

(anaconda3)xxx-MacBook-Air:~ xxx$ which python
/Users/xxx/opt/anaconda3/bin/python

Is this because my open sources PyMOL was installed at a different folder? Thanks!

@jiaboli007
Copy link
Collaborator

Make sure you install openai in PyMOL command line, like this:

image

@songyongshun
Copy link

songyongshun commented May 16, 2023

@anqima-ai I use the Education Only version 2.5.4 on windows, also encounter the same error.
Then I closed the pymol and reopened it again, the error is missing.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants