Bug 2087071 - obabel is unable to find OpenBabel plugins.
Summary: obabel is unable to find OpenBabel plugins.
Keywords:
Status: CLOSED DUPLICATE of bug 2112710
Alias: None
Product: Fedora
Classification: Fedora
Component: openbabel
Version: 36
Hardware: x86_64
OS: Linux
unspecified
high
Target Milestone: ---
Assignee: Antonio T. sagitter
QA Contact: Fedora Extras Quality Assurance
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2022-05-17 09:04 UTC by niklas.kappel
Modified: 2022-09-27 12:39 UTC (History)
5 users (show)

Fixed In Version:
Clone Of:
Environment:
Last Closed: 2022-09-27 12:39:55 UTC
Type: Bug
Embargoed:


Attachments (Terms of Use)

Description niklas.kappel 2022-05-17 09:04:37 UTC
Description of problem:
Running the command `obabel` provided by the package `openbabel` fails because it is unable to find OpenBabel plugins.

Version-Release number of selected component (if applicable):
3.1.1

How reproducible:
Always

Steps to Reproduce:
1. `sudo dnf install openbabel`
2. `obabel -L formats`

Actual results:
```
$ obabel -L formats
==============================
*** Open Babel Error  in LoadAllPlugins
  Unable to find OpenBabel plugins. Try setting the BABEL_LIBDIR environment variable.
==============================
*** Open Babel Error  in LoadAllPlugins
  Unable to find OpenBabel plugins. Try setting the BABEL_LIBDIR environment variable.
==============================
*** Open Babel Error  in LoadAllPlugins
  Unable to find OpenBabel plugins. Try setting the BABEL_LIBDIR environment variable.
==============================
*** Open Babel Error  in LoadAllPlugins
  Unable to find OpenBabel plugins. Try setting the BABEL_LIBDIR environment variable.
==============================
*** Open Babel Error  in LoadAllPlugins
  Unable to find OpenBabel plugins. Try setting the BABEL_LIBDIR environment variable.
formats is not a recognized plugin type. Those with instances of sub-types loaded are:
ops
```

Expected results:
obabel should list recognized file formats.

Additional info:
Trying to convert any chemical structure file results in the same "Unable to find OpenBabel plugins" error. The environment variable `BABEL_LIBDIR` is empty. Installing the `openbabel` package installed the dependencies `inchi-libs` and `openbabel-libs`.

Comment 1 Alexander Ploumistos 2022-09-27 09:30:29 UTC
I had the same issue with avogadro today, I had to run it with:
export BABEL_LIBDIR=/usr/lib64/openbabel/; avogadro2

Antonio, should the openbabel package be setting this variable upon installation? One would think that at least Open Babel's executables would be able to find these libraries.

Comment 2 Antonio T. sagitter 2022-09-27 10:44:25 UTC
This issue should be fixed in the build 3.1.1-12
https://src.fedoraproject.org/rpms/openbabel/c/36f45c5c9a6a43d32317be8075c5965f72db10e4?branch=rawhide

Comment 3 Alexander Ploumistos 2022-09-27 11:41:09 UTC
Thanks Antonio, I tested openbabel-3.1.1-12.fc36 and everything is working now, I think we can close this.

P.S.: Will you submit the F36 build to bodhi or do you want me to do that?

Comment 4 Antonio T. sagitter 2022-09-27 12:12:49 UTC
> P.S.: Will you submit the F36 build to bodhi or do you want me to do that?

I'm rebuilding openbabel for f36.

Comment 5 Alexander Ploumistos 2022-09-27 12:18:08 UTC
This is still available:
https://koji.fedoraproject.org/koji/buildinfo?buildID=2043288

Comment 6 Susi Lehtola 2022-09-27 12:39:55 UTC
This is a duplicate of BZ#2112710 which

*** This bug has been marked as a duplicate of bug 2112710 ***


Note You need to log in before you can comment on or make changes to this bug.