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
python depend failed #2659
Comments
Thanks for opening your first issue here! Be sure to follow the issue template! |
I speculate your setup attempts to fetch openbabel from pypi.org instead of
the OS' package manager.
If this is the case, check if the by bypass with openbabel-wheel equally works
for you. This works out of the box e.g., within a virtual environment set up
in Linux Debian 13/trixie when installing openbabel via
```shell
pip install -r ./requirements.txt
```
Its current update was published in October 2023.
|
Sorry, I'm a beginner in this field and I don't understand what you mean.Could you explain it in more detail? pip list
Package Version
--------------- --------
colorama 0.4.6
exceptiongroup 1.2.0
iniconfig 2.0.0
openbabel-wheel 3.1.1.19
packaging 23.2
pip 23.3.1
pluggy 1.3.0
pytest 7.4.3
setuptools 68.2.2
tomli 2.0.1
wheel 0.41.2 i use openbabel-wheel with new try,and delete build cache, but the error was same, this is my code cmake -DWITH_MAEPARSER=OFF -DWITH_COORDGEN=OFF -DPYTHON_BINDINGS=ON -DRUN_SWIG=ON -DPYTHON_EXECUTABLE=/home/jf/Programs/anaconda3/envs/gnina/bin/python .. thank you |
The following can only cover some parts. Inferring from Linux Debian, Linux CentOS provides some basic support of Python; mainly to support the operating system itself. And if you perform a proper update of the operating system, then equally these supporting libraries are going to be updated. Now to your project. There is a set of modules deemed essential to Python; they constitute the Python standard library every Python installation includes, for instance Additional functionality can be imported by additional libraries. One way to manage these new dependencies is by a
To keep the Python libraries which support your operating system in good shape, it is considered good practice to keep them separate (not accidentally modified) from packages used to develop and experiment with new packages. This is the background of using virtual environments which you
An aspect specific point to Last but not least I see your which python which normally points to * which might be itself a symbolic link to the interpreter |
You may like to update your swig if you havent already. centos7 default repos have swig 2.0 and as far as I remember, recent versions of cmake require swig 4+, or at least work better. |
Environment Information
Open Babel version: 3.1.1
Operating system and version: centos7
Expected Behavior
cmake -DWITH_MAEPARSER=OFF -DWITH_COORDGEN=OFF -DPYTHON_BINDINGS=ON -DRUN_SWIG=ON ..
when I use cmake install openbabel or use yum, all of this is ok.
but when -DPYTHON_BINDINGS is ON
there was a error in make(cmake is no error)
Actual Behavior
when make progress 99%
there is a error
python.i:80:
I think the openbabel did not use correct python, or the linux version is too old?
The text was updated successfully, but these errors were encountered: