Open
Description
Bug Description:
Steps to Reproduce:
launch.json
{
"version": "0.2.0",
"configurations": [
{
"name": "Python Debugger: Attach to Process",
"type": "debugpy",
"request": "attach",
"processId": "${command:pickProcess}",
}
]
}
- run the py file with above launch.json. Select the exe with is build by Pyinstaller
- Pyinstaller exe calls a function in the .py file which is debugged in eclipse-theia using exec command
- the following error is shown
import xmlrpc.server as xmlrpcserver
ModuleNotFoundError: No module named 'xmlrpc.server'
Please let me know what I am missing.
I want to attach my Python file to a exe build using Pyinstaller to debug the code. The exe makes a call to the Python function using exec() call.
Additional Information
LOg
Traceback (most recent call last):
File "C:\Users\name\.theia-ide\deployedPlugins\ms-python.debugpy-2025.0.1\extension\bundled\libs\debugpy/..\debugpy\server\attach_pid_injected.py", line 59, in attach
import debugpy.server
File "C:\Users\name\.theia-ide\deployedPlugins\ms-python.debugpy-2025.0.1\extension\bundled\libs\debugpy\server\__init__.py", line 7, in <module>
import debugpy._vendored.force_pydevd # noqa
File "C:\Users\name\.theia-ide\deployedPlugins\ms-python.debugpy-2025.0.1\extension\bundled\libs\debugpy\_vendored\force_pydevd.py", line 34, in <module>
pydevd_constants = import_module('_pydevd_bundle.pydevd_constants')
File "importlib\__init__.py", line 127, in import_module
File "C:\Users\name\.theia-ide\deployedPlugins\ms-python.debugpy-2025.0.1\extension\bundled\libs\debugpy\_vendored\pydevd\_pydevd_bundle\pydevd_constants.py", line 436, in <module>
from _pydev_bundle._pydev_saved_modules import thread, threading
File "C:\Users\name\.theia-ide\deployedPlugins\ms-python.debugpy-2025.0.1\extension\bundled\libs\debugpy\_vendored\pydevd\_pydev_bundle\_pydev_saved_modules.py", line 123, in <module>
import xmlrpc.server as xmlrpcserver
ModuleNotFoundError: No module named 'xmlrpc.server'
Traceback (most recent call last):
File "<string>", line 1, in <module>
File "C:\Users\name\.theia-ide\deployedPlugins\ms-python.debugpy-2025.0.1\extension\bundled\libs\debugpy/..\debugpy\server\attach_pid_injected.py", line 59, in attach
import debugpy.server
File "C:\Users\name\.theia-ide\deployedPlugins\ms-python.debugpy-2025.0.1\extension\bundled\libs\debugpy\server\__init__.py", line 7, in <module>
import debugpy._vendored.force_pydevd # noqa
File "C:\Users\name\.theia-ide\deployedPlugins\ms-python.debugpy-2025.0.1\extension\bundled\libs\debugpy\_vendored\force_pydevd.py", line 34, in <module>
pydevd_constants = import_module('_pydevd_bundle.pydevd_constants')
File "importlib\__init__.py", line 127, in import_module
File "C:\Users\name\.theia-ide\deployedPlugins\ms-python.debugpy-2025.0.1\extension\bundled\libs\debugpy\_vendored\pydevd\_pydevd_bundle\pydevd_constants.py", line 436, in <module>
from _pydev_bundle._pydev_saved_modules import thread, threading
File "C:\Users\name\.theia-ide\deployedPlugins\ms-python.debugpy-2025.0.1\extension\bundled\libs\debugpy\_vendored\pydevd\_pydev_bundle\_pydev_saved_modules.py", line 123, in <module>
import xmlrpc.server as xmlrpcserver
ModuleNotFoundError: No module named 'xmlrpc.server'
- Operating System: Windows 10
- Theia Version: 1.58.200