-
Notifications
You must be signed in to change notification settings - Fork 27
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
Broken on Mac OSX #50
Comments
Python: 3.5.2. blosc (1.2.7). |
The bug is in |
The same issue happens with python-blosc 1.2.7.
The problem appears to be that This causes So the code appears to compile and link okay, but fails at runtime.
The path of least resistance would be passing in the necessary compiler flag via
For OS X users, your current options for using bloscpack appear to be: I believe you would call this a rock and a hard place. |
Thanks for the detailed low-level detective work, much appreciated! Do you upgrading the |
Thanks @oogali . I think the issue might be that Blosc is using different checks in: https://github.com/Blosc/c-blosc/blob/master/blosc/blosc.c#L65 and: https://github.com/Blosc/c-blosc/blob/master/blosc/blosc.c#L210 and that might be introducing problems. At any rate, as requiring C11 is quite unlikely for the life of the Blosc1 project, I removed this check in: Could you please confirm that this works for you? |
@FrancescAlted @esc This does appear to fix the issue with c-blosc, but should I be concerned that this brings in blosc 1.4.0 and not the 1.2.7 version that you previously pinned in python-blosc? I forked and made changes in my repos: |
Hmm, to truly test this, I should have probably made the change in tagged version v1.2.7 of python-blosc, right? |
Thanks for testing this. I think @esc pinned v1.2.7 in bloscpack just because of some segfaults in previous versions of C-Blosc, but I don't think this is relevant anymore in recent releases. IMO, going to 1.4.x is pretty safe. |
Closing as of #51 |
hz:> pip3 install bloscpack
hz:> blpk c utf.csv
Traceback (most recent call last):
File "/Library/Frameworks/Python.framework/Versions/3.5/bin/blpk", line 7, in
from bloscpack.cli import main
File "/Library/Frameworks/Python.framework/Versions/3.5/lib/python3.5/site-packages/bloscpack/init.py", line 9, in
from .args import (BloscArgs,
File "/Library/Frameworks/Python.framework/Versions/3.5/lib/python3.5/site-packages/bloscpack/args.py", line 6, in
import blosc
File "/Library/Frameworks/Python.framework/Versions/3.5/lib/python3.5/site-packages/blosc/init.py", line 12, in
from blosc.toplevel import (
File "/Library/Frameworks/Python.framework/Versions/3.5/lib/python3.5/site-packages/blosc/toplevel.py", line 16, in
from blosc import blosc_extension as _ext
ImportError: dlopen(/Library/Frameworks/Python.framework/Versions/3.5/lib/python3.5/site-packages/blosc/blosc_extension.cpython-35m-darwin.so, 2): Symbol not found: _aligned_alloc
Referenced from: /Library/Frameworks/Python.framework/Versions/3.5/lib/python3.5/site-packages/blosc/blosc_extension.cpython-35m-darwin.so
Expected in: flat namespace
in /Library/Frameworks/Python.framework/Versions/3.5/lib/python3.5/site-packages/blosc/blosc_extension.cpython-35m-darwin.so
The text was updated successfully, but these errors were encountered: