I need you help in solving the below described problem.
It seems that the socket client comunication does not work correctly when using WxPython version 2.8 and above with Python2.7 on Windows OS
I have a main application written in WxPython which is calling in a separate process other python files.The communication between them was done via socket cliect implementation
This was working fine in WXPython version 2.8 and Python 2.5
However in Python 2.7 it is not working the same
In order to check the possible causes for this I made small several tests between 2 separate python files (without WxPython) run in parallel one as server and one as client.
The tests where working fine, the connection was established and I could execute the client file and see the prints in the server
Then I include in the server file the Wx (version 2.8 for python 2.7 ) library and create a frame
If I established the connection before calling the Frame the connection is established and I could see the print
If I establish the connection after calling the Frame it is not working
Therefore my conclusion is that there is an issue regarding usage of WX python and Python 2.7
If you have any info, some ideas or you have encounter this in your applications please help me.
I don’t have time to look at your files right now, but I can tell
you that I use sockets along with Python 2.7.12, wxPython 3.0.2.0,
and OS X 10.10.5 with no difficulty.
David
···
On 09/09/2016 03:16 AM, Lazar Marius
wrote:
Hello to all,
I need you help in solving the below described problem.
It seems that the socket client comunication does not work
correctly when using WxPython version 2.8 and above with
Python2.7 on Windows OS
I have a main application written in WxPython which is
calling in a separate process other python files.The
communication between them was done via socket cliect
implementation
** This was working fine in WXPython version 2.8 and Python
2.5**
However in Python 2.7 it is not working the same
In order to check the possible causes for this I made
small several tests between 2 separate python files (without
WxPython) run in parallel one as server and one as client.
The tests where working fine, the connection was
established and I could execute the client file and see
the prints in the server
Then I include in the server file the Wx (version 2.8
for python 2.7 ) library and create a frame
If I established the connection before calling the Frame
the connection is established and I could see the print
If I establish the connection after calling the Frame it
is not working
Therefore my conclusion is that there is an issue
regarding usage of WX python and Python 2.7
If you have any info, some ideas or you have encounter
this in your applications please help me.
attached are the testing files only as example
–
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,
If you expect to get help with a problem, you need to tell us what
the problem is. “Does not work correctly” is not a problem
description. Tell us exactly what you EXPECTED to happen, and then
what DID happen.
Your conclusion is wrong. The code you attached could not possibly
have worked, in any version of Python or wx. Notice these few
lines:
“application.MainLoop()” will not return until your main window is
closed. Thus, you never even create the listening socket until the
window closes. When I run this, as soon as I close the window, it
accepts the socket from the client, prints the results, and shuts
down.
Now, I suspect that this problem was introduced when you tried to
reduce your larger program to a small test case. If you describe
the details a bit more, maybe one of us can help.
···
Lazar Marius wrote:
I need you help in solving the below described problem.
It seems that the socket client comunication does not work
correctly when using WxPython version 2.8 and above with
Python2.7 on Windows OS
** This was working fine in WXPython version 2.8 and Python
2.5**
However in Python 2.7 it is not working the same
In order to check the possible causes for this I made
small several tests between 2 separate python files (without
WxPython) run in parallel one as server and one as client.
The tests where working fine, the connection was
established and I could execute the client file and see
the prints in the server
Then I include in the server file the Wx (version 2.8
for python 2.7 ) library and create a frame
If I established the connection before calling the Frame
the connection is established and I could see the print
If I establish the connection after calling the Frame it
is not working
Therefore my conclusion is that there is an issue
regarding usage of WX python and Python 2.7
`def main():``
``
`` application = BoaApp(0)``
`` application.MainLoop() ``
``
`` address = ('localhost', 6000) # family is deduced