-
Notifications
You must be signed in to change notification settings - Fork 42
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
undefined symbol: Py_SET_TYPE #193
Comments
Hi @grisuthedragon, thanks for the report. The error message is interesting and would imply that the compilation step during
|
I can reproduce this (also Ubuntu 20.04). Output of This looks fine to me:
specifically
and
followed by CMake reporting:
This compiler warning, however, suggests wrong Numpy (and Python?) headers are used (I have numpy installed in base system via apt)
I'm going to uninstall system numpy and python3-dev, and try again. |
My comment about Python headers doesn't make sense: we're using the system Python in a venv, so we must use system headers in some way. Having said that I did uninstall those apt packages (and python3.8-dev), and I could successfully build. This makes sense i.t.o. numpy (see also below), but not, I think, python3-dev. I'm a bit confused about this. I reinstalled python3-dev and numpy via apt, and did a build from git working tree branch from v0.5.4. The command
If I look in /usr/include/python3.8:
My guess is gcc's include ordering gives preference to the system Numpy, since So, I don't know how to fix this, but a workaround is to uninstall system numpy ( |
FWIW, the Ubuntu package for development is |
…vironment Addresses python-controlgh-193, in that the user gets an error.
Nice digging @roryyorke. I am very surprised that this is an issue. We are certainly not the only package compiling stuff with both numpy and python headers, using the scikit-build cmake chain. What do we do different to other packages? |
…vironment Addresses python-controlgh-193, in that the user gets an error.
I have problem to build actual slycot GIT mainline on Debian due this check
This is the same directory mapped by symlink so this seems to be error to prevent build of the package. When I remove check the Slycot builds and works with python-control and pysimCoder on my computer. |
After installing slycot using pip I got the following error, when I am trying to import it:
I am using Ubuntu 20.04 with Python 3.8.10 and created a new virtual environment for it:
The text was updated successfully, but these errors were encountered: