-
Notifications
You must be signed in to change notification settings - Fork 49
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
Segmentation fault with CoordinateSet in Python #62
Comments
This problem seems to occur only with the |
The most likely problem is your version of openbabel is different than the one included with the pip package. Since the OBMol objects aren't compatible, it fails miserably. There a number of ways this could be dealt with.
I'm going to settle for 3 for now. It is possible that there is some other problem besides the versions (e.g. how the library was built vs changes in the source code). |
Can you provide the details of your system openbabel (or whatever openbabel package molgrid would be using)? |
Thank you for looking into this. I think having a warning after spotting this incompatibility would be great! I installed |
I can think of two solutions: (1) is easy to do. (2) will have to wait until I have some poor sod to fob it off onto. |
Given that (1) is less than ideal, I'd say (2) is the preferred option. If you have any pointers I could have a look into it? I started looking at conda-forge, but it was unclear to me how to deal with CUDA packages. |
Not really, having never done it. It looks like you need to come up with a build recipe. Figuring out the dependencies is probably the main difficulty and ensuring that you are building against an appropriate version of openbabel. I would look at the recipes for other packages. I would think making torch a dependency would pull in all the CUDA stuff you need. Incidentally, v0.5.1, which is now in pypi, has openbabel as a submodule. |
When trying to explicitly build a
CoordinateSet
object in Python as followsI get a segmentation fault:
I also tried to pass
obmol
directly (PyBel molecule) and to pass amolgrid.GninaIndexTyper
object as second argument, but always obtained the same error (or just aMemoryError
).OS: Ubuntu 18.04
conda
environment:The text was updated successfully, but these errors were encountered: