Script editor-syntax error on Python import

Script editor-syntax error on Python import

Anonymous
Not applicable
1,002 Views
1 Reply
Message 1 of 2

Script editor-syntax error on Python import

Anonymous
Not applicable

Maya 2014_64

 

Newbie experiencing "invalid syntax error" when trying to import certain python files using the script editor.

These are always compiled files . Any ideas

All help much appreciated

 

John

0 Likes
1,003 Views
1 Reply
Reply (1)
Message 2 of 2

vijaya.prakash
Alumni
Alumni

If you are not using "Script Editor", I mean if you use "mayapy.exe" and if you import those modules still you are getting same issue? Basically it may be a path issue. Please check the PYTHONPATH environment variable. If your module exists in some "X" location and it is not yet added into PYTHONPATH environment varable, please add that path to PYTHONPATH and import your modules.

0 Likes