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

[MAYA-102675] userExportedAttributesUI | cannot import name QStringListModel #366

Closed
mhamid3d opened this issue Mar 19, 2020 · 4 comments
Closed
Assignees
Labels
bug Something isn't working pxr Related to Pixar plugin reproduced Issue has been reproduced

Comments

@mhamid3d
Copy link

mhamid3d commented Mar 19, 2020

The userExportedAttributesUI python file is trying to import QStringListModel from PySide2.QtGui. On PySide2 I found that this class in fact lives in QtCore instead.

Steps to reproduce the behavior:

  1. Open any version of Maya using PySide2, open Script Editor
  2. Run the following code in a python tab:
from pxr.UsdMaya import userExportedAttributesUI

This code yields the following error:

# Error: ImportError: file /.../plugin/pxr/lib/python/pxr/UsdMaya/userExportedAttributesUI.py line 52: cannot import name QStringListModel #

SPECS -

  • Linux CentOs 7 x64
  • Maya 2020
@mhamid3d mhamid3d added the bug Something isn't working label Mar 19, 2020
@santosg87 santosg87 added pxr Related to Pixar plugin question Further information is requested labels Mar 24, 2020
@santosd santosd added reproduced Issue has been reproduced and removed question Further information is requested labels Apr 7, 2020
@santosd
Copy link
Collaborator

santosd commented Apr 7, 2020

I was able to reproduce this in PR114 with the Pixar plug. I think this one is definitely specific to the pxr plug-in. Maya USD doesn't contain userExportedAttributesUI from what I can see. Will speak with the team to see what we can do about this issue.

@santosd santosd removed their assignment Apr 7, 2020
@santosg87
Copy link
Collaborator

it's worth giving a try on this with an older build that hasn't updated Qt to confirm.

@harveyr-gh harveyr-gh changed the title userExportedAttributesUI | cannot import name QStringListModel [MAYA-102675] userExportedAttributesUI | cannot import name QStringListModel Jun 3, 2020
@mattyjams
Copy link
Contributor

Hi @mhamid3d, thanks for reporting this, and sorry it has languished so long. It somehow managed to slip by me earlier this year, and we've not yet tried to use this UI with Maya 2020+ which is where it starts to appear, so we hadn't tripped over it yet.

I just put up #812 which should address this.

@mattyjams mattyjams assigned mattyjams and unassigned santosg87 Oct 2, 2020
@mattyjams
Copy link
Contributor

This should be resolved in the dev branch with the merge of #812.

Thanks!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working pxr Related to Pixar plugin reproduced Issue has been reproduced
Projects
None yet
Development

No branches or pull requests

4 participants