Skip to content
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

Pip install: Problems on OSX (Symbol not found: _cs_di_norm) #31

Closed
merrellb opened this issue Jan 25, 2016 · 12 comments · Fixed by #35
Closed

Pip install: Problems on OSX (Symbol not found: _cs_di_norm) #31

merrellb opened this issue Jan 25, 2016 · 12 comments · Fixed by #35

Comments

@merrellb
Copy link

Installed from PyPI ("pip install fastfm") and I get the following error:

Python 3.5.1 (default, Dec  9 2015, 00:25:02) 
[GCC 4.2.1 Compatible Apple LLVM 7.0.0 (clang-700.1.76)] on darwin
Type "help", "copyright", "credits" or "license" for more information.
>>> import ffm
Traceback (most recent call last):
  File "<stdin>", line 1, in <module>
ImportError: dlopen(/Users/merrellb/.virtualenv/python3/lib/python3.5/site-packages/ffm.cpython-35m-darwin.so, 2): Symbol not found: _cs_di_norm
  Referenced from: /Users/merrellb/.virtualenv/python3/lib/python3.5/site-packages/ffm.cpython-35m-darwin.so
  Expected in: flat namespace
 in /Users/merrellb/.virtualenv/python3/lib/python3.5/site-packages/ffm.cpython-35m-darwin.so
>>> 
@ibayer ibayer changed the title Problems on OSX (Symbol not found: _cs_di_norm) Pip install: Problems on OSX (Symbol not found: _cs_di_norm) Jan 25, 2016
@merrellb
Copy link
Author

FWIW the issue exists in python 2.7.11

Python 2.7.11 (default, Dec 12 2015, 14:38:46) 
[GCC 4.2.1 Compatible Apple LLVM 7.0.2 (clang-700.1.81)] on darwin
Type "help", "copyright", "credits" or "license" for more information.
>>> import ffm
Traceback (most recent call last):
  File "<stdin>", line 1, in <module>
ImportError: dlopen(/Users/merrellb/venv/brian/lib/python2.7/site-packages/ffm.so, 2): Symbol not found: _cs_di_norm
  Referenced from: /Users/merrellb/venv/brian/lib/python2.7/site-packages/ffm.so
  Expected in: flat namespace
 in /Users/merrellb/venv/brian/lib/python2.7/site-packages/ffm.so

@ibayer
Copy link
Owner

ibayer commented Jan 25, 2016

pip install is not stable yet, and I'm surprised you found it ;) .
Currently only linux binaries are available on pip. I'm not sure if it's possible to "deactivate" pip for osx.
I'll open an issue with a detailed description about the current state of pip install asap.

I recommend to use the source install for osx in the meantime.

@merrellb
Copy link
Author

Thanks @ibayer. I don't have any experience with platform specific packaging but this link might be helpful:

http://python-packaging-user-guide.readthedocs.org/en/latest/distributing/#platform-wheels

@chezou
Copy link
Contributor

chezou commented Jan 25, 2016

I think egg might work on Mac OS X because it builds on installation.

@ibayer
Copy link
Owner

ibayer commented Jan 25, 2016

I just managed to build and upload wheels with travis. 😄
https://github.com/ibayer/fastFM-fork/releases
They work on linux. We could add this to master and I could upload platform specific wheel to pip
if this works on osx too.

@merrellb
Copy link
Author

An OSX specific wheel would be great (happy to do some testing)

Strangely I note that the current pip install creates a file called

site-packages/ffm.cpython-35m-darwin.so

which seems very Mac specific given the lack of binary OSX support (perhaps this is just some pip "magic" renaming the Linux library?)

@ibayer
Copy link
Owner

ibayer commented Jan 25, 2016

OSX specific wheels are available here:
https://github.com/ibayer/fastFM-fork/releases
You could try them
Python 2.7
pip install https://github.com/ibayer/fastFM-fork/releases/download/v.1.5/fastFM-0.1.1-cp27-none-macosx_10_5_x86_64.whl
Python 3.5
pip install https://github.com/ibayer/fastFM-fork/releases/download/v.1.5/fastFM-0.1.1-cp35-cp35m-macosx_10_5_x86_64.whl

@merrellb
Copy link
Author

Both seem to work great. Thanks!

@chezou
Copy link
Contributor

chezou commented Jan 26, 2016

On my Mac OS X which is Yosemite 10.10.5, fastFM could not install with wheel.

pip install https://github.com/ibayer/fastFM-fork/releases/download/v.1.5/fastFM-0.1.1-cp35-cp35m-macosx_10_5_x86_64.whl
fastFM-0.1.1-cp35-cp35m-macosx_10_5_x86_64.whl is not a supported wheel on this platform.

Result of pip freeze is here.

@merrellb
Copy link
Author

You sure you are using Python 3.5?

@chezou
Copy link
Contributor

chezou commented Jan 26, 2016

Oh, sorry. I used Python 3.4.4

@chezou
Copy link
Contributor

chezou commented Jan 26, 2016

I confirmed I can use fastFM on Python 3.5!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

3 participants