FS#48790 - [python-openbabel] Importing pybel throws an IndexError or segfaults
Attached to Project:
Arch Linux
Opened by Xyne (Xyne) - Sunday, 03 April 2016, 05:08 GMT
Last edited by freswa (frederik) - Sunday, 10 May 2020, 20:42 GMT
Opened by Xyne (Xyne) - Sunday, 03 April 2016, 05:08 GMT
Last edited by freswa (frederik) - Sunday, 10 May 2020, 20:42 GMT
|
Details
Description:
Attempting to import pybel always results in one of the following (which one is random): Segmentation fault (core dumped) OR Traceback (most recent call last): File "./test.py", line 2, in <module> import pybel File "/usr/lib/python3.5/site-packages/pybel.py", line 87, in <module> descs = _getpluginnames("descriptors") File "/usr/lib/python3.5/site-packages/pybel.py", line 85, in _getpluginnames return [x.split()[0] for x in plugins] File "/usr/lib/python3.5/site-packages/pybel.py", line 85, in <listcomp> return [x.split()[0] for x in plugins] IndexError: list index out of range Steps to reproduce: #!/usr/bin/env python3 import pybel Solving the IndexError on line 85 with a conditional list comprehension still generates segfaults. The import never works. |
This task depends upon
Closed by freswa (frederik)
Sunday, 10 May 2020, 20:42 GMT
Reason for closing: Fixed
Additional comments about closing: from openbabel import pybel now works (slightly different way to import it in v3 compared to v2).
Sunday, 10 May 2020, 20:42 GMT
Reason for closing: Fixed
Additional comments about closing: from openbabel import pybel now works (slightly different way to import it in v3 compared to v2).
(as of now, this isn't even reproducible due to
FS#52409).