I am thinking that I did open the start file from the "wxPython IN
ACTION" example
and it might have been created in a Windows/DOS environment. I did
indeed find non Linux end of line char’s following the hashbang line
and did not change that at first. I did remove the 0x0d char and that
allowed the program to execute. I am thinking that the fact that the
script would run if calling python followed by the py file should have
indicated to me that was the issue.
To test out GEDIT this morning, I created a very simple script and
checked it with
using GHEX editor and there was no extraneous 0x0d there, just the
Unix EOL char 0x0a. So, that must have been the issue. That should be
a warning in using download python files that could be generated on a
Windows platform.
BYW Chris, I am sort of a NOAA fan as I always thought NOAA operated
some very interesting ocean going vessels. I am a former Merchant
Marine and those things always get my attention.
You have a valid point in that GEDIT may work as you described, using
the auto-detect feature.
Best Regards
···
On Wed, May 21, 2014 at 10:45 AM, Chris Barker - NOAA Federal [via wxPython-users] <[hidden email]> wrote:
On Tue, May 20, 2014 at 5:28 PM, Tim Roberts <[hidden email]> wrote:
eightbits wrote:
Ok, thanks to all those who pointed me in the right direction. I opened
the
file in question, this time using GHEX a Linux hex editor. I removed all
of
the 0x0d,0x0a (CR/LF) bytes. That allowed the code to work and it did
not
exhibit the problems I was struggling with.
So, that begs the question: Is the GEDIT editor not suitable to generate
proper python/wxpython code?
I suspect that GEDIT auto-detects the line endings used in a file, so once
you load a file with DOS line endings, it will keep using them. I"m sure
there is a way to change it for a particular file.
-CHB
–
Christopher Barker, Ph.D.
Oceanographer
Emergency Response Division
NOAA/NOS/OR&R (206) 526-6959 voice
7600 Sand Point Way NE (206) 526-6329 fax
Seattle, WA 98115 (206) 526-6317 main reception
[hidden email]
–
You received this message because you are subscribed to the Google Groups
“wxPython-users” group.
To unsubscribe from this group and stop receiving emails from it, send an
email to [hidden email].
For more options, visit https://groups.google.com/d/optout.
If you reply to this email, your message will be added to the discussion
below:
http://wxpython-users.1045709.n5.nabble.com/wxpython-not-executing-in-terminal-command-mode-tp5721089p5721115.html
To unsubscribe from wxpython not executing in terminal/command mode., click
here.
NAML
–
"You’re neither right nor wrong
because people agree with you.
You’re right because your facts
and your reasoning are right."
Warren Buffett
View this message in context: Re: Re: wxpython not executing in terminal/command mode.
Sent from the wxPython-users mailing list archive at Nabble.com.