Python-spe-users Digest, Vol 11, Issue 2
[email protected] Sun, 02 Sep 2007 12:01:35 +0200
| Newsgroups | gmane.comp.python.spe.user |
|---|---|
| Message-ID | <[email protected]> |
Send Python-spe-users mailing list submissions to [email protected] To subscribe or unsubscribe via the World Wide Web, visit https://lists.berlios.de/mailman/listinfo/python-spe-users or, via email, send a message with subject or body 'help' to [email protected] You can reach the person managing the list at [email protected] When replying, please edit your Subject line so it is more specific than "Re: Contents of Python-spe-users digest..." _______________________________________________ http://pythonide.stani.be http://pythonide.stani.be/manual/html/manual.html http://pythonide.stani.be/blog/sm_donate _______________________________________________ Today's Topics: 1. Re: [Head,WinXP] Running fails (Stani's Python Editor) 2. Re: [Head,WinXP] Running fails (Diaa Sami) ---------------------------------------------------------------------- Message: 1 Date: Sat, 01 Sep 2007 14:57:09 +0200 From: Stani's Python Editor <[email protected]> Subject: Re: [spe-users] [Head,WinXP] Running fails To: Mailing list for spe users <[email protected]> Message-ID: <[email protected]> Content-Type: text/plain; charset=ISO-8859-1 Hi Diaaa, I am afraid that I need more information, as probably this is a mistake. Your spe files need to be in a '_spe' folder which should be on your python path. (Spe will insert the '_spe' path if it isn't in your pythonpath.) So my guess is that you renamed the '_spe' folder. Is that right? Stani Diaa Sami schreef: > http://pythonide.stani.be > http://pythonide.stani.be/manual/html/manual.html > http://pythonide.stani.be/blog/sm_donate > -- > > > Stani's Python Editor wrote: >> http://pythonide.stani.be >> http://pythonide.stani.be/manual/html/manual.html >> http://pythonide.stani.be/blog/sm_donate >> -- >> >> >> Hi Diaa Sami, >> You're right. Windows users will be happy with this. I've just committed >> this patch together with another small one. (On linux SPE will now save >> backup files with ~ rather than .bak) >> Thanks a lot! >> Stani >> >> Diaa Sami schreef: >>> http://pythonide.stani.be >>> http://pythonide.stani.be/manual/html/manual.html >>> http://pythonide.stani.be/blog/sm_donate >>> -- >>> >>> >>> I've just checked out r243 from the repository and I'm running on Windows XP, Python 2.5.1, wxPython >>> 2.6.4 Unicode. >>> When I run the application, with or without parameters I get the following message in the output panel: >>> C:\Python25\python.exe: can't open file 'C:\Documents': [Errno 2] No such file or directory >>> Script terminated. >>> >>> I investigated the problem and the following patch fixes it, there's no need for the 2 doublequotes >>> as they're already added in info.path() >>> >>> Index: Parent.py >>> =================================================================== >>> --- Parent.py (revision 243) >>> +++ Parent.py (working copy) >>> @@ -689,7 +689,7 @@ >>> 'path': path, >>> 'arguments': arguments, >>> 'python': info.PYTHON_EXEC} >>> - label = params['label'] = '"%(file)s" %(arguments)s'%params >>> + label = params['label'] = '%(file)s %(arguments)s'%params >>> os.chdir(path) >>> self.output.Execute("""%(python)s -u %(label)s"""%params,label=label,beep=beep) >>> >>> >>> Regards, >>> Diaa M. Sami >>> >>> _______________________________________________ >>> Python-spe-users mailing list >>> [email protected] >>> https://lists.berlios.de/mailman/listinfo/python-spe-users >>> > > thanks, I'm glad my patch was accepted, there's another minor problem that SPE.pyw doesn't work(on > Windows too, of course), it needs the modification found below > > Index: SPE.pyw > =================================================================== > --- SPE.pyw (revision 243) > +++ SPE.pyw (working copy) > @@ -1,4 +1,4 @@ > #!/usr/bin/env python > """Shortcut to launch spe in Windows.""" > if __name__=='__main__': > - import _spe.SPE > + import SPE > > DS > > _______________________________________________ > Python-spe-users mailing list > [email protected] > https://lists.berlios.de/mailman/listinfo/python-spe-users > ------------------------------ Message: 2 Date: Sun, 02 Sep 2007 01:23:00 +0300 From: Diaa Sami <[email protected]> Subject: Re: [spe-users] [Head,WinXP] Running fails To: [email protected] Message-ID: <[email protected]> Content-Type: text/plain; charset=ISO-8859-1; format=flowed Stani's Python Editor wrote: > > Hi Diaaa, > I am afraid that I need more information, as probably this is a mistake. > Your spe files need to be in a '_spe' folder which should be on your > python path. (Spe will insert the '_spe' path if it isn't in your > pythonpath.) So my guess is that you renamed the '_spe' folder. Is that > right? > Stani > well, no the folder name is correct, but I didn't know that it should be added to python path, it worked now... my point is that SPE.py works out of the box, but SPE.pyw doesn't. > (Spe will insert the '_spe' path if it isn't in your > pythonpath.) I'm now sure how can SPE insert it if it can't run in the first place. -- Diaa ------------------------------ _______________________________________________ Python-spe-users mailing list [email protected] https://lists.berlios.de/mailman/listinfo/python-spe-users End of Python-spe-users Digest, Vol 11, Issue 2 ***********************************************