linux-awi / editra

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

"Run" invokes wrong Python version #744

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
What steps will reproduce the problem?
1. Well-constructed Python program in current editing window
2. /Tools/Run
3. Editra attempts to run program with Python2.6 instead of 2.7
4. When I run from the same program from my terminal program (Mac 
Terminal.app), the correct Python version is used.
5. Therefore, it appears that Editra does not load the same startup information 
that Terminal.app loads.

What is the expected output? What do you see instead?
I expect Python2.7 modules to be used and the program to run rather than break

IMPORTANT!!! Please answer these questions for any and ALL bug reports

What version of the product are you using? On what operating system?
Editra 0.7.01

What method of install was your version installed with (Binary/Source)?
Binary

If from source: What version of python and wxPython are you using?
N/A

Please provide any additional information below.
I suspect I'm supposed to tell Editra what startup information to use, but 
can't find this in preferences or elsewhere!

Original issue reported on code.google.com by eckof...@ucdavis.edu on 18 Jun 2012 at 6:20

GoogleCodeExporter commented 9 years ago
I discovered the answer to my question and feel a little foolish for having 
asked it. My code file had a stray shebang reference to the wrong version of 
Python. Apparently, Editra pays attention to this and was doing exactly what it 
was supposed to do.

Thanks for a fine product in the public domain. I use it all the time and am 
pleased.

Original comment by eckof...@ucdavis.edu on 18 Jun 2012 at 6:31

GoogleCodeExporter commented 9 years ago
Hi,

You can also explicitly set the python version in the Launch plugin 
configuration by supplying the full path to the python to use.

Original comment by CodyPrec...@gmail.com on 19 Jun 2012 at 11:19