-
Notifications
You must be signed in to change notification settings - Fork 1.3k
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
usdview executable not built when using build_scripts/build_usd.py on Mac OS #230
Comments
I think this is similar to issue #225 -- is pyside-uic (or pyside-uic-2.7) available in your PATH? Installing Pyside via MacPorts should put pyside-uic-2.7 in /opt/local/bin by default, so adding that to your PATH should get usdview building. |
Filed as internal issue #147963. |
@sunyab thanks for your work on this build script - /opt/local/bin/pyside-uic-2.7 is in my path and looks like the build script is finding it, I am getting another error... I turned on verbose level 3 -v -v -v and I get the following... -- Found PySide: with /opt/local/bin/python2.7, will use /opt/local/bin/pyside-uic-2.7 for pyside-uic binary -- Skipping alembic-based usddiff tests because PXR_BUILD_ALEMBIC_PLUGIN=OFF CMake Warning at pxr/usdImaging/bin/usdview/CMakeLists.txt:5 (message): Earlier in the build output I get this for OpenGL... STATUS: Installing PyOpenGL... |
/opt/local/bin/python2.7 is a MacPorts build of Python, and /Library/Python/2.7/ is for the os supplied system python. cmake is trying to cross-wire them together. @sunyab The reason I used homebrew to install PySide was that it uses system Python. I'm not sure if MacPorts also has a way to prefer system python? Having two pythons in the path can be a bit spooky. (A bit spooky means that both pythons can start to see bits of each other if you start to mess with $PATH and $PYTHON_PATH to resolve issues like this one with PyOpenGL, and ultimately you can run into dynamic linking problems) |
@sunyab @meshula - Yes there are two pythons... /usr/bin/python2.7 Apple's python MacPorts also creates a .profile file to put its python first in the system PATH
So to run the build_usd.py script I need to use: /usr/bin/python2.7 USD/build_scripts/build_usd.py -v -v -v $HOME/Projects/Pixar/BUILD/USD If I try to use MacPorts /opt/local/bin/python which is now first in the system path to run the build_usd.py script I get an SSL error when downloading the zlib dependency python USD/build_scripts/build_usd.py -v -v -v $HOME/Projects/Pixar/BUILD/USD STATUS: Installing zlib... |
I definitely feel like the right answer is not to let MacPorts install its own Python, if that's an option. The macports version of SSL also has issues, so having /opt/local/bin and sbin in the path can be problematic. |
@CreateTheImaginable - sorry you're running into these issues! Do you get the urlopen error if you rerun the build script using MacPorts' python? I've seen SSL errors from urlopen before, but they seem to be something server side and usually go away if I run the script again. If that's the case, I need to make the script more resilient to those errors. From your earlier post, my guess is that the build script used system python/pip to install PyOpenGL but then used MacPorts' python to build USD, which couldn't find PyOpenGL in its site-packages. I think if pip was installed from MacPorts as well well via:
the build script would do the right thing -- it would find MacPorts' pip via $PATH and use it to install PyOpenGL in MacPorts' site-packages. Ideally, the build script should at least warn users about this problem, though I'm not 100% sure how to go about that yet. @meshula - I don't think MacPorts has an option to use system python -- it seems like it wants to create its own isolated area for packages and dependencies. I had thought brew didn't support installing PySide on MacOS Sierra without some patches to the Qt source code, which we're not at liberty to do -- that's why the script asks users to use MacPorts instead. In theory, we should be able to change that when we're able to move usdview to PySide2/Qt5. |
Scratch my question about the urlopen SSL errors with MacPorts, I can reproduce those locally and they're different from what I had run into before. I see a bunch of pages about needing to install curl-ca-bundle from MacPorts for other SSL issues, and I wonder if that would help. |
@sunyab - the brew version of PyQt definitely doesn't work out of the box as you note. I've been using cartr's patched version, which gets installed such that system Python can see it. I'm careful not to let brew spider in any other dependencies though.
|
@sunyab @meshula - That worked like a charm using Apple's default python! I now have usdview running on MacOS! I uninstalled MacPorts using these instructions - https://guide.macports.org/chunked/installing.macports.uninstalling.html Did the git set up cd $HOME I then did brew install of qt4 & pyside brew install cartr/qt4/qt Set my PYTHONPATH environment variable export PYTHONPATH=$PYTHONPATH:/usr/local/lib/python2.7/site-packages Ran the build_usd.py build script python USD/build_scripts/build_usd.py -v -v -v $HOME/Projects/Pixar/BUILD/USD Set up Env variables export PYTHONPATH=$PYTHONPATH:$HOME/Projects/Pixar/BUILD/USD/lib/python And it works! :-) usdview ./USD/extras/usd/tutorials/convertingLayerFormats/Sphere.usda |
@CreateTheImaginable I've documented the homebrew variant on the build-club wiki, thanks for posting your steps. https://github.com/vfxpro99/usd-build-club/wiki/USD-on-macOS |
I get this error when I try to build... Traceback (most recent call last): I don't use Maya. Can I do the build without it? thanks, |
@carmandale brew install cmake |
…/feature/ios [OGSMOD-2797] Fix build error for iOS target. Step 1/2, sync code and fix conflict
Description of Issue
When building the "dev" branch using the python build script build_usd.py, the executable usdview is not built on MacOS
Steps to Reproduce
Install Pyside using https://www.macports.org as the build script recommends ( port install py27-pyside-tools ).
git clone https://github.com/PixarAnimationStudios/USD
cd USD
git checkout dev
cd ..
python USD/build_scripts/build_usd.py -v $HOME/Projects/Pixar/BUILD/USD
When the build completes successfully, usdview is not built and also usdview does not exist in the bin directory with the other tools ( i.e. usdcat, usddiff, usdedit, etc )
System Information (OS, Hardware)
MacOS 10.12.5 using Xcode 8.3.3, Mac Pro ( 2013 )
Package Versions
usd - dev branch v0.7.5
Build Flags
No special build flags
The text was updated successfully, but these errors were encountered: