Skip to content

python3.2 difficulty to use pre-generated pandas/msgpack.cpp #5831

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

Closed
yarikoptic opened this issue Jan 3, 2014 · 4 comments · Fixed by #5844
Closed

python3.2 difficulty to use pre-generated pandas/msgpack.cpp #5831

yarikoptic opened this issue Jan 3, 2014 · 4 comments · Fixed by #5844
Labels
Build Library building on various platforms
Milestone

Comments

@yarikoptic
Copy link
Contributor

on all aged Debian/Ubuntus (e.g. wheeze) where I build using pre-cythonized sources python3.2 seems to become blind and tries only to look for msgpack.c, not msgpack.cpp:

~/pandas-0.13.0# python3.2 setup.py build_ext
running build_ext
Traceback (most recent call last):
  File "setup.py", line 583, in <module>
    **setuptools_kwargs)
  File "/usr/lib/python3.2/distutils/core.py", line 148, in setup
    dist.run_commands()
  File "/usr/lib/python3.2/distutils/dist.py", line 917, in run_commands
    self.run_command(cmd)
  File "/usr/lib/python3.2/distutils/dist.py", line 936, in run_command
    cmd_obj.run()
  File "/usr/lib/python3.2/distutils/command/build_ext.py", line 344, in run
    self.build_extensions()
  File "setup.py", line 346, in build_extensions
    self.check_cython_extensions(self.extensions)
  File "setup.py", line 343, in check_cython_extensions
    """ % src)
Exception: Cython-generated file 'pandas/msgpack.c' not found.
                Cython is required to compile pandas from a development branch.
                Please install Cython or download a release package of pandas.

~/pandas-0.13.0# ls -l pandas/msgpack.cpp 
-rw-r--r-- 1 pbuilder pbuilder 570047 Jan  3 03:44 pandas/msgpack.cpp

I wonder if anyone ran into this misbehavior (before I start patching left and right ;-) )

@jreback
Copy link
Contributor

jreback commented Jan 3, 2014

this has a specific entry in setup.py to check for the cpp, but @wesm would know more

your line numbers are different that what I see in current master. is this a current setup.py file?

@yarikoptic
Copy link
Contributor Author

this one I believe is just a symptom of borken setuptools or distutils with python3.2

there were changes in setup.py after 0.13.0 release that is why line numbers might be different?

@jreback
Copy link
Contributor

jreback commented Jan 3, 2014

@yarikoptic sorry..was some slight changes (in formatting)

can you work around this?

@wesm
Copy link
Member

wesm commented Jan 3, 2014

I've never had to deal with this myself.

This issue was closed.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Build Library building on various platforms
Projects
None yet
Development

Successfully merging a pull request may close this issue.

3 participants