Skip to content

mxvscode-autodesk seems not work #38

@lifeyf

Description

@lifeyf

after cd in max install dir[3dsmax 2022], and "D:/project/3dsMax-Python-HowTos/install.sh",every thing seems right until I start 3dsmax :

mxvscode startup enabling vscode debugging
(if you don't use VSCode for debugging Python you can uninstall
mxvscode)
skipped package startup for mxvscode-autodesk 0.0.1, startup not working

Expecially, the pip cant update, very confused because I have used a newer version of python, where can i start pip ,python. ## can you please just set it into 3dsmax--- the cmd and the console.

i am a artist, not a programmer ,umm , this is really not easy to me.

then I just open the script run it in 3dsmax:

import sys
import os
import debugpy

sysexec = sys.executable
(base, file) = os.path.split(sys.executable)

if file.lower() == "3dsmax.exe":
	sys.executable = os.path.join(base, "python", "python.exe")
host = "localhost"
port = 5678
debugpy.listen((host, port))
print(f"-- now ready to receive debugging connections from vscode on (${host}, ${port})")
sys.executable = sysexec
### output:
Traceback (most recent call last):
  File "<input>", line 12
  File "C:\Users\xxx\AppData\Roaming\Python\Python37\site-packages\debugpy\public_api.py", line 31, in 'wrapper' function
  File "C:\Users\xxx\AppData\Roaming\Python\Python37\site-packages\debugpy\server\api.py", line 143, in 'debug' function
  File "C:\Users\xxx\AppData\Roaming\Python\Python37\site-packages\debugpy\server\api.py", line 141, in 'debug' function
  File "C:\Users\xxx\AppData\Roaming\Python\Python37\site-packages\debugpy\server\api.py", line 234, in 'listen' function
RuntimeError: error spawning debug adapter: [WinError 2] The system cannot find the file specified

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions