-
Notifications
You must be signed in to change notification settings - Fork 15
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 upon importing gdxpds with conda environment #73
Comments
Importing gdxcc works for me, importing gdxpds doesn't. Nice find! |
I have the same issue. Any solutions? |
@mattirish |
What is the latest on this issue. I am also having this problem now |
Note from some partial looking down this rabbit hole...
Result: Tested with gdxpds v1.3, conda 22.9.0 which installed python 3.11.3, under MacOS |
Note: with GAMS now fully uninstalled, I no longer get a segfault (partial win?) |
Further update. It seems this may have to do with some combination (might be one or the other) of multiple GAMS versions being installed and not fully uninstalling an old one and/or mixed up python/conda environment. I was finally able to get things to work again by completely deleting and then later reinstalling GAMS and creating a clean, only pip installed conda environment (made with conda for python, but then pip for all other packages) |
Fancy seeing you here, Bryan! Thanks for picking up this old, dusty torch and relighting it. I'm still using GAMS at Our Next Energy so this may come in handy! Leaving this open in case somebody comes along and wants to actually fix the bug. |
I encountered this variant of this issue on ARM based Macs. The issue in that instance was caused when a user had version of Anaconda Python and GAMS that were compiled using different instruction sets. The resolution was to ensure that an ARM based version of GAMS was available. If you aren't licensed for a version of GAMS that includes an ARM based installer a successful work around was to install both, set the path so that the older licensed version was used for optimization, and that for gdxpds the newer one was added using the GAMS_DIR environmental variable. |
I use conda for package management and install things with pip only when necessary, such as gdxpds. Despite creating new conda environments with Python versions ranging from 3.4 to 3.6, reinstalling gdxpds with each environment's pip, and then installing the appropriate GAMS bindings with version 26.1, I a segmentation fault every time I try to import gdxpds.
I fear it may be hard to diagnose, but I'm currently unable to use gdxpds, and had this issue on one of several virtual environments I had installed before recently reimaging my machine to upgrade its OS.
Here's the output of
pytest --pyargs gdxpds
:It does seem to be gdxcc-related, since the segfault occurs in gdxcc.py.
Will report back if I figure anything out.
The text was updated successfully, but these errors were encountered: