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
Compile issue - 'PyThreadState' #71
Comments
Hmm, strange, I did build successfully in Python 3.7 on Windows. I guess you are on Linux? I generated the files in Python 3.6, which I now realize might be a problem for Python 3.7 compatibility. In any case, the .cpp files are auto-generated, so re-generating them will probably fix it. Can you try that? Just set
before building. I don't actually know exactly how Cython works vis a vis backwards compatibility, but I assume generated code works in all previous versions of Python. Let me know and I can re-generate the files in Python 3.7 and check them in. |
Thanks for the advice! No luck yet though. After running the following, it still fails with the same error. I've attached the full output. I'm on a linux machine and installing in a clean miniconda environment. |
Looks like it did not re-generate the .cpp files because the file modification times of the .pyx files are older. Can you touch all the .pyx files? |
Sorry - I'm still running in to problems and decided to try using a clean anaconda environment. See the commands below and the error. [using gcc 6.2.0/python 3.7/Linux raijin3 3.10.0-957.21.3.el6.x86_64] conda create -n test-cylp python=3.7
ERROR: Failed building wheel for cylp |
Hmm, I can't really see what the actual error is there. Can you send the output of
which is a lot more verbose? |
Here it is!
|
Hmm, can't make much sense out of that. Are you using the latest master commit? I made some changes to the setup script and my best guess is that there is a bug there. Are you specifying |
Thanks for your patience! I'm using the latest master commit. Here's the current output of build (I get the same error using COIN_INSTALL_DIR)
|
I've worked through the issues with a software engineer in Australia. We now have CyLP compiling on the Australian national supercomputer :) The changes to setup.py are below:
|
Ah, thank you so much! I figured it was something buggy in the changes I introduced in |
By the way, was the final solution for the original issue just to re-generate the .cpp files? Were you eventually able to do that? |
Yes, this fixed the original issue :) All sorted now. |
This error "‘PyThreadState’ {aka ‘struct _ts’} has no member named ‘exc_type’; did you mean ‘curexc_type’?" just occurred for me. It is not fixed in the current beta. The env and touch workarounds seem to have no effect for me. |
OK, let me re-generate the cpp files with the latest Cython in Python 3.7, then we'll see if this fixes the problem for you and go from there. |
I re-generated the files now with Cython 0.29.12 in Python 3.7. Let me know if this fixes things |
I'm assuming that this is fixed. I'm closing for now. Please re-open if it's still an issue. |
|
No. |
Hi,
I've compiled CyLP before without any issues but just ran into a problem with Python 3.7
I'm using coincbc-2.10.2 (conda forge), python 3.7.3, numpy 1.16.4, gcc 9.1.0 and cython 0.29.11. Also the COIN_INSTALL_DIR has been correctly set.
I've seen similar errors from PyThreadState reported for pandas and numpy
link
Hope you can help!
Here's the error stack.
The text was updated successfully, but these errors were encountered: