problems: 1, spe 2, thread

Hi!

Firstly, I cannot untar spe on linux. Anybody had success with this:
It say to me:
$ tar -xzvf SPE-0.5.1.e-wx2.4.2.4.-bl2.31.tar.gz
tar: This does not look like a tar archive
tar: Skipping to next header
tar: Archive contains obsolescent base-64 headers

gzip: stdin: unexpected end of file
tar: Child returned status 1
tar: Error exit delayed from previous errors

I have already downloaded it several times.
The .exe is working on windows. That auto-completion
is a good feature to me, and I couldn't enable it in
DrPython yet. I'm interested in any editor what has
auto-completion and class-browser. (under linux)

···

************

I wrote a program on linux, and it didn't work on win XP.
Python 2.3.4, latest wxPython

I have problem with this part (easy read version here):
It seems that it didn't reach the thread. Because i cannot
see that "I'm in the thread!\n" text. It's not a network problem,
I mean "telnet atp.mud.hu 3000" surely works.

    def mnuSessionConnect(self, event):
        if not self.connected:
            self.s = socket.socket(socket.AF_INET, socket.SOCK_STREAM)
            self.s.connect(("atp.mud.hu", 3000))
            self.connected=true
            self.s.setblocking(1)
            self.ConnThread = thread.start_new_thread(self.ConnectionThread, ())
    
    def ConnectionThread(self):
        wxCallAfter(self.WriteAnsiStr, "I'm in the thread!\n")
        while true:
            try:
                r, w, e = select.select([self.s],[],[], .1)
                if r:
                    str=r[0].recv(1024)
                    if len(str)!=0:
                        wxCallAfter(self.OnSocketInput, str)
                    else:
                        self.s.close()
                        self.connected=false
            except:
                break
                wxCallAfter(self.WriteAnsiStr, "Connection error.\n")
        wxCallAfter(self.WriteAnsiStr, "Connection closed.\n")
    
How to do that in Windows? I hoped that I don't have to change any line and
I can freely walk between at least Linux and Windows :wink: Hmm. Maybe its not
as wxPython related, excuse me because of this :wink:

Thanks in advance.

Lajos Uti

Well, I’m new to wxPython, but as for the possible file corruption:

did you try doing

$ file SPE-0.5.1.e-wx2.4.2.4.-bl2.31.tar.gz

??

The ‘file’ command will look for the magic bytes in the file to verify the type. It is possible that the file is a tar, not tgz file. Some servers have the “feature” of gzipping tars or unzipping tgz’s before sending it to you.

Matthew Zaleski

···

On Wed, 29 Sep 2004 23:14:25 +0200, Uti Lajos wrote:

Hi!

Firstly, I cannot untar spe on linux. Anybody had success with
this: It say to me: $ tar -xzvf SPE-0.5.1.e-wx2.4.2.4.-
bl2.31.tar.gz tar: This does not look like a tar archive tar:
Skipping to next header tar: Archive contains obsolescent base-64
headers

gzip: stdin: unexpected end of file
tar: Child returned status 1
tar: Error exit delayed from previous errors

I have already downloaded it several times.

I have the same issue. I think the tar file is corrupt. The author suggests
that we just wait for the next release - rather than repair the tar.

I have been working with Eric (an editor) and it sort of has auto-complete and
call tips. At least I got it to work (but not with wxpython). I do like
that it has a project file. However, the thing I like the best is the
debugger - it's great.
I also got DrPython to work too. I believe there is a script on the site that
allows call-tips and autocomplete.

Don't have an answer for the rest of your questions.
John

···

On Wednesday 29 September 2004 14:14, Uti Lajos wrote:

Hi!

Firstly, I cannot untar spe on linux. Anybody had success with this:
It say to me:
$ tar -xzvf SPE-0.5.1.e-wx2.4.2.4.-bl2.31.tar.gz
tar: This does not look like a tar archive
tar: Skipping to next header
tar: Archive contains obsolescent base-64 headers

gzip: stdin: unexpected end of file
tar: Child returned status 1
tar: Error exit delayed from previous errors

I have already downloaded it several times.
The .exe is working on windows. That auto-completion
is a good feature to me, and I couldn't enable it in
DrPython yet. I'm interested in any editor what has
auto-completion and class-browser. (under linux)