473,698 Members | 2,451 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

cygwin python with Tkinter and pexpect module

Hey guys,

i have a big problem using Tkinter and pexpect in cygwin. i try to program
an winscp-like rsync Program for all posix Platforms (linux, macosx,
cygwin). i got a class SslConnection with a method listDirectory that gives
back a list of an remote directory using pexpect. this method works in
linux, it works in cygwin-python from command-line, but invoked in an
Tkinter-Program i got the strange Exception:
E:\cygwin\bin\p ython2.3.exe: *** unable to remap E:\cygwin\bin\t k84.dll to
same address as parent(0x710000 ) != 0xC20000 28 [main] python 604
sync_with_child : child 1848(0x63C) died before initialization with status
code 0x1
3133 [main] python 604 sync_with_child : *** child state child loading
dlls
E:\cygwin\bin\p ython2.3.exe: *** unable to remap E:\cygwin\bin\t k84.dll to
same
address as parent(0x710000 ) != 0xC20000
174653 [main] python 604 sync_with_child : child 1932(0x5F8) died before
initial
ization with status code 0x1
203190 [main] python 604 sync_with_child : *** child state child loading
dlls

dont know what to do , gui-program is running under linux. Any ideas? Is
this a bug in cygwin tcltk?

thanks for every advice,
joerg

--
Hi
I am a signature virus.
Please copy me to your .signature file to help me spread.
Jul 18 '05 #1
2 5792
Jörg,

On Sat, Sep 06, 2003 at 07:16:39PM +0200, Jörg Maier wrote:
it works in cygwin-python from command-line, but invoked in an
Tkinter-Program i got the strange Exception:
E:\cygwin\bin\p ython2.3.exe: *** unable to remap E:\cygwin\bin\t k84.dll to
same address as parent(0x710000 ) != 0xC20000 28

[snip]

Is this a bug in cygwin tcltk?


No, you have been bitten by the Cygwin fork() issue:

http://www.google.com/search?hl=en&i...=Google+Search

The solution is to install the rebase package via Cygwin's setup.exe and
rebase your system.

Please read the README:

http://www.tishler.net/jason/softwar...ase-2.2.README

Jason

--
PGP/GPG Key: http://www.tishler.net/jason/pubkey.asc or key servers
Fingerprint: 7A73 1405 7F2B E669 C19D 8784 1AFD E4CC ECF4 8EF6

Jul 18 '05 #2
Jason,

As said anywhere else as proposal to solve this problem:

works like a charm.

Thank you
Jörg Maier
On Sat, Sep 06, 2003 at 07:16:39PM +0200, Jörg Maier wrote:
it works in cygwin-python from command-line, but invoked in an
Tkinter-Program i got the strange Exception:
E:\cygwin\bin\p ython2.3.exe: *** unable to remap E:\cygwin\bin\t k84.dll
to same address as parent(0x710000 ) != 0xC20000 28

[snip]

Is this a bug in cygwin tcltk?
No, you have been bitten by the Cygwin fork() issue:

http://www.google.com/search?hl=en&i...=Google+Search
The solution is to install the rebase package via Cygwin's setup.exe and
rebase your system.

Please read the README:

http://www.tishler.net/jason/softwar...ase-2.2.README

Jason


--
Hi
I am a signature virus.
Please copy me to your .signature file to help me spread.
Jul 18 '05 #3

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

2
4791
by: walala | last post by:
Dear all, I recently came across a Python program which used "telnetlib" to automate things in the several unix machines in our local networks; I attached the script as follows; I wonder if it is possible to have the equivlent libary for "rlogin" in Python? Because our local networks support only SSH or RLOGIN. This script used Telnet so it could not be used in our local networks;
10
3689
by: Andrew Dalke | last post by:
Is there an author index for the new version of the Python cookbook? As a contributor I got my comp version delivered today and my ego wanted some gratification. I couldn't find my entries. Andrew dalke@dalkescientific.com
2
4081
by: Stewart Midwinter | last post by:
this has me puzzled; I've created a small test app to show the problem I'm having. I want to use subprocess to execute system commands from inside a Tkinter app running under Cygwin. When I open a python interpreter and run my subprocess command, all is well. But when I run the same command from inside a Tkinter app, I'm getting errors.
0
2356
by: Stewart Midwinter | last post by:
I have a Tkinter app running on cygwin. It includes a Test menu item that does nothing more than fetch a directory listing and display it in a Toplevel window (I'd use a tkMessageBox showinfo widget, but for some reason the text is invisible on cygwin). After I close the Toplevel widget, all of the menus in my app behave as though they have no contents to them, i..e I can press on the File menu button, and see it depress, but the Exit...
16
3090
by: diffuser78 | last post by:
I want to write a python program and call OS specific commands in it. So basically, instead of typing in on the command line argument I want to have it in a python program and let it do the action. for example. in my program I would want to call the ssh feature like one does on the command line ssh Admin@192.168.2.10 .....etc How can I do this easily ?
0
1811
vinoj
by: vinoj | last post by:
Hi All, These are the following things which i want to do:- 1. I will be taking the ipaddress, username and password from the user using cgi ffrom the browser. 2. Now i want to get the mac address which i can get by connecting to the remote machine and by executing ifconfig command. Now to connect to a remote machine in python i tried using pexpect module by which i can ssh to remote machine and get the mac...
23
2057
by: Harishankar | last post by:
Hi, Sorry to start off on a negative note in the list, but I feel that the Python subprocess module is sorely deficient because it lacks a mechanism to: 1. Create non-blocking pipes which can be read in a separate thread (I am currently writing a mencoder GUI in Tkinter and need a full fledged process handler to control the command line and to display the progress in a text-box)
11
5068
by: Emmanouil Angelakis | last post by:
Hi, I am tryiong to do something obviously trivial such as: I have a c program called "tsys2list" that when it is ran it asks the user to give the value of "tcal" which is a variable. I want to call the "tsys2list" from within a pyrthon script lets call it "gamma.py" >>>but<<< I want to pass the value of "tcal" to th eprogram automatically and not by interacting with the keyboard. How do I do that? thanks i advance! manolis
0
8676
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However, people are often confused as to whether an ONU can Work As a Router. In this blog post, we’ll explore What is ONU, What Is Router, ONU & Router’s main usage, and What is the difference between ONU and Router. Let’s take a closer look ! Part I. Meaning of...
0
8608
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can effortlessly switch the default language on Windows 10 without reinstalling. I'll walk you through it. First, let's disable language synchronization. With a Microsoft account, language settings sync across devices. To prevent any complications,...
0
9029
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven tapestry of website design and digital marketing. It's not merely about having a website; it's about crafting an immersive digital experience that captivates audiences and drives business growth. The Art of Business Website Design Your website is...
1
8897
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows Update option using the Control Panel or Settings app; it automatically checks for updates and installs any it finds, whether you like it or not. For most users, this new feature is actually very convenient. If you want to control the update process,...
0
7732
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing, and deployment—without human intervention. Imagine an AI that can take a project description, break it down, write the code, debug it, and then launch it, all on its own.... Now, this would greatly impact the work of software developers. The idea...
0
5860
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and then checking html paragraph one by one. At the time of converting from word file to html my equations which are in the word document file was convert into image. Globals.ThisAddIn.Application.ActiveDocument.Select();...
0
4370
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The last exercise I practiced was to create a LAN-to-LAN VPN between two Pfsense firewalls, by using IPSEC protocols. I succeeded, with both firewalls in the same network. But I'm wondering if it's possible to do the same thing, with 2 Pfsense firewalls...
1
3050
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated we have to send another system
2
2332
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.