-
Notifications
You must be signed in to change notification settings - Fork 87
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
'pip install pyunicorn' no longer works - fails to build wheel #225
Comments
Hi @keriheuer, thank you for reporting this! I run into the exact same problem when installing pyunicorn, no matter what version. The install worked until recently so I suspect the problem comes from updates in the dependencies, most probably with the C compiler or Cython itself. In fact, as you noticed, the problem appears simply to be with the variable name It would still be cool to find out what dependency actually caused this problem to pop up. This way you might still be able to use pyunicorn v0.7.0 from pip making sure to use a previous version of the respective dependency. Unfortunately couldn't figure that out yet, using older versions of Cython and setuptools didn't fix it. Any ideas are most welcome! :) |
- as it might interfere with C's own macro for complex numbers defined in the `complex.h` library
Just merged it, hope this solves your issue when installing the most recent development version via Will leave the issue open for the pip install of v0.7.0 which is not yet resolved. |
This most recent development version also solved an error message I had while running cell 4 or 5 from the tutorial on climate networks. I can't reproduce it so can't be more specific, sorry. But it might be of help for you finding out which dependency caused this. |
Thanks for reporting. Do you remember if you were using numpy>=2.0 when that error occurred? Then it might also be related to #228. In the meantime, I could already rule out numpy as the cause of this issue though. |
I believe I used numpy 1.26.4 |
Little update on the last comment: It seems like these types of errors are actually produced when using Numpy 2.0 with yet incompatible versions of other dependencies, similar to this thread. In the specific case of the ClimateNetworks tutorial I could reproduce this behavior when calling |
My anaconda distribution got corrupted so I had to uninstall and reinstall it to start fresh, which meant having to reinstall all my Python packages. However, I can no longer install
pyunicorn
via pip or from the source code. I can't tell whether the issue is coming frompip
, the version ofconda
I have now (versus what I had installed back in September) or from updates to the latest version ofpyunicorn
. I've tried bothconda
andminiconda
from the Anaconda site directly and also via Homebrew (as a cask) -- all methods fail with the latest version ofpyunicorn
. I was able to dopip install pyunicorn==0.6.0
but then my import statementfrom pyunicorn.timeseries import RecurrencePlot
fails. I've been going nuts all week about this and am very confused as to what happened. I previously installedpyunicorn
on this same laptop (MacBook M3) and had installed the package both via pip through Homebrew's anaconda and from the Github repo, on my old laptop (MacBook M1).Below is the error message I get for any method I've tried. It seems to be coming up when compiling _core.numerics. I'm not very familiar with C but it looks like the
numerics.c
file has a defined macro 'I' which is overwriting / interfering with the system's default 'I' macro? I even tried adding a monkey patch to a clone of the GitHub repo (also shared below) and then doingpip install .
but the same error still came up. Also thought maybe the issue stemmed from my C compiler so I tried both the default version of clang as well as the clang compiler from Homebrew'sllvm
package. No luck -- both still give me this error. There's also lots of errors or warnings related to Numpy dependencies and header files.Finally, I don't know if it's related / helpful at all but I notice on my old laptop that the distribution info was stored in an
egg.info
file instead of the now-usedpyproject.toml
. I think the last time I installedpyunicorn
on this laptop was when it still hadegg.info
metadata instead ofpyproject.toml
.Here is the complete error message:
The monkey patch I tried to add:
System info:
OS: Macbook M3 Max
Python version: Multiple (3.10, 3.11.7, 3.12.3, 3.14.3, 3.14.4)
conda version: Multiple (24.1.2, 24.4.0)
miniconda version: Multiple (24.1.2, 24.4.0)
pyunicorn versions: Multiple (0.6.0, 0.7.0, 0.7.0.a1 from a fork in my repositories of a previous version that has since been removed from your Github)
The text was updated successfully, but these errors were encountered: