Join GitHub today
GitHub is home to over 20 million developers working together to host and review code, manage projects, and build software together.
Installation problem on FreeBSD 10.0 with Python 3.4.3 #10510
Comments
meeb
changed the title from
installation problem on FreeBSD 10.0 with Python 3.4.3 to Installation problem on FreeBSD 10.0 with Python 3.4.3
Jul 4, 2015
|
Are there errors related to Cython in the setup log if you run
|
meeb
commented
Jul 7, 2015
|
No errors from Cython. Cython was installed from pip. I have also tried removing Cython and installing/compiling it manually from the latest 0.22.1 tarball. Cython installs perfectly without issues as far as I can see. I removed and re-installed Pandas from the repo after manually installing Cython and this had no effect. I have also been able to reproduce this error on a clean FreeBSD 10.1 vm. |
|
Sorry, I mean when you build install pandas. Something like:
Does the log from the last step show anything strange? |
jreback
added the
Build
label
Jul 7, 2015
meeb
commented
Jul 7, 2015
|
There's a load of warnings and notes, but it does seem to build all the required files. Here's the full output: |
|
@meeb these are all ok |
meeb
commented
Jul 7, 2015
|
Yeah thought as much. Any other info I can provide or is this actually just something wrong in the build process on this platform? |
|
I think you might have a partial pip install. try
|
meeb
commented
Jul 7, 2015
|
I've tried installing this in multiple completely clean venvs on different FreeBSD 10.1 installs (on different physical machines) all with the same results. It's reproducible for Python3.4.2 on every FreeBSD 10.1 install I've tried so far. Interestingly, I've just noticed that installing pandas in a Python2.7.9 venv works fine without any errors at all on the same machines, both building from repo and installing via pip. Log: |
|
Hi! ... But on FreeBSD 10, we are using clang3.4, which choose standard C99 model by default. So... how to fix it? I will compile it with following command: CFLAGS='-fgnu89-inline' python setup.py build_ext -f --inplaceMaybe the proper way is patching the |
|
way to do this properly is to put in options based on the platform in |
|
Hi @jreback ! E.g. consider PANDAS_INLINE npy_int64
get_nat(void) {
return NPY_MIN_INT64;
}Note that there is a macro called This macro is defined in Those code are not generated by cython. IMO, there are two solution for this inline problem. (To be honest, many project still have this problem on FreeBSD, e.g. our depend:
|
|
ok I see well happy to take a patch that ifdefs things and add platform based CFLAGS is ok too (would add in setup.py) |
|
btw tha pandas.json IS ujson (with a layer on top for pandas use) |
|
ok, i will send a PR later |
iblis17
referenced
this issue
Oct 21, 2015
Merged
BLD: add CFLAGS `-fgnu89-inline` on FreeBSD 10+ #11398
jreback
added this to the
0.17.1
milestone
Oct 21, 2015
iblis17
added a commit
to iblis17/pandas
that referenced
this issue
Nov 10, 2015
|
|
iblis17 |
57426e1
|
jreback
closed this
in #11398
Nov 10, 2015
ghost
commented
Nov 12, 2015
|
I know this issue is closed, but just for anyone interested: The problem also exists with Python 3.4.3 on FreeBSD 10.2 (freshly installed from CD) at least on my machine. |
|
Hi @usrbinerl ! |
ghost
commented
Nov 12, 2015
|
Yes, I just did, but didn't resolve the issue. But take that with a grain of salt. I lack experience with compiling python from source, so I may have done something wrong. |
|
@usrbinerl Here is my workflow, FYI :) pyvenv-3.4 venv
source venv/bin/activate
pip install cython
pip install git+https://github.com/pydata/pandas.gitNote that Then, (venv) > python
Python 3.4.3 (default, May 26 2015, 17:46:50)
[GCC 4.2.1 Compatible FreeBSD Clang 3.4.1 (tags/RELEASE_34/dot1-final 208032)] on freebsd10
Type "help", "copyright", "credits" or "license" for more information.
>>> import pandas
>>> |
ghost
commented
Nov 12, 2015
|
Thanks. I'll try with your tips again this afternoon. |
jvkersch
referenced
this issue
Jan 24, 2016
Closed
DEV: Add static modifier to inline declarations. #12123
|
@meeb @iblis17 @usrbinerl I encountered a similar problem on Mac OS (which also uses Clang) when building a Pandas with debug symbols. I tackled this by adding the |
|
@jvkersch Nice work! |
ghost
commented
Jan 24, 2016
|
Works for me too now on FreeBSD. Thanks for your help. |
jreback
added a commit
that referenced
this issue
Jan 24, 2016
|
|
jvkersch + jreback |
b26fac8
|
|
You might also want to try adding |
|
@bashtage is that a more general comment or only for FreeBSD? |
meeb commentedJul 4, 2015
Hi,
I'm attempting to install pandas in a virtualenv on a FreeBSD system with Python 3.4.3. I can't see that I'm missing any obvious steps or dependancies. I get an error in a C module when importing pandas if I install pandas from pip, from a release tarball and with the repo (same error every time) that would imply something pretty major is missing. numpy, scipy and scikit-learn all install without any issues in the same venv. Example of the error:
When installing from a tarbal or the a checkout of the repo where setup.py is accessible and following the above suggestion (
python setup.py build_ext --inplace) it compiles without issue it does not resolve the issue.Some system information (print_versions.py taken from a repo checkout):
Any pointers would be appreciated, thanks.