cython compilation failing w/ python3.4
See original GitHub issueWill update with more details as I find time. Pinning to peewee 2.7 for now
Running setup.py install for peewee
Complete output from command /vagrant/.tox/py34/bin/python3.4 -c "import setuptools, tokenize;__file__='/tmp/pip-build-gasvyut8/peewee/setup.py';exec(compile(getattr(tokenize, 'open', open)(__file__).read().replace('\r\n', '\n'), __file__, 'exec'))" install --record /tmp/pip-mczyxnc7-record/install-record.txt --single-version-externally-managed --compile --install-headers /vagrant/.tox/py34/include/site/python3.4/peewee:
running install
running build
running build_py
running build_ext
cythoning playhouse/speedups.pyx to playhouse/speedups.c
building 'playhouse._speedups' extension
x86_64-linux-gnu-gcc -pthread -DNDEBUG -g -fwrapv -O2 -Wall -Wstrict-prototypes -g -fstack-protector-strong -Wformat -Werror=format-security -D_FORTIFY_SOURCE=2 -fPIC -I/usr/include/python3.4m -I/vagrant/.tox/py34/include/python3.4m -c playhouse/speedups.c -o build/temp.linux-x86_64-3.4/playhouse/speedups.o
playhouse/speedups.c:1:2: error: #error Do not use this file, it is the result of a failed Cython compilation.
#error Do not use this file, it is the result of a failed Cython compilation.
^
Error compiling Cython file:
------------------------------------------------------------
...
cdef:
set model_set = set(models)
set seen = set()
list accum = []
for model in sorted(model_set, key=_sort_key, reverse=True):
^
------------------------------------------------------------
playhouse/speedups.pyx:318:48: Cannot convert 'tuple (object)' to Python object
error: command 'x86_64-linux-gnu-gcc' failed with exit status 1
Issue Analytics
- State:
- Created 8 years ago
- Comments:6 (3 by maintainers)
Top Results From Across the Web
Cython compilation has suddenly started failing
Show activity on this post. I have a cythonised application which until yesterday was compiling and running completely fine. The same code ...
Read more >Cython compilation has suddenly started failing
I have a cythonised application which until yesterday was compiling and running completely fine. The same code compiles and runs perfectly on ...
Read more >pip3 install cython fails every time.. It's frustrating.
Hi all,. I want to use Cython over python3, but without installing it for python3, modules do not recognize it. ... does not...
Read more >Source Files and Compilation - Cython's Documentation
In the case that Cython fails to compile a Python module, pyximport will fall back to loading the source modules instead.
Read more >Error compiling Cython file - Python Help
The problem you're having is that you are missing some required build dependencies. These are found in the build-system.requires key of the ...
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
So that is to confirm that it works correctly after upgrading your Cython?
the same error $ cython -V Cython version 0.23.4 $ python -V Python 2.7.6 `------------------------------------------------------------
…
playhouse/speedups.pyx:318:48: Cannot convert ‘tuple (object)’ to Python object
building ‘playhouse._speedups’ extension
creating build/temp.linux-x86_64-2.7
creating build/temp.linux-x86_64-2.7/playhouse
x86_64-linux-gnu-gcc -pthread -fno-strict-aliasing -DNDEBUG -g -fwrapv -O2 -Wall -Wstrict-prototypes -fPIC -I/usr/include/python2.7 -c playhouse/speedups.c -o build/temp.linux-x86_64-2.7/playhouse/speedups.o
playhouse/speedups.c:1:2: error: #error Do not use this file, it is the result of a failed Cython compilation.
#error Do not use this file, it is the result of a failed Cython compilation.
^
error: command ‘x86_64-linux-gnu-gcc’ failed with exit status 1 `