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
Compilation error: cannot initialize a parameter of type 'int32_t *' #6
Comments
I forgot to say that my version of Cython is 0.27.3 |
and the corresponding code in creaper.pyx: /* "pyreaper/creaper.pyx":184
|
I haven't encountered it ever. What platform are you on? Windows perhaps? |
No I'm on OSX 10.13.3 |
I'm on OSX 10.13.3 too. Could you provide me more detailed information? python version, conda/virtualenv, gcc (clang) version, etc. |
I'm using Python 2.7.10 (in a virtual environment)
and this is the flags used for the compilation: cc -fno-strict-aliasing -fno-common -dynamic -arch x86_64 -arch i386 -g -Os -pipe -fno-common -fno-strict-aliasing -fwrapv -DENABLE_DTRACE -DMACOSX -DNDEBUG -Wall -Wstrict-prototypes -Wshorten-64-to-32 -DNDEBUG -g -fwrapv -Os -Wall -Wstrict-prototypes -DENABLE_DTRACE -I/opt/X11/include -arch i386 -arch x86_64 -pipe -I/Users/cveaux/Projects/Deepzen/work/venv/lib/python2.7/site-packages/numpy/core/include -I/Users/cveaux/Projects/Deepzen/work/repos-3rd/pyreaper/lib/REAPER -I/System/Library/Frameworks/Python.framework/Versions/2.7/include/python2.7 -c pyreaper/creaper.cpp -o build/temp.macosx-10.13-intel-2.7/pyreaper/creaper.o |
Okay, I think
|
Great, it compiles and install fine with the ARCHFLAGS. |
Nice! I will leave the issue open until I find more general fix. |
on windows 10, 64-bit architecture, I have the same problem but cannot use the provided solution: simply no ARCHFLAGS option on windows to run pip. Doesn't work either to add this parameter as environment variable. Error log extract: |
Sorry for the inconvenience, but it's hard to fix for me since I don't have windows machines... |
Seems like |
This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions. |
This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions. |
Hi, I've being trying to install pyreaper, first with pip install pyreaper and then by cloning the repository and doing:
git submodule update --init --recursive
python setup.py build (I also tried python setup.py develop)
however in each case I got this error:
pyreaper/creaper.cpp:4153:155: error: cannot initialize a parameter of type 'int32_t *' (aka 'int *') with an rvalue of type '__pyx_t_5numpy_int32_t *' (aka 'long *')
it was preceded by this warning (although I think it's independent from the error message).
warning: "Using deprecated NumPy API, disable it by " "#defining NPY_NO_DEPRECATED_API NPY_1_7_API_VERSION" [-W#warnings]
Have you encountered this error before ?
The text was updated successfully, but these errors were encountered: