jenndhemus / editra-plugins

Automatically exported from code.google.com/p/editra-plugins
0 stars 0 forks source link

PyStudio Rpdb2 launch doesn't handle spaces #215

Open GoogleCodeExporter opened 8 years ago

GoogleCodeExporter commented 8 years ago
What Plugin does this relate to? What version of the Plugin?
PyStudio - v.04

What steps will reproduce the problem?
1. Open debug shelf
2. Run debugger

What is the expected output? What do you see instead?
I expect to have my program begin debugging
Instead it shows the following error message.

What version of Editra are you using? On what operating system?
Editra v0.7.12 on Mac OSX 10.6.8
with custom python binary location

Please provide any additional information below.
Has argument: "--rid=/Users/vincent/Library/Application 
Support/Editra/cache/rpdbpw.txt"
Tries to open file: "/Users/vincent/Library/Application"

Console output when run:

Rpdb2 command line: /Users/vincent/Desktop/myenv/python -u 
/Users/vincent/.python-eggs/PyStudio-0.4-py2.7.egg-tmp/rpdb2.py -d 
--rid=/Users/vincent/Library/Application Support/Editra/cache/rpdbpw.txt 45.py
Directory Variables file: None

Failed to attach. Error: Failed to find script.
Disabling Pylint Autorun during Debug.
Traceback (most recent call last):
  File "/Users/vincent/.python-eggs/PyStudio-0.4-py2.7.egg-tmp/rpdb2.py", line 14502, in <module>
    ret = rpdb2.main()
  File "/Users/vincent/.python-eggs/PyStudio-0.4-py2.7.egg-tmp/rpdb2.py", line 14441, in main
    _rpdb2_pwd = read_pwd_file(secret)
  File "/Users/vincent/.python-eggs/PyStudio-0.4-py2.7.egg-tmp/rpdb2.py", line 3986, in read_pwd_file
    p = open(path, 'r')
IOError: [Errno 2] No such file or directory: 
u'/Users/vincent/Library/Application'

Debuggee finished.Reenabling Pylint Autorun.

Original issue reported on code.google.com by i@sdo.bz on 27 Aug 2012 at 6:19

GoogleCodeExporter commented 8 years ago
Hi,

Have you tried with PyStudio 0.7 to see if this issue still exists or not?

Original comment by CodyPrec...@gmail.com on 27 Aug 2012 at 6:29

GoogleCodeExporter commented 8 years ago
Same problem. One issue I just noticed is that the binary at that location is 
actually python 2.6.

New output with PyStudio 0.7:
Rpdb2 command line: /Users/vincent/Desktop/myenv/python -u 
/Users/vincent/.python-eggs/PyStudio-0.7-py2.7.egg-tmp/rpdb2.py -d 
--rid=/Users/vincent/Library/Application Support/Editra/cache/rpdbpw.txt test.py
Directory Variables file: None

Disabling Pylint Autorun during Debug.
Traceback (most recent call last):
  File "/Users/vincent/.python-eggs/PyStudio-0.7-py2.7.egg-tmp/rpdb2.py", line 14502, in <module>
    ret = rpdb2.main()
  File "/Users/vincent/.python-eggs/PyStudio-0.7-py2.7.egg-tmp/rpdb2.py", line 14441, in main
    _rpdb2_pwd = read_pwd_file(secret)
  File "/Users/vincent/.python-eggs/PyStudio-0.7-py2.7.egg-tmp/rpdb2.py", line 3986, in read_pwd_file
    p = open(path, 'r')
IOError: [Errno 2] No such file or directory: 
u'/Users/vincent/Library/Application'

Debuggee finished.Reenabling Pylint Autorun.

Command line testing:
qwerty_mbp:~ vincent$ /Users/vincent/Desktop/myenv/python -u 
/Users/vincent/.python-eggs/PyStudio-0.7-py2.7.egg-tmp/rpdb2.py -d 
--rid=/Users/vincent/Library/Application Support/Editra/cache/rpdbpw.txt test.py
Traceback (most recent call last):
  File "/Users/vincent/.python-eggs/PyStudio-0.7-py2.7.egg-tmp/rpdb2.py", line 14502, in <module>
    ret = rpdb2.main()
  File "/Users/vincent/.python-eggs/PyStudio-0.7-py2.7.egg-tmp/rpdb2.py", line 14441, in main
    _rpdb2_pwd = read_pwd_file(secret)
  File "/Users/vincent/.python-eggs/PyStudio-0.7-py2.7.egg-tmp/rpdb2.py", line 3986, in read_pwd_file
    p = open(path, 'r')
IOError: [Errno 2] No such file or directory: 
u'/Users/vincent/Library/Application'

And then with python 2.7:
qwerty_mbp:~ vincent$ python -u 
/Users/vincent/.python-eggs/PyStudio-0.7-py2.7.egg-tmp/rpdb2.py -d 
--rid=/Users/vincent/Library/Application Support/Editra/cache/rpdbpw.txt test.py
Traceback (most recent call last):
  File "/Users/vincent/.python-eggs/PyStudio-0.7-py2.7.egg-tmp/rpdb2.py", line 14502, in <module>
    ret = rpdb2.main()
  File "/Users/vincent/.python-eggs/PyStudio-0.7-py2.7.egg-tmp/rpdb2.py", line 14441, in main
    _rpdb2_pwd = read_pwd_file(secret)
  File "/Users/vincent/.python-eggs/PyStudio-0.7-py2.7.egg-tmp/rpdb2.py", line 3986, in read_pwd_file
    p = open(path, 'r')
IOError: [Errno 2] No such file or directory: 
u'/Users/vincent/Library/Application'

Original comment by i@sdo.bz on 27 Aug 2012 at 8:44

GoogleCodeExporter commented 8 years ago

Original comment by CodyPrec...@gmail.com on 28 Aug 2012 at 3:56