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

macOS - "Failed axiom: ' Py_IsInitialized() '" due to Homebrew Python2.7 installed - WORKAROUND FOUND #699

Closed
otri opened this issue Nov 19, 2018 · 1 comment

Comments

@otri
Copy link

otri commented Nov 19, 2018

Referring to Issue #19

@meshula and I were working on this issue together, and figured out a work-around.
Could be something for the cmake script to resolve more effectively.

Description of Issue

All the generated python utilities like usdcat, usdchecker, usddiff, usdedit, etc.. reference the incorrect python version, at the top of each script:

#!/usr/local/bin/python2.7

Because cmake builds all the libs with system python, the references are to that python version.
So instead, all these scripts should instead reference system python at:

#!/usr/bin/python

System Information (OS, Hardware)

macOS 10.14.1
homebrew installed Python 2.7

@jtran56
Copy link

jtran56 commented Nov 19, 2018

Filed as internal issue #USD-4923.

pixar-oss pushed a commit that referenced this issue Jan 30, 2019
The Python detection code appears to give incorrect
answers on Ubuntu: the code thinks the Python library
lives in /usr/lib, but it actually lives in a different
directory according to the multiarch specification. The
same issue would presumably occur on any distribution
implementing that spec, like Debian.

Since the problem this code was intended to solve
primarily occurs on macOS, this fix simply skips over
the Python detection on Linux.

See #19
See #699

(Internal change: 1933560)
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

3 participants