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

Streaming ScriptEditor: global name 'sys' is not defined #28

Closed
fredrikaverpil opened this issue Nov 5, 2016 · 2 comments
Closed

Streaming ScriptEditor: global name 'sys' is not defined #28

fredrikaverpil opened this issue Nov 5, 2016 · 2 comments

Comments

@fredrikaverpil
Copy link
Contributor

I just tried out the new streaming script editor feature (output shown in ST3 console). I simply changed the prefs to say

"receive_maya_output": true

...and then in Maya, I ran

cmds.commandPort(name=":7002", sourceType="python")

From ST3, I executed

print('hello')

...but nothing new was seen in the ST3 console and in the Maya script editor I saw this:

# Traceback (most recent call last):
#   File "<string>", line 17, in <module>
#   File "<string>", line 1, in <module>
#   File "<string>", line 25, in _MayaSublime_streamScriptEditor
# NameError: global name 'sys' is not defined
hello

After having run import sys in ST3, the streaming feature works.

@justinfx
Copy link
Owner

justinfx commented Nov 5, 2016

Wow I dont know how this got past myself a two other people testing it. Must have been luck that the environment already had the module. I will fix it and tag patch release.

@justinfx
Copy link
Owner

justinfx commented Nov 5, 2016

Tagged version 3.0.2

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

2 participants