question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Cython installation fails with pip - Cython.Runtime.refnanny extension

See original GitHub issue

I’m not sure whether this is a Cython or a pip issue, but building Cython using pip install --upgrade cython failed for me on two quite different python-2.7 installations during the step of building the Cython.Runtime.refnanny extension. One machine was Mac OS X Sierra with python installed from homebrew and using virtualenv. The other machine was on our linux cluster running CentOs. Virtualenv was present in both cases.

bash-4.1$ pip install --upgrade cython
Downloading/unpacking cython
  Downloading Cython-0.25.tar.gz (1.7Mb): 1.7Mb downloaded
  Running setup.py egg_info for package cython
    Unable to find pgen, not compiling formal grammar.

 .... skipping lots ...


    gcc -pthread -shared build/temp.linux-x86_64-2.7/home/xxx/virtualenvs/volker-py27/build/cython/Cython/Compiler/Code.o -L/g/software/linux/pack/python-2.7/lib -lpython2.7 -o build/lib.linux-x86_64-2.7/Cython/Compiler/Code.so
    building 'Cython.Runtime.refnanny' extension
    gcc -pthread -fno-strict-aliasing -g -O2 -DNDEBUG -g -fwrapv -O3 -Wall -Wstrict-prototypes -fPIC -I/g/software/linux/pack/python-2.7/include/python2.7 -c /home/xxx/virtualenvs/volker-py27/build/cython/Cython/Runtime/refnanny.c -o build/temp.linux-x86_64-2.7/home/xxx/virtualenvs/volker-py27/build/cython/Cython/Runtime/refnanny.o
    gcc: /home/xxx/virtualenvs/volker-py27/build/cython/Cython/Runtime/refnanny.c: No such file or directory 

pathnames above slightly anonymized

Issue Analytics

  • State:closed
  • Created 7 years ago
  • Comments:10 (6 by maintainers)

github_iconTop GitHub Comments

1reaction
robertwbcommented, Oct 27, 2016

I think I figured this out. It was due to a really old version of setuptools being used.

0reactions
totaamcommented, Oct 27, 2016

yum install python-devel gcc IIRC, that’s all I needed on centos 6.x to build Cython.

Read more comments on GitHub >

github_iconTop Results From Across the Web

Cython 0.21 installation/compilation error - Stack Overflow
I have been attempting to install Cython 0.21 on Linux Mint 17. I have tried using pip: sudo pip install Cython.
Read more >
Installing Cython — Cython 3.0.0a11 documentation
On Ubuntu or Debian, the command sudo apt-get install build-essential python3-dev will fetch everything you need. Mac OS X To retrieve gcc, one...
Read more >
Kivy install on Ubuntu issue - Google Groups
I believe I got python installed properly. When I attempt to install MPF from the downloaded folder, it seems to progress ok until...
Read more >
在Python 3.8.2中安装Kivy时出现了错误 - 七牛云
ERROR : Command errored out with exit status 1: command: 'C:\Users\LENOVO ... YOGA\\AppData\\Local\\Temp\\pip-wheel-4uht95r0\\cython\\setup.py'"'"'; ...
Read more >
[Maya-Python] MayaPy Cython Import Error
C:\Program Files\Autodesk\Maya2017\Python\Scripts>pip install cython ... compile an extension which could then be imported within Maya. Post by Ruchit Bhatt
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found