Account Options

  1. Sign in
The old Google Groups will be going away soon, but your browser is incompatible with the new version.
Google Groups Home
« Groups Home
Launch not working on portable python
There are currently too many topics in this group that display first. To make this topic appear first, remove this option from another topic.
There was an error processing your request. Please try again.
flag
  7 messages - Collapse all  -  Translate all to Translated (View all originals)
The group you are posting to is a Usenet group. Messages posted to this group will make your email address visible to anyone on the Internet.
Your reply message has not been sent.
Your post was successful
 
From:
To:
Cc:
Followup To:
Add Cc | Add Followup-to | Edit Subject
Subject:
Validation:
For verification purposes please type the characters you see in the picture below or the numbers you hear by clicking the accessibility icon. Listen and type the numbers you hear
 
Tomas Schertel  
View profile  
 More options Apr 3 2012, 9:19 am
From: Tomas Schertel <tscher...@gmail.com>
Date: Tue, 3 Apr 2012 06:19:39 -0700 (PDT)
Local: Tues, Apr 3 2012 9:19 am
Subject: Launch not working on portable python

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?


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Cody  
View profile  
 More options Apr 3 2012, 10:22 am
From: Cody <codyprec...@gmail.com>
Date: Tue, 3 Apr 2012 09:22:25 -0500
Local: Tues, Apr 3 2012 10:22 am
Subject: Re: [editra issue:653] Launch not working on portable python
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


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Tomas Schertel  
View profile  
 More options Apr 3 2012, 10:42 am
From: Tomas Schertel <tscher...@gmail.com>
Date: Tue, 3 Apr 2012 07:42:58 -0700 (PDT)
Local: Tues, Apr 3 2012 10:42 am
Subject: Re: [editra issue:653] Launch not working on portable python

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\Pytho n\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.


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Cody  
View profile  
 More options Apr 3 2012, 10:53 am
From: Cody <codyprec...@gmail.com>
Date: Tue, 3 Apr 2012 09:53:08 -0500
Local: Tues, Apr 3 2012 10:53 am
Subject: Re: [editra issue:655] Launch not working on portable python
Hi,

On Tue, Apr 3, 2012 at 9:42 AM, Tomas Schertel <tscher...@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


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Tomas Schertel  
View profile  
 More options Apr 3 2012, 11:07 am
From: Tomas Schertel <tscher...@gmail.com>
Date: Tue, 3 Apr 2012 08:07:48 -0700 (PDT)
Local: Tues, Apr 3 2012 11:07 am
Subject: Re: [editra issue:655] Launch not working on portable python

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']


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Tomas Schertel  
View profile  
 More options Apr 9 2012, 12:57 pm
From: Tomas Schertel <tscher...@gmail.com>
Date: Mon, 9 Apr 2012 09:57:12 -0700 (PDT)
Local: Mon, Apr 9 2012 12:57 pm
Subject: Re: [editra issue:655] Launch not working on portable python

Hi Guys. Any news on this issue?

Thanks all.


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Cody  
View profile  
 More options Apr 9 2012, 1:58 pm
From: Cody <codyprec...@gmail.com>
Date: Mon, 9 Apr 2012 12:58:49 -0500
Local: Mon, Apr 9 2012 1:58 pm
Subject: Re: [editra issue:659] Launch not working on portable python
Hi,

On Mon, Apr 9, 2012 at 11:57 AM, Tomas Schertel <tscher...@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


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
End of messages
« Back to Discussions « Newer topic     Older topic »