I have written an application which uses threads and the XMPP library -
this is a library which supports the jabber instant messaging protocol.
The application works fine when run from Idle, however I get thread
errors when I try to run it as an EXE created with Py2Exe or when it is
run within other editors such as SPE.
I need to ship the application to end users so any pointers on thread
handling when creating shipping apps would be useful.
For reasons of confidentiality I cannot post all the source code,
however the error log is below.
Thanks in advance.
Best,
rod
update (server adddress deleted)
Jabber Login Successful
Greg forced SASL not to be used. Auhentication fails if it is used.
Warning: unable to perform SASL auth os (serger address deleted). Old
authentication method used!
idname:
glocopex executing
Exception in thread Thread-1 (most likely raised during interpreter
shutdown):
Traceback (most recent call last):
File "C:\Python23\lib\threading.py", line 442, in __bootstrap
File "I:\My Documents\pyscripts\Newclient\newclient.py", line 368, in
run
File "I:\My Documents\pyscripts\Newclient\newclient.py", line 404, in
GoOn
File "I:\My Documents\pyscripts\Newclient\newclient.py", line 399, in
StepOn
File "C:\Python23\lib\site-packages\xmpp\dispatcher.py", line 116, in
Process
File "C:\Python23\lib\site-packages\xmpp\transports.py", line 101, in
receive
Script terminated. 2 1142
> I have written an application which uses threads and the XMPP library - this is a library which supports the jabber instant messaging protocol. The application works fine when run from Idle, however I get thread errors when I try to run it as an EXE created with Py2Exe or when it is run within other editors such as SPE.
I need to ship the application to end users so any pointers on thread handling when creating shipping apps would be useful.
For reasons of confidentiality I cannot post all the source code, however the error log is below.
Thanks in advance.
Best,
rod
update (server adddress deleted) Jabber Login Successful Greg forced SASL not to be used. Auhentication fails if it is used. Warning: unable to perform SASL auth os (serger address deleted). Old authentication method used! idname: glocopex executing Exception in thread Thread-1 (most likely raised during interpreter shutdown): Traceback (most recent call last): File "C:\Python23\lib\threading.py", line 442, in __bootstrap File "I:\My Documents\pyscripts\Newclient\newclient.py", line 368, in run File "I:\My Documents\pyscripts\Newclient\newclient.py", line 404, in GoOn File "I:\My Documents\pyscripts\Newclient\newclient.py", line 399, in StepOn File "C:\Python23\lib\site-packages\xmpp\dispatcher.py", line 116, in Process File "C:\Python23\lib\site-packages\xmpp\transports.py", line 101, in receive Script terminated.
I got errors in this style when shutting down a multi-threaded app. Does
this appear by any chance when quitting your client? Then you can ignore
it.
diez
Hi Diez,
No this occurs when the client is executed. Basically it runs as you
see above then terminates. It should be noted that the errors involving
the /xmpp libraries seem to change each time. I have no doubt it is
connected to that, but the error does not happen at all when I run the
client through IDLE.
Best,
rod This thread has been closed and replies have been disabled. Please start a new discussion. Similar topics
by: Grzegorz Kaczor |
last post by:
Hello all,
I've got a VERY strange network problem with Win2k Server and .NET.
I've got one central server (hub) getting raw binary data (files) from
many locations. Both server and clients...
|
by: James Niceguy |
last post by:
Hi,
I have written a simple program that does the following:
The main program will spown MAX_THREADS number of threads, each
of which will simply add to a global shared counter for MAX_COUNT...
|
by: Grzegorz Kaczor |
last post by:
Hello,
I've got a VERY strange network problem with Win2k Server and .NET.
I've got one central server (hub) getting raw binary data (files)
from many locations. Both server and clients are...
|
by: Curious |
last post by:
Hi,
I have a worker thread running, where basically its operation is to
execute in an infinite loop.
Now, when I am suspending this thread, the CPU usage time is still
remaining 100%.
What...
|
by: gamehack |
last post by:
Hi all,
I've been testing out a small function and surprisingly it does not
work okay. Here's the full code listing:
#include "stdlib.h"
#include "stdio.h"
char* escaped_byte_cstr_ref(char...
|
by: RobKinney1 |
last post by:
Here is another question we have been meaning to post for a long time. My
colleague is literally pulling chunks of hair out of his head right now.
We have a logging class. This class is...
|
by: Gotch |
last post by:
Hi,
I'm getting a very strange behaviour while running a project I've
done.... Let's expose it: I've two projects. Both of them use a Form
to do some Gui stuff. Other threads pack up messages...
|
by: Dox33 |
last post by:
I ran into a very strange behaviour of raw_input().
I hope somebody can tell me how to fix this.
(Or is this a problem in the python source?)
I will explain the problem by using 3 examples....
|
by: darren |
last post by:
Hi
I have to write a multi-threaded program. I decided to take an OO
approach to it. I had the idea to wrap up all of the thread functions
in a mix-in class called Threadable. Then when an...
|
by: taylorcarr |
last post by:
A Canon printer is a smart device known for being advanced, efficient, and reliable. It is designed for home, office, and hybrid workspace use and can also be used for a variety of purposes. However,...
|
by: Charles Arthur |
last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
|
by: aa123db |
last post by:
Variable and constants
Use var or let for variables and const fror constants.
Var foo ='bar';
Let foo ='bar';const baz ='bar';
Functions
function $name$ ($parameters$) {
}
...
|
by: ryjfgjl |
last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
|
by: BarryA |
last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
|
by: nemocccc |
last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
|
by: Hystou |
last post by:
There are some requirements for setting up RAID:
1. The motherboard and BIOS support RAID configuration.
2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
|
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,...
|
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...
| |