Launch not working on portable python

97 views
Skip to first unread message

Tomas Schertel

unread,
Apr 3, 2012, 9:19:39 AM4/3/12
to edi...@googlegroups.com
Hi guys.

I have a custom portable python install that works really nice and running editra.
My only "oops" is that launch don't work.

When I click the run button, I got:

>>>
The requested command could not be executed.
>>> Exit Code: -1

Editra log gives me:

[10:14:57][Launch][info] Starting process
[10:14:57][launch][err] error decoding log message string
[10:14:57][Launch][info] Found commands [u'pylint', u'pylinterr', u'python']

I PyShell, I can see I'm at right directory:

Python 2.7.2 (default, Jun 12 2011, 15:08:59) [MSC v.1500 32 bit (Intel)] on win32
Type "help", "copyright", "credits" or "license" for more information.
>>> import os
>>> os.path.abspath(os.path.curdir)
'I:\\Programas\\Python'

My python executable is on this directory (I: is a usb stick).

What can I do to have launch working?

Cody

unread,
Apr 3, 2012, 10:22:25 AM4/3/12
to edi...@googlegroups.com
Hi,

What version of Editra and what version of Launch are you using?

Have you tried configuring the full path to your executable to see if
that works? Either that or add I\Programas\Python to your PATH
variable to ensure its on your path.

Launch always sets the working directory of the other process to the
location of the file that is being run in it so Editra may be in
I\Programas\Python but the spawned shell process is probably
elsewhere.


Cody

Tomas Schertel

unread,
Apr 3, 2012, 10:42:58 AM4/3/12
to edi...@googlegroups.com
Hi Cody.

I'm using Editra 0.6.99 and Launch 1.12.
I also have a few lines of batch code initializing my environment:

@SET "PATH=%~d0\Programas\utilitarios;%~d0\Programas\Python;%~d0\Programas\Python\Scripts;%PATH%"
@SET "PYTHONPATH=%~d0\Programas\Python;%~d0\Programas\Python\Lib\site-packages"
@SET "PYTHONHOME=%~d0\Programas\Python"

Using Editra's PyShell to see my environment variables (os.environ.iteritems), I got the right values.

Cody

unread,
Apr 3, 2012, 10:53:08 AM4/3/12
to edi...@googlegroups.com
Hi,

On Tue, Apr 3, 2012 at 9:42 AM, Tomas Schertel <tsch...@gmail.com> wrote:
> Hi Cody.
>
> I'm using Editra 0.6.99 and Launch 1.12.
> I also have a few lines of batch code initializing my environment:
>

<snip>

>
> Using Editra's PyShell to see my environment variables
> (os.environ.iteritems), I got the right values.
>

Have you tried setting the full absolute path to the executable your
trying to run in your Launch configuration to see if it acts any
differently?

If it still doesn't work then please set the Editor mode to Verbose
Debug (see pref dialog) then try to run Launch again and see if there
are any different errors printed to the log window or log file
(editra.xxxxxx.log in your temp directory).


Cody

Tomas Schertel

unread,
Apr 3, 2012, 11:07:48 AM4/3/12
to edi...@googlegroups.com
I did put full path to python executable but I got same error.
Changing Editra to verbose debug and calling Launch to run my code, I got this error message on Editra Log:

[12:05:39][Launch][info] Starting process
[12:05:39][launch][err] error decoding log message string
[12:05:39][launch][err]Traceback (most recent call last):
[12:05:39][launch][err]  File "i:\programas\python\lib\site-packages\editra\plugins\launch-1.12-py2.7.egg\launch\launch.py", line 685, in DoProcessError
[12:05:39][launch][err]    util.Log(u"[launch][err] %s" % excdata)
[12:05:39][launch][err]UnicodeDecodeError: 'ascii' codec can't decode byte 0xe1 in position 27: ordinal not in range(128)
[12:05:39][Launch][info] Found commands [u'pylint', u'pylinterr', u'python']

Tomas Schertel

unread,
Apr 9, 2012, 12:57:12 PM4/9/12
to edi...@googlegroups.com
Hi Guys. Any news on this issue?

Thanks all.

Cody

unread,
Apr 9, 2012, 1:58:49 PM4/9/12
to edi...@googlegroups.com
Hi,

On Mon, Apr 9, 2012 at 11:57 AM, Tomas Schertel <tsch...@gmail.com> wrote:
> Hi Guys. Any news on this issue?
>

Sorry, no haven't had much time recently. Please open a ticket in the
issue tracker with the information about the problem and the error.

Unfortunately the error message seems to be failing to display due to
an encoding error, so difficult to determine the original error. One
thing you could test is that the executable your trying to run and the
file/script it is running on using a path for both that does not
contain any extended ascii characters (umlauts, ect..) just to make
sure if it is an encoding issue or not.

Also what is the exact command posted to the Launch window (in the
blue text at the top)?


Thanks,

Cody

Reply all
Reply to author
Forward
0 new messages