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 not found when building from source

See original GitHub issue

This is when running on current master. Might there be some other prereqs missing? Thanks

$ cython --version
Cython version 0.17.4
$ python setup.py build
running build
running build_py
copying pandas/version.py -> build/lib.linux-x86_64-2.7/pandas
running build_ext
Traceback (most recent call last):
  File "setup.py", line 516, in <module>
    **setuptools_kwargs)
  File "/usr/lib/python2.7/distutils/core.py", line 152, in setup
    dist.run_commands()
  File "/usr/lib/python2.7/distutils/dist.py", line 953, in run_commands
    self.run_command(cmd)
  File "/usr/lib/python2.7/distutils/dist.py", line 972, in run_command
    cmd_obj.run()
  File "/usr/lib/python2.7/distutils/command/build.py", line 128, in run
    self.run_command(cmd_name)
  File "/usr/lib/python2.7/distutils/cmd.py", line 326, in run_command
    self.distribution.run_command(command)
  File "/usr/lib/python2.7/distutils/dist.py", line 972, in run_command
    cmd_obj.run()
  File "/usr/lib/python2.7/distutils/command/build_ext.py", line 339, in run
    self.build_extensions()
  File "setup.py", line 328, in build_extensions
    self.check_cython_extensions(self.extensions)
  File "setup.py", line 325, in check_cython_extensions
    """ % src)
Exception: Cython-generated file 'pandas/parser.c' not found.
                Cython is required to compile pandas from a development branch.
                Please install Cython or download a release package of pandas.

Issue Analytics

  • State:closed
  • Created 10 years ago
  • Reactions:1
  • Comments:12 (7 by maintainers)

github_iconTop GitHub Comments

12reactions
gliptakcommented, Jun 7, 2013

@cpcloud

$ ci/print_versions.py 

INSTALLED VERSIONS
------------------
Python: 2.7.4.final.0
OS: Linux 3.8.0-23-generic #34-Ubuntu SMP Wed May 29 20:22:58 UTC 2013 x86_64
LC_ALL: None
LANG: en_US.UTF-8

Cython: Not installed
Numpy: 1.7.1
Scipy: 0.12.0
...

It is a Virtualenv, and it was not seeing the “global” cython.

I run pip install cython, and that corrected it.

Thank you for the pointers.

0reactions
shohamtalcommented, Dec 20, 2022

pip install cython didn’t help in my case (I was using python 3.9.4) Switched to Python 3.7.0 and the problem fixed

Read more comments on GitHub >

github_iconTop Results From Across the Web

Cython not found..Please install it error in buildozer
This may mean that the package is missing, has been obsoleted, or is only available from another source E: Package 'cython' has no ......
Read more >
Installing Cython — Cython 3.0.0a11 documentation
Unlike most Python software, Cython requires a C compiler to be present on the system. The details of getting a C compiler varies...
Read more >
ModuleNotFoundError: No module named 'Cython' in Python
The Python "ModuleNotFoundError: No module named 'Cython'" occurs when we forget to install the Cython module before importing it or install ...
Read more >
Source build can only find 'system' installation of Cython, not ...
When run naively as root, resulting in installation in /usr/local , the build appears to succeed. ... It seems that there's something in...
Read more >
Cython - PyPI
Cython is a source code translator based on Pyrex, but supports more cutting edge ... pip install Cython --install-option="--no-cython-compile" ...
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