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

Sending Maya is not working #40

Open
frozen4sh opened this issue Oct 24, 2023 · 7 comments
Open

Sending Maya is not working #40

frozen4sh opened this issue Oct 24, 2023 · 7 comments

Comments

@frozen4sh
Copy link

Describe the bug

commandPort -name "localhost:7001" -sourceType "mel" -echoOutput;

----------------------------------------# ----------------------------------------

Exception happened during processing of request from('127.0.0.1', 56580)

Traceback (most recent call last):

# File "C:\Program Files\Autodesk\Maya2022\Python37\lib\socketserver.py", line 316, in _handle_request_noblock

self.process_request(request, client_address)

# File "C:\Program Files\Autodesk\Maya2022\Python37\lib\socketserver.py", line 347, in process_request

self.finish_request(request, client_address)

# File "C:\Program Files\Autodesk\Maya2022\Python37\lib\socketserver.py", line 360, in finish_request

self.RequestHandlerClass(request, client_address, self)

# File "C:\Program Files\Autodesk\Maya2022\Python37\lib\socketserver.py", line 720, in init

self.handle()

# File "C:\Program Files\Autodesk\Maya2022\Python37\lib\site-packages\maya\app\general\CommandPort.py", line 137, in handle

self.wfile.write(self.server.commandMessageQueue.get() + self.resp_term)

# File "C:\Program Files\Autodesk\Maya2022\Python37\lib\socketserver.py", line 799, in write

self._sock.sendall(b)

TypeError: a bytes-like object is required, not 'str'

To Reproduce
Steps to reproduce the behavior:

  1. Installed MayaCode extension
  2. Click on 'Send Python code to Maya'
  3. See error

Expected behavior

Screenshots
image

Desktop (please complete the following information):

  • OS: Windows 11
  • Browser chrome
  • Version 10.0.22621 Build 22621

Smartphone (please complete the following information):

  • Device: [e.g. iPhone6]
  • OS: [e.g. iOS8.1]
  • Browser [e.g. stock browser, safari]
  • Version [e.g. 22]

Additional context
Add any other context about the problem here.

@leohuliuqing
Copy link

i have the same issue

@ronBublitz
Copy link

same issue still.

@RalfReddings
Copy link

I am having the same issue as well Maya 2024.1 on Windows 11
Any word from the developer on this?

@SaravananN313
Copy link

SaravananN313 commented Sep 12, 2024

I am facing the same issue as well in Maya 2024.
OS : Windows 10
error

@molly-mocus
Copy link

i have same issue, maya 2022

@Mamilou
Copy link

Mamilou commented Oct 5, 2024

Same here, Maya 2022

@AndershowRig
Copy link

Try using this instead = commandPort -name "localhost:7001" -sourceType "mel"
The solution for me was to remove the -echoOutput;

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

8 participants