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

OS X import Error .dylib #11

Closed
zchee opened this issue Oct 30, 2015 · 1 comment
Closed

OS X import Error .dylib #11

zchee opened this issue Oct 30, 2015 · 1 comment

Comments

@zchee
Copy link
Contributor

zchee commented Oct 30, 2015

In OS X, it will be build cpsm_py.dylib instead cpsm_py.so when remove SUFFIX flag.
6e00d1d

but, python can not import .dylib file... :(

> ls
cpsm.py  cpsm.vim  cpsm_py.dylib*

> python
Python 2.7.10 (default, Oct 31 2015, 01:36:43)
[GCC 4.2.1 Compatible Apple LLVM 7.0.0 (clang-700.1.78)] on darwin
Type "help", "copyright", "credits" or "license" for more information.
>>> import cpsm_py
Traceback (most recent call last):
  File "<stdin>", line 1, in <module>
ImportError: No module named cpsm_py
>>> import cpsm_py.dylib
Traceback (most recent call last):
  File "<stdin>", line 1, in <module>
ImportError: No module named cpsm_py.dylib

> mv cpsm_py.dylib cpsm_py.so

> python
Python 2.7.10 (default, Oct 31 2015, 01:36:43)
[GCC 4.2.1 Compatible Apple LLVM 7.0.0 (clang-700.1.78)] on darwin
Type "help", "copyright", "credits" or "license" for more information.
>>> import cpsm_py
>>> # import success

As with python_library, seems necessary osx dedicated flag.

Although there are many problems of OS X, Would you support?

@zchee
Copy link
Contributor Author

zchee commented Nov 22, 2015

Fixed on #12
Close.

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

No branches or pull requests

1 participant