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

State file not found, a new one will be created. #2407

Closed
HugoDepping opened this issue Apr 26, 2023 · 6 comments
Closed

State file not found, a new one will be created. #2407

HugoDepping opened this issue Apr 26, 2023 · 6 comments

Comments

@HugoDepping
Copy link

HugoDepping commented Apr 26, 2023

Description of Issue

TypeError when trying to open a usda file with usdview. anyone with similair issue? i would like to follow the pixar usd tutorials

Steps to Reproduce

  1. Download https://github.com/PixarAnimationStudios/USD/blob/release/VERSIONS.md
  2. in x64 Native Tools Command Prompt for VS 2019 type: python "your/path/to/"Build_usd.py "C:\USD"
  3. Result build works
  4. in x64 Native Tools Command Prompt for VS 2019 type: usdview "your/path/to/"HelloWorld.usda

ERROR

C:\Projects\USD-release\USD-release\extras\usd\tutorials\helloWorld>usdview HelloWorld.usda
State file not found, a new one will be created.
Traceback (most recent call last):
File "C:\USD\bin\usdview", line 35, in
Usdviewq.Launcher().Run()
File "C:\USD\lib\python\pxr\Usdviewq_init_.py", line 86, in Run
self._LaunchProcess(arg_parse_result)
File "C:\USD\lib\python\pxr\Usdviewq_init
.py", line 396, in _LaunchProcess
(app, appController) = self.LaunchPreamble(arg_parse_result)
File "C:\USD\lib\python\pxr\Usdviewq_init
.py", line 386, in LaunchPreamble
appController = AppController(arg_parse_result, contextCreator)
File "C:\USD\lib\python\pxr\Usdviewq\appController.py", line 410, in init
self._dataModel = UsdviewDataModel(self._makeTimer, self._configManager.settings)
File "C:\USD\lib\python\pxr\Usdviewq\appController.py", line 128, in init
self._viewSettingsDataModel = ViewSettingsDataModel(self, settings)
File "C:\USD\lib\python\pxr\Usdviewq\viewSettingsDataModel.py", line 136, in init
QtCore.QObject.init(self)
TypeError: init() missing 2 required positional arguments: 'parent' and 'name'

@TanJeremy
Copy link

TanJeremy commented Apr 26, 2023

Hi, I had this issue monday,
to complement your submit, I made the build with python 3.10.6, i don't know about you, but as i'm not sure python 3.10 is supported, i didn't adress this issue.
If you want i found a workaroud:
in C:\USD\lib\python\pxr\Usdviewq\viewSettingsDataModel.py", line 136
you can inverse the inheritance order and invert the init order:

class ViewSettingsDataModel(StateSource, QtCore.QObject):

...


    def __init__(self, rootDataModel, parent):
        StateSource.__init__(self, parent, "model")
        QtCore.QObject.__init__(self)

it appear that QtCore.QObject.__init__() initiate StateSource.__init__() without argument

@HugoDepping
Copy link
Author

HugoDepping commented Apr 26, 2023

Thanks @TanJeremy this works! I used python 3.8.10

@sunyab
Copy link
Contributor

sunyab commented Apr 26, 2023

Hi all, just wanted to note that this is a known issue related to a change in behavior in PySide 6.5.0. A PR with a fix for this issue (which is the same fix as @TanJeremy posted) is here: #2392

An alternate workaround is to use an older version of PySide.

@tallytalwar
Copy link
Contributor

Filed as internal issue #USD-8272

@beersandrew
Copy link
Contributor

Thanks all for logging and posting about workarounds. Really appreciate it

@FlorianZ
Copy link
Contributor

FlorianZ commented May 1, 2023

Closing this given that it's a known issue and we have a PR that promises to fix this.

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

6 participants