-
Notifications
You must be signed in to change notification settings - Fork 1
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
ImportError: No module named _egsphant #1
Comments
Did you run the installation with "python setup.py install"? This package uses C modules which need to be compiled by the setup/install process. |
Repeated install to be sure, looks fine, as below running install I have a file EGSPhant.pyc in the folder egsnrc, which I presume was the result of compiling the c file _egsphant.c |
Well, I'm afraid I won't be able to look at this to fix. This code is > 8 years old, and I am no longer working in the field of radiation oncology. At a guess, it should not be too difficult to fix, since it seems like an issue with packaging. But there have been quite a lot of changes since I last worked on this code. |
OK if I get it working I will post an update. |
Tried on my windows PC at work, I get a different error Solution described here http://www.pandastack.com/unable-to-find-vcvarsall-bat-how-to-fix-on-windows/ I then install the MS VS C++ compiler from https://www.microsoft.com/en-us/download/confirmation.aspx?id=44266 After restarting my shell, get the same error in install. Perhaps this will help others. I will look into this http://pythonwheels.com/ |
On macOS 10.15.7, using the default Python 2.7:
Build is successful, and puts resulting
Then
I'm afraid I can't help with compiling on Windows: I only work on Linux or macOS. Perhaps installing |
Attempting to run plot_isodose.py and get the error
ImportError: No module named _egsphant
from EGSPhant.py. _egsphant appears to be a .c file in the egsnrcpy folder. Not sure what to do next..
Thanks
Robin
The text was updated successfully, but these errors were encountered: