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

Openbabel package name conflict #130

Open
klsarathk opened this issue Jul 25, 2022 · 2 comments
Open

Openbabel package name conflict #130

klsarathk opened this issue Jul 25, 2022 · 2 comments

Comments

@klsarathk
Copy link

klsarathk commented Jul 25, 2022

When installing "PLIP" via pip, the "openbabel" version mentioned in the requirements and to be installed shows a conflict. Given requirements shows a version of "~=3.0.0", but while installation shows it shows version " ==3.1.1.1" which never got released.

Expected solution changing the openbabel version to "==3.1.1".

**** Errors occurred ****

  1. pip install plip

Collecting openbabel
Using cached openbabel-3.1.1.1.tar.gz (82 kB)
Preparing metadata (setup.py) ... done
....... ...... ...
Building wheels for collected packages: openbabel
Building wheel for openbabel (setup.py) ... error
error: subprocess-exited-with-error

× python setup.py bdist_wheel did not run successfully.
│ exit code: 1
╰─> [15 lines of output]
running bdist_wheel
running build
running build_ext
Warning: invalid version number '3.1.1.1'.

  1. pip install plip "openbabel ==3.1.1"

ERROR: Could not find a version that satisfies the requirement openbabel==3.1.1 (from versions: 1.8, 1.8.1, 1.8.2, 1.8.4, 2.4.0, 2.4.1, 3.1.1.1)
ERROR: No matching distribution found for openbabel==3.1.1

@astomer2
Copy link

astomer2 commented Mar 22, 2024

I spent 2 hours on this problem and it turned out to be a publishing error with openbabel. In fact, openbabel can be installed correctly using pip install openbabel-wheel, but plip still cannot be installed correctly. My guess is that pip install openbabel is still used when installing dependencies. Now please let us pray that PLIP developers or openbabel developers fix these issues

@mestia
Copy link
Contributor

mestia commented Mar 24, 2024

Since there are different ways to install OpenBabel, such as as part of a distribution, as a Conda package, built locally, installed as a Python wheel, or via Homebrew, and so on, Plip I think should remove its hard dependency on OpenBabel and document that (already done).

Additionally, the Python code of Plip can provide an error message if OpenBabel bindings are not found and suggest one of the ways to install it. This approach is taken by some R libraries for example.

While having a hardcoded dependency on OpenBabel wheel may work for many users, it does not provide the option to use an existing installation of OpenBabel. Also it may be best to wait until the wheel is provided by the official OpenBabel distribution.

For more details about broken vers 3.1.1.1 see this issue: openbabel/openbabel#2408

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

3 participants