You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Solution to issue cannot be found in the documentation.
I checked the documentation.
Issue
Hello everyone,
I've installed openbabel via conda but when I tried reading file with pybel.readfile(), I got the following error:
*** Open Babel Error in ReadFile
Cannot read from /Users/sashaermilova/Downloads/temp/ABABIP_1.xyz
Traceback (most recent call last):
File "/Users/sashaermilova/Desktop/compare_pybel.py", line 3, in
mol1 = next(pybel.readfile("xyz", "/Users/sashaermilova/Downloads/temp/ABABIP_1.xyz"))
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
StopIteration
Hi,
This issue should probably be posted to the main OpenBabel repository (https://github.com/openbabel/openbabel).
But it looks like there is a problem with the file content. Have you tried converting the file to something else in e.g. obabel to see if it is correct?
Your code would give a StopIteration error when pybel can't read any more molecules from it.
Solution to issue cannot be found in the documentation.
Issue
Hello everyone,
I've installed openbabel via conda but when I tried reading file with pybel.readfile(), I got the following error:
*** Open Babel Error in ReadFile
Cannot read from /Users/sashaermilova/Downloads/temp/ABABIP_1.xyz
Traceback (most recent call last):
File "/Users/sashaermilova/Desktop/compare_pybel.py", line 3, in
mol1 = next(pybel.readfile("xyz", "/Users/sashaermilova/Downloads/temp/ABABIP_1.xyz"))
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
StopIteration
Here's the code I'm running:
from openbabel import pybel
mol1 = next(pybel.readfile("xyz", "/Users/sashaermilova/Downloads/temp/ABABIP_1.xyz"))
mol2 = next(pybel.readfile("xyz", "/Users/sashaermilova/Downloads/temp/ABABIP_6.xyz"))
fp1 = mol1.calcfp()
fp2 = mol2.calcfp()
similarity = fp1 | fp2
print(similarity)
How can I solve this problem?
Installed packages
Environment info
The text was updated successfully, but these errors were encountered: