-
Notifications
You must be signed in to change notification settings - Fork 1.2k
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 on macOS 10.14.6 - ImportError: cannot import name QtCore #1111
Comments
Out of curiousity - if you add the following lines before import attributeValueEditorUI
print attributeValueEditorUI.__file__ What output do you see? |
Filed as internal issue #USD-5847 |
Thats the output (in fact no output from those lines as far as I can see):
|
I'm hitting this same issue.
Perhaps imports are being generated differently by uic in newer versions of PySide2? Using: Can provide more info upon request. |
I am getting the same issue here... |
Hi all, thanks for the reports, we're observed this issue on our side as well and are looking into a fix. For the folks who are running into this, are you using PySide2 5.14.1? The test environment where we're hitting this is using 5.14.1, and I see @Seymour88 is as well. |
Yes I am using pyside2 5.14.1. |
I can confirm from multiple sources that 5.13.2 is the latest that works on macOS, later than that, it's broken. |
cool thank you for the information!! |
They (Qt) switched from a bespoke pyside2-uic to uic (with python support) in 5.14 https://bugreports.qt.io/browse/PYSIDE-1098 |
Yeah also using PySide2 5.14.1 (https://download.qt.io/official_releases/QtForPython/pyside2/PySide2-5.14.1-5.14.1-cp27-cp27m-macosx_10_13_intel.whl) here. That seems to be the culprit. |
I'm hitting the same issue on macOS 10.15, but I was successfully built the usd-core on win10 with flags like this USD-20.02 |
I guess if your build fails this is a Python 2 vs Python 3 issue. Catalina comes with Python 3 standard, and USD still relies on Python 2. |
Hi, @sttng |
downgrade your pyside2 to 5.13.2 and rebuild the whole USD and it should work. |
Thank you @danlee-lils, Bingo!, it's done, I pip uninstall the 5.14.1, and pip install the pyside2==5.13.2, usdview became alive and works. |
We have a fix for this issue checked in internally and will be pushing out to GitHub in the next few days. |
Works like a charm. Thank you. Will wait for the fix as well @sunyab 👍 |
This is a failure in the code to detect whether PySide or PySide2 is in use that does not work for PySide2 after 5.13. Removing the test will make it unable to work with one of these. My proposed patch to qt.py:
|
I got this error again, any solutions ?? usdview -h not working with the pyside2 version change as well. |
Description of Issue
Starting usdview will fail with ImportError:
Fix (for me)
Replacing the line below:
https://github.com/PixarAnimationStudios/USD/blob/be1a80f8cb91133ac75e1fc2a2e1832cd10d91c8/pxr/usdImaging/usdviewq/qt.py#L26
with
from PySide2 import QtCore
fixed the issue and usdview starts on macOS for me.
Steps to Reproduce
Install USD on macOS by following the instructions
Test the installation by running:
usdview extras/usd/tutorials/convertingLayerFormats/Sphere.usda
System Information (OS, Hardware)
macOS 10.14.6 (fresh install)
Package Versions
Not sure about the version, cloned the master branch from Github on 10th Feb 2020
Build Flags
python USD/build_scripts/build_usd.py /opt/local/USD
The text was updated successfully, but these errors were encountered: