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

Mayapy.exe is no longer a valid python interpreter #18835

Closed
mlamarre opened this issue Mar 31, 2022 · 5 comments · Fixed by #18860
Closed

Mayapy.exe is no longer a valid python interpreter #18835

mlamarre opened this issue Mar 31, 2022 · 5 comments · Fixed by #18860
Assignees
Labels
area-debugging area-environments Features relating to handling interpreter environments bug Issue identified by VS Code Team member as probable bug regression Bug didn't exist in a previous release verified Verification succeeded
Milestone

Comments

@mlamarre
Copy link

Issue Type: Bug

Behaviour

Select "C:\Program Files\Autodesk\Maya2022\bin\mayapy.exe" as your python interpreter.
Try to launch a script, get "The Python path in your debug configuration is invalid."

This is a regression. Everything was working fine until I restarted for the Update today.

Expected vs. Actual

Expected: script being lauched.
Actual: "The Python path in your debug configuration is invalid."

Steps to reproduce:

  1. Select "C:\Program Files\Autodesk\Maya2022\bin\mayapy.exe" as your python interpreter.

Diagnostic data

  • Python version (& distribution if applicable, e.g. Anaconda):
  • Type of virtual environment used (e.g. conda, venv, virtualenv, etc.): Unknown
  • Value of the python.languageServer setting: Pylance
User Settings


defaultLS: {"defaultLSType":"Pylance"}

downloadLanguageServer: true

envFile: "<placeholder>"

venvPath: "<placeholder>"

venvFolders: "<placeholder>"

condaPath: "<placeholder>"

pipenvPath: "<placeholder>"

poetryPath: "<placeholder>"

languageServer: "Pylance"

linting
• enabled: true
• cwd: "<placeholder>"
• Flake8Args: "<placeholder>"
• flake8Enabled: false
• flake8Path: "<placeholder>"
• lintOnSave: true
• banditArgs: "<placeholder>"
• banditEnabled: false
• banditPath: "<placeholder>"
• mypyArgs: "<placeholder>"
• mypyEnabled: false
• mypyPath: "<placeholder>"
• pycodestyleArgs: "<placeholder>"
• pycodestyleEnabled: false
• pycodestylePath: "<placeholder>"
• prospectorArgs: "<placeholder>"
• prospectorEnabled: false
• prospectorPath: "<placeholder>"
• pydocstyleArgs: "<placeholder>"
• pydocstyleEnabled: false
• pydocstylePath: "<placeholder>"
• pylamaArgs: "<placeholder>"
• pylamaEnabled: false
• pylamaPath: "<placeholder>"
• pylintArgs: "<placeholder>"
• pylintPath: "<placeholder>"

sortImports
• args: "<placeholder>"
• path: "<placeholder>"

formatting
• autopep8Args: "<placeholder>"
• autopep8Path: "<placeholder>"
• provider: "autopep8"
• blackArgs: "<placeholder>"
• blackPath: "<placeholder>"
• yapfArgs: "<placeholder>"
• yapfPath: "<placeholder>"

testing
• cwd: "<placeholder>"
• debugPort: 3000
• nosetestArgs: "<placeholder>"
• nosetestsEnabled: undefined
• nosetestPath: "<placeholder>"
• promptToConfigure: true
• pytestArgs: "<placeholder>"
• pytestEnabled: false
• pytestPath: "<placeholder>"
• unittestArgs: "<placeholder>"
• unittestEnabled: false
• autoTestDiscoverOnSaveEnabled: true

terminal
• activateEnvironment: true
• executeInFileDir: "<placeholder>"
• launchArgs: "<placeholder>"

experiments
• enabled: true
• optInto: []
• optOutFrom: []

tensorBoard
• logDirectory: "<placeholder>"

Extension version: 2022.4.0
VS Code version: Code 1.66.0 (e18005f0f1b33c29e81d732535d8c0e47cafb0b5, 2022-03-30T05:50:14.623Z)
OS version: Windows_NT x64 10.0.19044
Restricted Mode: No

System Info
Item Value
CPUs Intel(R) Core(TM) i9-9960X CPU @ 3.10GHz (32 x 3096)
GPU Status 2d_canvas: enabled
canvas_oop_rasterization: disabled_off
direct_rendering_display_compositor: disabled_off_ok
gpu_compositing: enabled
multiple_raster_threads: enabled_on
oop_rasterization: enabled
opengl: enabled_on
rasterization: enabled
raw_draw: disabled_off_ok
skia_renderer: enabled_on
video_decode: enabled
video_encode: enabled
vulkan: disabled_off
webgl: enabled
webgl2: enabled
Load (avg) undefined
Memory (System) 127.68GB (100.57GB free)
Process Argv . --crash-reporter-id f2065a15-84eb-4308-8cb7-c4949f2ff6ca
Screen Reader no
VM 0%
A/B Experiments
vsliv368:30146709
vsreu685:30147344
python383:30185418
vspor879:30202332
vspor708:30202333
vspor363:30204092
pythonvspyl392:30443607
pythontb:30283811
pythonvspyt551cf:30345471
pythonptprofiler:30281270
vsdfh931cf:30280410
vshan820:30294714
vstes263:30335439
vscorecescf:30445987
pythondataviewer:30285071
vscod805:30301674
pythonvspyt200:30340761
binariesv615:30325510
bridge0708:30335490
bridge0723:30353136
vsaa593cf:30376535
vsc1dst:30438360
pythonvs932:30410667
wslgetstarted:30449410
vsclayoutctrt:30451275
pythonvsnew555:30457759
vscscmwlcmc:30438804
vscgsvid1:30447480
pynewfile477:30463512

@github-actions github-actions bot added the triage-needed Needs assignment to the proper sub-team label Mar 31, 2022
@karthiknadig karthiknadig added bug Issue identified by VS Code Team member as probable bug area-debugging triage area-environments Features relating to handling interpreter environments and removed triage-needed Needs assignment to the proper sub-team labels Apr 4, 2022
@karrtikr
Copy link

karrtikr commented Apr 4, 2022

Hi @mlamarre , can you provide the logs?

Output for Python in the Output panel (ViewOutput, change the drop-down the upper-right of the Output panel to Python)

XXX

@karrtikr karrtikr added the info-needed Issue requires more information from poster label Apr 4, 2022
@mlamarre
Copy link
Author

mlamarre commented Apr 4, 2022

[ERROR 2022-3-4 19:22:5.268]: readdir() failed for "c:\Program Files\Autodesk\Maya2022\bin\mayapy.exe" (Error: ENOTDIR: not a directory, scandir 'c:\Program Files\Autodesk\Maya2022\bin\mayapy.exe')

Making a copy of mayapy.exe named python.exe in the same folder and using this one as the interpreter in vscode solves the issue.

@karrtikr
Copy link

Fix should be out in the pre-release version of the extension, use the following to try it out:

image

@joyceerhl joyceerhl removed the verification-needed Verification of issue is requested label Apr 27, 2022
@rzhao271 rzhao271 added the author-verification-requested Issues potentially verifiable by issue author label Apr 28, 2022
@rzhao271
Copy link

rzhao271 commented Apr 28, 2022

@mlamarre has the issue been resolved for you with the pre-release version?

@mlamarre
Copy link
Author

Yes, it's fixed. Thanks!

@karrtikr karrtikr added verified Verification succeeded regression Bug didn't exist in a previous release and removed author-verification-requested Issues potentially verifiable by issue author labels Apr 29, 2022
@github-actions github-actions bot locked as resolved and limited conversation to collaborators May 30, 2022
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
area-debugging area-environments Features relating to handling interpreter environments bug Issue identified by VS Code Team member as probable bug regression Bug didn't exist in a previous release verified Verification succeeded
Projects
None yet
Development

Successfully merging a pull request may close this issue.

6 participants