-
-
Notifications
You must be signed in to change notification settings - Fork 18.4k
Build error on OS X 10.7: tseries #77
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
Comments
You're building from head right? Do you have Cython installed? I looks like when it fails to cythonize the pyx files it should be printing an error message but it's not, should try to fix that |
I have cython installed from pypi, so it may be incompatible with Lion. I am trying to build cython from github now to see if that will fix things. I am building from your master branch, yes. |
See if you can get
to work. If so then I need to figure out what's wrong with the setup.py (sigh, the disaster of distutils and python packaging) |
OK, that worked, but subsequent building caused the following: compile options: '-I/Library/Python/2.7/site-packages/numpy-2.0.0.dev_e2af7b7_20110721-py2.7-macosx-10.7-intel.egg/numpy/core/include -I/System/Library/Frameworks/Python.framework/Versions/2.7/include/python2.7 -c' Are there any unwanted build flags in there? |
Aha! Restricting the build to 64-bit seems to do the trick. I can build successfully by restricting the LDFLAGS and ARCHFLAGS to -arch x86_64. |
Spoke too soon:
|
Ouch. May have to wait for the Cython folks to test on 10.7. |
I guess so. I have not been able to build SciPy either, so the problems are not confined to cython. |
I have the exact same issue reported at the top, but on 10.6 Snow Leopard. I'm using the 64 bit version of the OS. I've tried the installs with both python2.6 and 2.7. I'm running numpy 1.4 on python2.6 and 2.0 on python2.7, and the errors are identical. |
@keflavich what version of Cython |
python2.7: 0.14.1 I installed with easy_install on both. Those are also based on the presence of eggs in my site-packages directories; cython doesn't seem to have a version attribute |
can you post the exact output of running
|
$ python setup.py build_ext --inplace creating build compile options: '-I/Library/Frameworks/Python.framework/Versions/2.6/lib/python2.6/site-packages/numpy/core/include -I/Library/Frameworks/Python.framework/Versions/2.6/include/python2.6 -c' |
here's what mine looks like from a fresh git clone (I'm using EPD 7.0):
how did you install NumPy? I really don't know what to tell you guys (@fonnesbeck can you make sense of any of that?) -- this looks like some kind of distutils / Cython problem and is likely worth asking the Cython guys. I don't know enough about such matters to debug this |
Maybe EPD is more internally self consistent... |
Which Xcode are you using @keflavich? Try installing my packages at http://stronginference.com/scipy-superpack/ which I was able to use pandas under. |
Enthought have likely modified the distutils config to play nice with the scientific Python stack. Yet another reason why I've given up on building everything myself! Using Cython 0.14.1. |
I similarly highly recommend you use Chris's superpack, what I used to use on OS X before EPD (!) |
Thanks for those tips. I've attempted the scipy-superpack install before but never successfully. I'm still in build-everything-myself-hell because I don't want to risk undoing all the work I put into the installs. I think I'm using xcode 3.2.6. I installed numpy (and scipy, and matplotlib) from source, all 64-bit. |
OK, I'm not sure the superpack will work, then, as it is built around Xcode 4. |
Shouldn't the superpack be essentially equivalent to your builds (barring being on the newer XCode)? |
@fonnesbeck did you ever get this resolved (I saw that you got SciPy to build)? |
Not yet. I had to monkey with some includes on SciPy to get it working, but its not clear if its a similar issue for pandas. |
I have the same problem as keflavich but on Ubuntu 11.04 32-bit. Python 2.7.1+ with all packages from the Ubuntu repositories. Fresh git clone of pandas as of about an hour ago.
|
@snth so when you try important from the source directory, then, you're getting the same import error? |
@snth @keflavich can you please try building off of the current git HEAD (pushed moments ago). I switched to build using regular distutils instead of numpy's distutils same goes for you @fonnesbeck =P |
No, import error is slightly different. I'll clone your latest HEAD now. Here's my previous import error so long.
|
that's strange because it looks like everything worked fine from your "python setup.py built_ext --inplace" output. Is there a _tseries.so file under your pandas-fresh/pandas/ directory? |
Yes, there is. There's also a _tseries.so under /usr/local/lib/python2.7/dist-packages/pandas if I do a normal install. Just tried your latest git HEAD and I'm still getting the same behaviour. Incidentally, as I was checking for the _tseries.so file, I ran python from within the /usr/local/lib/python2.7/dist-packages/pandas directory and I could "import pandas" just fine. Do I have a PYTHONPATH problem? |
can you copy/paste the full output when you try "import pandas" completely outside of dist-packages and outside of the pandas source directory? Secondly, can you show me the list of files in dist-packages? Looks like some kind of path problem but very hard for me to diagnose |
Sorry, I was running python from the pandas source directory. From everywhere else it runs fine. I also cleaned out the latest install and rebuilt the previous version which I had started with and that runs fine as well. Really sorry to have wasted your time. |
awesome, no worries at all. it's basically a rite of passage in writing python code to struggle with builds at times =) i would like to resolve the issues that kevlavich and fonnesbeck have, though |
Cleared the milestone as this seems idiosyncratic, won't let it block the 0.4 release. But leaving the issue open until we figure out what's going on (!) |
Unless I'm mistaken this was an idiosyncratic issue and has been resolved :) |
Correct. |
Move test to correct place
I'm trying to build pandas on OSX 10.7, but run into an error building tseries:
building 'pandas._tseries' extension
C compiler: llvm-gcc-4.2 -DNDEBUG -g -fwrapv -Os -Wall -Wstrict-prototypes -arch x86_64 -pipe
creating build/temp.macosx-10.7-x86_64-2.7
creating build/temp.macosx-10.7-x86_64-2.7/pandas
creating build/temp.macosx-10.7-x86_64-2.7/pandas/src
compile options: '-I/Library/Python/2.7/site-packages/numpy-2.0.0.dev_e2af7b7_20110721-py2.7-macosx-10.7-intel.egg/numpy/core/include -I/System/Library/Frameworks/Python.framework/Versions/2.7/include/python2.7 -c'
llvm-gcc-4.2: pandas/src/tseries.c
i686-apple-darwin11-llvm-gcc-4.2: pandas/src/tseries.c: No such file or directory
i686-apple-darwin11-llvm-gcc-4.2: no input files
i686-apple-darwin11-llvm-gcc-4.2: pandas/src/tseries.c: No such file or directory
i686-apple-darwin11-llvm-gcc-4.2: no input files
error: Command "llvm-gcc-4.2 -DNDEBUG -g -fwrapv -Os -Wall -Wstrict-prototypes -arch x86_64 -pipe -I/Library/Python/2.7/site-packages/numpy-2.0.0.dev_e2af7b7_20110721-py2.7-macosx-10.7-intel.egg/numpy/core/include -I/System/Library/Frameworks/Python.framework/Versions/2.7/include/python2.7 -c pandas/src/tseries.c -o build/temp.macosx-10.7-x86_64-2.7/pandas/src/tseries.o" failed with exit status 1
I did not get this on Snow Leopard. Running Python 2.7.1 with a current, working numpy 2.0.
The text was updated successfully, but these errors were encountered: