Trouble with develop build in py 3.4 in osx?

43 views
Skip to first unread message

Nick Eubank

unread,
Jul 17, 2015, 2:30:38 PM7/17/15
to pyd...@googlegroups.com
Hi All,

Try to do a development build with 3.4 (have successfully managed in 2.7). 

I git cloned; python setup.py build_ext --inplace; python setup.py develop. 

Anaconda seems convinced I have cython 0.22.1 installed, and got no errors. 

But when I try and import pandas I get: 

import pandas as pd
Traceback (most recent call last):

  File "<ipython-input-2-af55e7023913>", line 1, in <module>
    import pandas as pd

  File "/Users/Nick/github/pandas/pandas/__init__.py", line 13, in <module>
    "extensions first.".format(module))

ImportError: C extension: 'hashtable' not built. If you want to import pandas from the source directory, you may need to run 'python setup.py build_ext --inplace' to build the C extensions first.


Suggestions?

Thanks!

Nick

Nick Eubank

unread,
Jul 17, 2015, 9:02:57 PM7/17/15
to pyd...@googlegroups.com
Confirming it does seem to have been built, this is the output from python setup.py build_ext --inplace:

pandas(master)$python setup.py build_ext --inplace

running build_ext

skipping 'pandas/index.c' Cython extension (up-to-date)

skipping 'pandas/lib.c' Cython extension (up-to-date)

skipping 'pandas/parser.c' Cython extension (up-to-date)

skipping 'pandas/src/period.c' Cython extension (up-to-date)

skipping 'pandas/hashtable.c' Cython extension (up-to-date)

skipping 'pandas/algos.c' Cython extension (up-to-date)

skipping 'pandas/tslib.c' Cython extension (up-to-date)

skipping 'pandas/src/sparse.c' Cython extension (up-to-date)

skipping 'pandas/src/testing.c' Cython extension (up-to-date)

skipping 'pandas/msgpack.cpp' Cython extension (up-to-date)

Nick Eubank

unread,
Jul 18, 2015, 11:25:53 PM7/18/15
to pyd...@googlegroups.com
Thanks to stackoverflow: python setup.py build_ext --inplace --force

The "--force" seemed to do the trick. 
Reply all
Reply to author
Forward
0 new messages