-
Notifications
You must be signed in to change notification settings - Fork 136
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
Won't build on Mac OS with Python 3.6.0 installed through pyenv #87
Comments
Uninstall Python 2 and install 3.6 as super-user using homebrew. That is what I would do. |
This error has nothing to do with Python 2. Python 3.x uses the same symbols. When compiling extension modules, the symbols are supposed to stay unresolved; so that the binary extension module isn't bound to a specific build of the Python interpreter: http://blog.tim-smith.us/2015/09/python-extension-modules-os-x/ Unfortunately the OSX linker errors out on unresolved symbols by default, and it doesn't seem possible to pass the required You have to either:
|
Ok. I've tested both option 1 and 2 and they both seem to clear it up for me. Thanks! |
it is possible to pass extra link arguments with cargo
|
Neither of the two options seem to solve the problem today. How do you go about building a python-module on osx today? |
I am running Python 3.6.0:
And after running
cargo build
in theextensions/hello
folder, I get:I'm assuming it's trying to use the wrong version on Python as it's referencing Python 2 symbols? How can I fix this?
The text was updated successfully, but these errors were encountered: