SystemError: error return without exception set


46
views
0
9 days ago by
nl3  
I am attempting to use Python with MSC Marc. As I am using "py_send" to open a model file on Marc, I get an error saying "SystemError: error return without exception set". The bottom of the screen reads "General: Document Open Failed:: Failed to open document 'C:\Program Files (x86)\Wing IDE 101 6.0\bin\x-wingide-python-shell:\97113032\2". I am unsure what it all means; I also checked my files and I do not seem to have the specified file location displayed at the bottom of the screen. I do have the py_mentat module imported and thus I do not think it is a module issue.
Community: Wing Python IDE
This exception indicates there's a problem in a C extension module.  Do you get it when you run code outside of Wing?
written 9 days ago by Wingware Support  
I tried to run the code through Window Command Prompt but it is unable to recognize the file path location of the py_mentat module, even though I tried to copy the module files to the same file location as the .py file. Thus I run into this problem and the code stops before I can look into this system error problem. I was able to fix this on Wing by specifying the file path.
written 8 days ago by nl3  
Do you need to specify a PYTHONPATH when running via the Windows Command Prompt?  How do you specify the file path within Wing?
written 8 days ago by Wingware Support  
I specified the file path within Wing by Edit > Configure Python... and specifying the absolute path location of py_mentat.pyd through "Python Path". I have been looking into setting the PYTHONPATH in environment variables but to no success.
written 8 days ago by nl3  
Try set PYTHONPATH=c:\full\path\name in the Windows Command Prompt window before you run python.
written 8 days ago by Wingware Support  
I tried this already but to no success. I was able to bypass this problem by copying and pasting the .py code file to the exact same location as the module file. I am now getting the same error as I am getting in Wing, which is "SystemError: error return without exception set".
written 8 days ago by nl3  

1 Answer


2
8 days ago by
This exception occurs when there is a bug in a C extension module.  Since this exception occurs outside of Wing, it is probably not related to Wing.  I recommend that you contact the author of the C extension module with a reproducible test case that does not involve Wing and ask them to fix it.
Please login to add an answer/comment or follow this question.

Similar posts:
Search »