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

Can't launch usdview on Windows #5599

Closed
johhnry opened this issue Dec 21, 2023 · 3 comments
Closed

Can't launch usdview on Windows #5599

johhnry opened this issue Dec 21, 2023 · 3 comments

Comments

@johhnry
Copy link

johhnry commented Dec 21, 2023

Version: Gaffer 1.3.9.0-windows
Third-party tools: _
Third-party modules: _

Description

I can't use usdview because the python\pxr\Usdviewq\attributeValueEditorUI.py file has been generated by Qt from designer in C++ rather than Python.

Steps to reproduce

  1. Download and extract Gaffer 1.3.9.0
  2. In Powershell:
> cd gaffer-1.3.9.0-windows
> $env:PATH = "$pwd\bin;$pwd\Lib;$env:PATH"
> $env:PYTHONPATH = "$pwd\python"
> $env:GAFFER_ROOT = $pwd
> .\bin\usdview

Debug log

Click to Expand

Traceback (most recent call last):
  File "<path_to_gaffer>\gaffer-1.3.9.0-windows\gaffer-1.3.9.0-windows\bin\usdview", line 28, in <module>
    import pxr.Usdviewq as Usdviewq
  File "<path_to_gaffer>\gaffer-1.3.9.0-windows\gaffer-1.3.9.0-windows\python\pxr\Usdviewq\__init__.py", line 32, in <module>
    from .qt import QtWidgets, QtCore
  File "<path_to_gaffer>\gaffer-1.3.9.0-windows\gaffer-1.3.9.0-windows\python\pxr\Usdviewq\qt.py", line 42, in <module>
    PySideModule = GetPySideModule()
  File "<path_to_gaffer>\gaffer-1.3.9.0-windows\gaffer-1.3.9.0-windows\python\pxr\Usdviewq\qt.py", line 31, in GetPySideModule
    from . import attributeValueEditorUI
  File "<path_to_gaffer>\gaffer-1.3.9.0-windows\gaffer-1.3.9.0-windows\python\pxr\Usdviewq\attributeValueEditorUI.py", line 1
    /********************************************************************************
    ^
SyntaxError: invalid syntax

Maybe it's a USD issue?

Thanks

@ericmehl
Copy link
Collaborator

I think it might be an issue with our dependencies build on Windows. It looks like at least a few, probably all, of the .ui files from the USD source are getting converted into c++ instead of Python. It looks correct on our Linux builds, so there's probably an issue with our build.

I'll look into it - I think we're going to be doing a dependency refresh soon so it can hopefully land in that update at the latest.

@aprayez
Copy link

aprayez commented Feb 27, 2024

Heya,

Just tested with 1.4.0.0b, I still getting the same error

Traceback (most recent call last):
  File "<dir>\packages\gaffer\1.4.0.0b\bin\usdview", line 28, in <module>
    import pxr.Usdviewq as Usdviewq
  File "<dir>\packages\gaffer\1.4.0.0b\python\pxr\Usdviewq\__init__.py", line 32, in <module>
    from .qt import QtWidgets, QtCore
  File "<dir>\packages\gaffer\1.4.0.0b\python\pxr\Usdviewq\qt.py", line 42, in <module>
    PySideModule = GetPySideModule()
  File "<dir>\packages\gaffer\1.4.0.0b\python\pxr\Usdviewq\qt.py", line 31, in GetPySideModule
    from . import attributeValueEditorUI
  File "<dir>\packages\gaffer\1.4.0.0b\python\pxr\Usdviewq\attributeValueEditorUI.py", line 1
    /********************************************************************************
    ^
SyntaxError: invalid syntax

Just to let you know, not a real roadblock :)

@knekke
Copy link

knekke commented May 6, 2024

It seems a faulty pyside-uic install might be responsible for this. Read from here:
PixarAnimationStudios/OpenUSD#1285 (comment)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
Archived in project
Development

No branches or pull requests

4 participants