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

Setup cannot import cmake #411

Open
loomcode opened this issue Dec 4, 2024 · 2 comments
Open

Setup cannot import cmake #411

loomcode opened this issue Dec 4, 2024 · 2 comments

Comments

@loomcode
Copy link

loomcode commented Dec 4, 2024

After cloning the repo and running

pip install .

I get..

from cmake import cmake
ModuleNotFoundError: No module named 'cmake'
error: command '../pymol/.venv/bin/cmake' failed with exit code 1

but..

./pymol/.venv/bin/cmake

returns expected output

_cmake [options]
cmake [options]
cmake [options] -S -B

Specify a source directory to (re-)generate a build system for it in the
current working directory. Specify an existing build directory to
re-generate its build system.

Run 'cmake --help' for more information._

Also when I run the python file with the offending import line it imports cmake without error. This seems like a path error but I'm running from the pymol-open-source directory..

cmake --version

cmake version 3.31.1

@ye11owSub
Copy link

Hey @loomcode !
Could you please provide the version of Python you are using and the operating system?
Additionally, did you created a new virtual environment before installing?

@loomcode
Copy link
Author

loomcode commented Dec 5, 2024

Hi ye11iwSub,

I did get it running via apt-get but didn't have luck installing from source. I'm using a python 3.10 VE in Pycharm. OS is Linux Ubuntu. Thanks!

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

2 participants