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

A note to pyenv users on Mac #122

Closed
randy3k opened this issue Mar 13, 2015 · 2 comments
Closed

A note to pyenv users on Mac #122

randy3k opened this issue Mar 13, 2015 · 2 comments

Comments

@randy3k
Copy link

randy3k commented Mar 13, 2015

I am on a Mac and using pyenv to manage my python versions.

When I run PyCall on a specific python version, I got

ImportError: No module named site

I dug in the code and discovered that the python dynamic library was not detected correctly.
It turns out that one have to install python via pyenv with --enable-framework in order to have the essential file installed.

env PYTHON_CONFIGURE_OPTS="--enable-framework" pyenv install 3.4.3

I just want to make a note here for future pyenv users

@stevengj
Copy link
Member

What precisely does --enable-framework do? Is PyCall not detecting the library, or is the library file that we need not installed?

@randy3k
Copy link
Author

randy3k commented Mar 13, 2015

--enable-framework will create the dynamic library lib/libpython3.4.dylib which is necessary for dlopen.
see also pyenv/pyenv#99

Without it, it installs only static library lib/libpython3.4m.a.

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

2 participants