Anyone get this invalid syntax issue when using Python 3 of Maya 2022?

Anyone get this invalid syntax issue when using Python 3 of Maya 2022?

Hai__Nguyen
Participant Participant
50,287 Views
24 Replies
Message 1 of 25

Anyone get this invalid syntax issue when using Python 3 of Maya 2022?

Hai__Nguyen
Participant
Participant

I got a tool I developed myself, which is still used okay in 2019 version of Maya. But when I updated to 2022 version, suddenly I couldn't use it anymore, the script editor said:

# Error: SyntaxError: file C:\Program Files\Autodesk\Maya2022\Python37\lib\site-packages\shiboken2\files.dir\shibokensupport\__feature__.py line 142: invalid syntax # 

 

I designed it in a class way and called it like this in the Python tab:

 

import scenePublisher; reload(scenePublisher)

sc = scenePublisher.ScenePublisher(windowID = 'ScenePublisher', title = 'Scene Publisher', codec = 'film')

 

Anybody experienced this or know what this is I'll be really thankful!

 

 
0 Likes
Accepted solutions (1)
50,288 Views
24 Replies
Replies (24)
Message 22 of 25

llaxl
Community Visitor
Community Visitor

amazing! thankyou!

Message 23 of 25

waverider5023
Participant
Participant

The link provided is no longer working. Could someone update this? Thanks!Screen Shot 2022-06-06 at 10.40.42 AM.png

0 Likes
Message 24 of 25

waverider5023
Participant
Participant

I found the link again!   Maya 2022 if you are not ready for Python 3 

 

0 Likes
Message 25 of 25

carlos.hs93
Community Visitor
Community Visitor
WOW f python 3 but it worked
0 Likes