artbycrunk / vscode-maya

A Visual Studio Code extension with support for coding for Maya.
MIT License
45 stars 11 forks source link

Sending Maya is not working #40

Open frozen4sh opened 1 year ago

frozen4sh commented 1 year ago

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):

Smartphone (please complete the following information):

Additional context Add any other context about the problem here.

leohuliuqing commented 11 months ago

i have the same issue

ronBublitz commented 8 months ago

same issue still.

RalfReddings commented 5 months ago

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

SaravananN313 commented 1 month ago

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

molly-mocus commented 1 month ago

i have same issue, maya 2022

Mamilou commented 1 month ago

Same here, Maya 2022

AndershowRig commented 2 weeks ago

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