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鈥檒l occasionally send you account related emails.

Already on GitHub? Sign in to your account

error message on windwos #40

Open
Ben8565 opened this issue Nov 13, 2020 · 5 comments
Open

error message on windwos #40

Ben8565 opened this issue Nov 13, 2020 · 5 comments

Comments

@Ben8565
Copy link

Ben8565 commented Nov 13, 2020

When i run winpdg on windows i have this message 馃憤

La syntaxe du nom de fichier, de r茅pertoire ou de volume est incorrecte.

Current directory:
c:\Users\Benoit\projets\tproj

Command to be executed:
"C:\WINDOWS\system32\cmd.exe" /C """C:\Python37\python.exe" "session_manager..\rpdb2.py" --debugee --pwd="i3ELQQAm" --rid=9823679 "c:\users\benoit\projets\tproj\tdebug.py" ""

ConEmuC: Root process was alive less than 10 sec, ExitCode=1.
Press Enter or Esc to close console...
I think the tools does find the file session_manager..\rpdb2.py.
I work on Windows 10
Python 3.7
and the last version of winpdb
winpdb_reborn-2.0.0.1
Successfully installed Winpdb-reborn-2.0.0.1 numpy-1.19.4 pillow-8.0.1 wxpython-4.1.0

@bluebird75
Copy link
Owner

Can you show me the exact command that you ran to get this result ?

@bluebird75
Copy link
Owner

I see the problem and I just fixed it. Can you try with the latest git version ?

@Ben8565
Copy link
Author

Ben8565 commented Nov 19, 2020

I try the new version:
I have a similar message :
La syntaxe du nom de fichier, de r茅pertoire ou de volume est incorrecte.

Current directory:
c:\Users\Benoit\projets\tproj

Command to be executed:
"C:\WINDOWS\system32\cmd.exe" /C """C:\Python37\python.exe" "C:\Python37\lib\site-packages\winpdb_reborn-2.0.0.1-py3.7.egg\rpdb..\rpdb2.py" --debugee --pwd="nB4hq4Yg" --rid=4437256 "c:\users\benoit\projets\tproj\tdebug.py" ""

ConEmuC: Root process was alive less than 10 sec, ExitCode=1.
Press Enter or Esc to close console...

My command is
位 python -m winpdb .\Tdebug.py
19:28:47.100 rpdb2.py:6138 MainThread/92452 __setrecursionlimit(): rl = 1000
19:28:51.315 winpdb.py:3006 MainThread/92452 set_font(): Using font "Courier New" for Console
19:28:51.320 winpdb.py:3006 MainThread/92452 set_font(): Using font "Courier New" for Console
19:28:51.719 session_manager.py:1291 Thread-2/84872 spawn_server(): Terminal open string: 'start "rpdb2 - Version RPDB
1_5_0 - Debuggee Console" cmd.exe /K ""C:\Python37\python.exe" "C:\Python37\lib\site-packages\winpdb_reborn-2.0.0.
1-py3.7.egg\rpdb\..\rpdb2.py" --debugee --pwd="nB4hq4Yg" --rid=4437256 "c:\users\benoit\projets\tproj\tdebug.py"
"'
19:28:53.250 session_manager.py:1103 Thread-2/84872 __wait_for_debuggee(): Scanning for debuggee...
19:28:56.260 session_manager.py:1103 Thread-2/84872 __wait_for_debuggee(): Scanning for debuggee...
19:28:59.280 session_manager.py:1103 Thread-2/84872 __wait_for_debuggee(): Scanning for debuggee...

@bluebird75
Copy link
Owner

It seems that winpdb does not handle well the fact that is was installed as an egg.

The execution command tries to locate rpdb2.py to launch the debugee. However, this fails in egg because rpdb2.py is not accessible as a single file.

Until I find a proper solution, you can solve this by installing winpdb either directly from git or without resorting on an egg. If you have a full winpdb directory in site-packages, this should work better.

@pjfarleyiii
Copy link

pjfarleyiii commented Jan 28, 2021

Just adding my experience with winpdb. When I start my program with winpdb with this command:

python -m winpdb myprogram.py

The winpdb GUI is displayed, but in the debugee window I get this:

C:\Users\MyUserID\.virtualenvs\envtest-4VBVv3XT\Scripts\python.exe: can't open file 'session_manager\..\rpdb2.py': [Errno 2] No such file or directory

Environment: Windows 10-64 V2004, Python 3.8.5, using pipenv shell for a virtual environment.

pip list output:

Package        Version
-------------- -------
numpy          1.19.5
Pillow         8.1.0
pip            20.3.3
PySimpleGUI    4.33.0
setuptools     49.6.0
six            1.15.0
wheel          0.35.1
windows-curses 2.2.0
winpdb-reborn  2.0.0.1
wxPython       4.1.1

When you said to install winpdb "directly from git" do you mean use git clone to clone winpdb into the (virtual in my case) the Lib/Site-packages directory? After uninstalling winpdb with pip first, correct?

TIA for any clarification you can provide.

Peter

[Edit]: Same error and behavior occurs in a non-virtual command shell environment.

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