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

Debuger not working coretly with Python38 #386

Closed
ManPython opened this issue Aug 25, 2020 · 3 comments
Closed

Debuger not working coretly with Python38 #386

ManPython opened this issue Aug 25, 2020 · 3 comments

Comments

@ManPython
Copy link

ManPython commented Aug 25, 2020

Environment data

  • debugpy version: 1.0.0rc21.0.0rc2
  • OS and version: W7x64
  • Python version (& distribution if applicable, e.g. Anaconda): Python 3.8.5 (tags/v3.8.5:580fbb0, Jul 20 2020, 15:43:08) [MSC v.1926 32 bit (Intel)] on win32
  • Using VS Code or Visual Studio:
    Version: 1.48.1
    Commit: 3dd905126b34dcd4de81fa624eb3a8cbe7485f13
    Date: 2020-08-19T17:12:13.244Z
    Electron: 7.3.2
    Chrome: 78.0.3904.130
    Node.js: 12.8.1
    V8: 7.8.279.23-electron.0
    OS: Windows_NT x64 6.1.7601

Actual behavior

Exception has occurred: FileNotFoundError
[WinError 3] System nie może odnaleźć określonej ścieżki: 'C:\Users\ManPython\AppData\Roaming\Python\Python38\site-packages

  File "E:\Python38\Lib\ntpath.py", line 647, in realpath
    path = _getfinalpathname(path)
  File "E:\Python38\Lib\runpy.py", line 87, in _run_code
    exec(code, run_globals)
  File "E:\Python38\Lib\runpy.py", line 194, in _run_module_as_main
    return _run_code(code, main_globals, None,

Expected behavior

Normal debug.
The Debugby not respecting "pythonPath": as provided:
'E:\\Python\\Python38\\python.exe
or
E:\\Python38-venv\\Scripts\\python.exe"
just:
'C:\\Users\\ManPython\\AppData\\Roaming\\Python\\Python38\\ - where is nothing

Steps to reproduce:

Just Debug. It's related with #315
Does not matter about config as "django": true, or "django": false,
This same as venv or normal.

@ManPython
Copy link
Author

ManPython commented Aug 25, 2020

Python 3.8.5 (tags/v3.8.5:580fbb0, Jul 20 2020, 15:57:54) [MSC v.1924 64 bit (AMD64)] on win32
Working, but other problems

Exception has occurred: OSError
[WinError 123] The filename, directory name, or volume label syntax is incorrect: '<frozen importlib._bootstrap>'
  File "E:\PYTHON\Python38\Lib\pathlib.py", line 200, in resolve
    return self._ext_to_normal(_getfinalpathname(s))
  File "E:\PYTHON\Python38\Lib\pathlib.py", line 1177, in resolve
    s = self._flavour.resolve(self, strict=strict)
  File "E:\PYTHON\Python38-venv\Lib\site-packages\django\utils\autoreload.py", line 141, in iter_modules_and_files
    resolved_path = path.resolve(strict=True).absolute()
  File "E:\PYTHON\Python38-venv\Lib\site-packages\django\utils\autoreload.py", line 105, in iter_all_python_module_files
    return iter_modules_and_files(modules, frozenset(_error_files))
  File "E:\PYTHON\Python38-venv\Lib\site-packages\django\utils\autoreload.py", line 274, in watched_files
    yield from iter_all_python_module_files()
  File "E:\PYTHON\Python38-venv\Lib\site-packages\django\utils\autoreload.py", line 375, in snapshot_files
    for file in self.watched_files():
  File "E:\PYTHON\Python38-venv\Lib\site-packages\django\utils\autoreload.py", line 359, in tick
    for filepath, mtime in self.snapshot_files():
  File "E:\PYTHON\Python38-venv\Lib\site-packages\django\utils\autoreload.py", line 319, in run_loop
    next(ticker)
  File "E:\PYTHON\Python38-venv\Lib\site-packages\django\utils\autoreload.py", line 313, in run
    self.run_loop()
  File "E:\PYTHON\Python38-venv\Lib\site-packages\django\utils\autoreload.py", line 598, in start_django
    reloader.run(django_main_thread)
  File "E:\PYTHON\Python38-venv\Lib\site-packages\django\utils\autoreload.py", line 613, in run_with_reloader
    start_django(reloader, main_func, *args, **kwargs)
  File "E:\PYTHON\Python38-venv\Lib\site-packages\django\core\management\commands\runserver.py", line 103, in run
    autoreload.run_with_reloader(self.inner_run, **options)
  File "E:\PYTHON\Python38-venv\Lib\site-packages\django\core\management\commands\runserver.py", line 96, in handle
    self.run(**options)
  File "E:\PYTHON\Python38-venv\Lib\site-packages\django\core\management\base.py", line 371, in execute
    output = self.handle(*args, **options)
  File "E:\PYTHON\Python38-venv\Lib\site-packages\django\core\management\commands\runserver.py", line 61, in execute
    super().execute(*args, **options)
  File "E:\PYTHON\Python38-venv\Lib\site-packages\django\core\management\base.py", line 330, in run_from_argv
    self.execute(*args, **cmd_options)
  File "E:\PYTHON\Python38-venv\Lib\site-packages\django\core\management\__init__.py", line 395, in execute
    self.fetch_command(subcommand).run_from_argv(self.argv)
  File "E:\PYTHON\Python38-venv\Lib\site-packages\django\core\management\__init__.py", line 401, in execute_from_command_line
    utility.execute()
  File "E:\PYTHON\test\django\manage.py", line 17, in main
    execute_from_command_line(sys.argv)
  File "E:\PYTHON\test\django\manage.py", line 21, in <module>
    main()

Edit: working on this version python, hvr.. don't know whats happen that it's ok now. And.. still problem with static.. again :x

@int19h
Copy link
Contributor

int19h commented Aug 25, 2020

This last stack doesn't look like a debugger issue. It's Django itself invoking pathlib like that, and I think they aren't handling all the exception types they are supposed to be?

@fabioz
Copy link
Collaborator

fabioz commented Oct 22, 2020

Closing since this doesn't seem to be a debugger issue.

@fabioz fabioz closed this as completed Oct 22, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants