thegooglecodearchive / editra-plugins

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

Error trying to Debug #173

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
What Plugin does this relate to? What version of the Plugin?
PyStudio 0.1
What steps will reproduce the problem?
1. Use a Mac-Snow Leopard
2.Add PyDebug Panel to shelf-run from there after setting breakpoint
3.

What is the expected output? What do you see instead?
I guess I should see the breakpoint and be able to step through the code?
I see this:
Failed to attach. Error: Failed to find script.
Traceback (most recent call last):
  File "/Users/Tom/.python-eggs/PyStudio-0.1-py2.7.egg-tmp/rpdb2.py", line 14502, in <module>
    ret = rpdb2.main()
  File "/Users/Tom/.python-eggs/PyStudio-0.1-py2.7.egg-tmp/rpdb2.py", line 14441, in main
    _rpdb2_pwd = read_pwd_file(secret)
  File "/Users/Tom/.python-eggs/PyStudio-0.1-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/Tom/.python-eggs/PyStudio-0.1-py2.7.egg-tmp/rpdbpw.txt'

Debuggee finished.

What version of Editra are you using? On what operating system?
0.6.48 on Mac OSX 10.6.7

Please provide any additional information below.

Hopefully I am using this correctly.

Original issue reported on code.google.com by tsrdatat...@gmail.com on 22 May 2011 at 3:28

GoogleCodeExporter commented 9 years ago
Mike do you know what could cause this issue?

Original comment by CodyPrec...@gmail.com on 23 May 2011 at 3:35

GoogleCodeExporter commented 9 years ago

Original comment by CodyPrec...@gmail.com on 23 May 2011 at 3:41

GoogleCodeExporter commented 9 years ago
I have exactly the same problem. I'm using Editra 0.6.48 with Python 2.7.1 and 
wxGTK 2.8.12.0 on Kubuntu 11.04. (In case you thought it was specific to Macs.)

The only difference is the path of the missing file:
/usr/lib/pymodules/python2.7/rpdbpw.txt

Original comment by idcoll...@gmail.com on 23 May 2011 at 4:29

GoogleCodeExporter commented 9 years ago
rpdb2 works differently on Unix to Windows - it uses this password file rather 
than direct password input. Having said that, last time I tried it in Mac 
through Virtualbox, it worked for me. rpdbpw.txt does not appear to be in the 
egg.

Cody has anything changed in the egg creation?

Original comment by rans1...@gmail.com on 23 May 2011 at 4:34

GoogleCodeExporter commented 9 years ago
Assigning to Cody

Original comment by rans1...@gmail.com on 23 May 2011 at 4:37

GoogleCodeExporter commented 9 years ago
Essentially all that's needed in the egg is a file rpdbpw.txt with editra123 in 
it. 
http://code.google.com/p/editra-plugins/source/browse/trunk/PyStudio/rpdbpw.txt

Somehow, this file has not made it into the egg - if nothing has changed in egg 
creation, perhaps it's a difference between building the egg on Windows vs 
building it on Mac?

Original comment by rans1...@gmail.com on 23 May 2011 at 4:51

GoogleCodeExporter commented 9 years ago
Hi,

No changes where made to the setup file and the eggs were bundled as normal 
'python setup.py bdist_egg'. I build the eggs on my OSX build machine.

Looking at the setup.py file there is no data files section for including that 
text file in the egg so not sure how it could ever get included since it is not 
an importable resource that would be discovered by setuptools.

Probably need to add a package data section to include the extra data files. 
Also noticed that the includes for the language templates are not present.

i.e)

package_data={'PyStudio' : ['locale/*/LC_MESSAGES/*.mo']}

Similar line shoudl be added to include the text file in question as well as 
any translations that will be included in future versions.

Original comment by CodyPrec...@gmail.com on 23 May 2011 at 5:34

GoogleCodeExporter commented 9 years ago
Note to those affected by this issue:

A Python egg is basically just a zip file. You can manually add the txt file to 
the egg from the svn repository using a zip utility if you want to work around 
it in the currently released egg.

Original comment by CodyPrec...@gmail.com on 23 May 2011 at 5:36

GoogleCodeExporter commented 9 years ago
To clarify, Windows is unaffected. MacOS and Linux debugging will not work 
without manually adding 
http://code.google.com/p/editra-plugins/source/browse/trunk/PyStudio/rpdbpw.txt 
to the egg.

Original comment by rans1...@gmail.com on 24 May 2011 at 8:45

GoogleCodeExporter commented 9 years ago
transitioning to fixed

Original comment by CodyPrec...@gmail.com on 24 May 2011 at 3:18

GoogleCodeExporter commented 9 years ago
Thanks.

Original comment by tsrdatat...@gmail.com on 25 May 2011 at 12:08