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

Sometimes Blender uses privilaged port what results in RuntimeError #196

Open
Mateusz-Grzelinski opened this issue Sep 6, 2024 · 0 comments
Labels
bug Something isn't working good first issue Good for newcomers

Comments

@Mateusz-Grzelinski
Copy link
Collaborator

0.00s - Note: Debugging will proceed. Set PYDEVD_DISABLE_FILE_VALIDATION=1 to disable this validation.
Traceback (most recent call last):
  File "e:\BlenderProjects\blender_vscode\pythonFiles\launch.py", line 26, in <module>
    blender_vscode.startup(
  File "e:\BlenderProjects\blender_vscode\pythonFiles\include\blender_vscode\__init__.py", line 30, in startup
    communication.setup(editor_address, path_mappings)
  File "e:\BlenderProjects\blender_vscode\pythonFiles\include\blender_vscode\communication.py", line 26, in setup
    DEBUGPY_PORT = start_debug_server()
                   ^^^^^^^^^^^^^^^^^^^^
  File "e:\BlenderProjects\blender_vscode\pythonFiles\include\blender_vscode\communication.py", line 63, in start_debug_server
    debugpy.listen(("localhost", port))
  File "C:\Users\grzel\AppData\Roaming\Blender Foundation\Blender\4.2\scripts\modules\debugpy\public_api.py", line 31, in wrapper
    return wrapped(*args, **kwargs)
           ^^^^^^^^^^^^^^^^^^^^^^^^
  File "C:\Users\grzel\AppData\Roaming\Blender Foundation\Blender\4.2\scripts\modules\debugpy\server\api.py", line 143, in debug
    log.reraise_exception("{0}() failed:", func.__name__, level="info")
  File "C:\Users\grzel\AppData\Roaming\Blender Foundation\Blender\4.2\scripts\modules\debugpy\server\api.py", line 141, in debug
    return func(address, settrace_kwargs, **kwargs)
           ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "C:\Users\grzel\AppData\Roaming\Blender Foundation\Blender\4.2\scripts\modules\debugpy\server\api.py", line 262, in listen
    raise RuntimeError(str(endpoints["error"]))
RuntimeError: Can't listen for client connections: [WinError 10013] An attempt was made to access a socket in a way forbidden by its access permissions
Addon starting.
Starting blender: E:\BlenderProjects\bledner.exe\blender-4.2.1-windows-x64\blender-4.2.1-windows-x64\blender.exe --python e:\BlenderProjects\blender_vscode\pythonFiles\launch.py --factory-startup
With ENV Vars: {
  "ADDONS_TO_LOAD": "[{\"load_dir\":\"e:\\\\BlenderProjects\\\\leagacy_and_extension\",\"module_name\":\"leagacy_and_extension\"}]",
  "VSCODE_EXTENSIONS_REPOSITORY": "vscode_development",
  "EDITOR_PORT": "56435"
}
Starting blender: E:\BlenderProjects\bledner.exe\blender-4.2.1-windows-x64\blender-4.2.1-windows-x64\blender.exe --python e:\BlenderProjects\blender_vscode\pythonFiles\launch.py --factory-startup
With ENV Vars: {
  "ADDONS_TO_LOAD": "[{\"load_dir\":\"e:\\\\BlenderProjects\\\\leagacy_and_extension\",\"module_name\":\"leagacy_and_extension\"}]",
  "VSCODE_EXTENSIONS_REPOSITORY": "vscode_development",
  "EDITOR_PORT": "56435"
}
Python debug configuration: {
  "name": "Python at Port 4422",
  "request": "attach",
  "type": "python",
  "port": 4422,
  "host": "localhost",
  "pathMappings": [
    {
      "localRoot": "E:\\BlenderProjects\\leagacy_and_extension",
      "remoteRoot": "C:\\Users\\grzel\\AppData\\Roaming\\Blender Foundation\\Blender\\4.2\\extensions\\vscode_development\\leagacy_and_extension"
    },
    {
      "localRoot": "E:\\BlenderProjects\\bledner.exe\\blender-4.2.1-windows-x64\\blender-4.2.1-windows-x64\\4.2\\scripts",
      "remoteRoot": "E:\\BlenderProjects\\bledner.exe\\blender-4.2.1-windows-x64\\blender-4.2.1-windows-x64\\4.2\\scripts"
    },
    {
      "localRoot": "E:\\BlenderProjects\\leagacy_and_extension",
      "remoteRoot": "e:\\BlenderProjects\\leagacy_and_extension"
    }
  ],
  Addon starting.
Starting blender: E:\BlenderProjects\bledner.exe\blender-4.2.1-windows-x64\blender-4.2.1-windows-x64\blender.exe --python e:\BlenderProjects\blender_vscode\pythonFiles\launch.py --factory-startup
With ENV Vars: {
  "ADDONS_TO_LOAD": "[{\"load_dir\":\"e:\\\\BlenderProjects\\\\leagacy_and_extension\",\"module_name\":\"leagacy_and_extension\"}]",
  "VSCODE_EXTENSIONS_REPOSITORY": "vscode_development",
  "EDITOR_PORT": "56435"
}
Starting blender: E:\BlenderProjects\bledner.exe\blender-4.2.1-windows-x64\blender-4.2.1-windows-x64\blender.exe --python e:\BlenderProjects\blender_vscode\pythonFiles\launch.py --factory-startup
With ENV Vars: {
  "ADDONS_TO_LOAD": "[{\"load_dir\":\"e:\\\\BlenderProjects\\\\leagacy_and_extension\",\"module_name\":\"leagacy_and_extension\"}]",
  "VSCODE_EXTENSIONS_REPOSITORY": "vscode_development",
  "EDITOR_PORT": "56435"
}
Python debug configuration: {
  "name": "Python at Port 4422",
  "request": "attach",
  "type": "python",
  "port": 4422,
  "host": "localhost",
  "pathMappings": [
    {
      "localRoot": "E:\\BlenderProjects\\leagacy_and_extension",
      "remoteRoot": "C:\\Users\\grzel\\AppData\\Roaming\\Blender Foundation\\Blender\\4.2\\extensions\\vscode_development\\leagacy_and_extension"
    },
    {
      "localRoot": "E:\\BlenderProjects\\bledner.exe\\blender-4.2.1-windows-x64\\blender-4.2.1-windows-x64\\4.2\\scripts",
      "remoteRoot": "E:\\BlenderProjects\\bledner.exe\\blender-4.2.1-windows-x64\\blender-4.2.1-windows-x64\\4.2\\scripts"
    },
    {
      "localRoot": "E:\\BlenderProjects\\leagacy_and_extension",
      "remoteRoot": "e:\\BlenderProjects\\leagacy_and_extension"
    }
  ],
@Mateusz-Grzelinski Mateusz-Grzelinski added bug Something isn't working good first issue Good for newcomers labels Sep 6, 2024
@Mateusz-Grzelinski Mateusz-Grzelinski changed the title Sometimes Blender uses privilaged port what results in Sometimes Blender uses privilaged port what results in RuntimeError Sep 6, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working good first issue Good for newcomers
Projects
None yet
Development

No branches or pull requests

1 participant