XMailforum is a readonly knowledge archive now.

Registering as a new user or answering posts is not possible anymore.

Might the force be with you, to find here what you are looking for.

2019-09-20 - hschneider, Admin

Cookie Disclaimer: This forum uses only essential, anonymous session cookies (xmailforum*), nothing to be scared of.

XMail Forum [Powered by Invision Power Board]
Printable Version of Topic
Click here to view this topic in its original format
XMail Forum > XMail Queue Manager > wxPython error


Posted by: l2g Mar 15 2004, 06:25 PM
I apologize if this has been asked before...
When starting XQM v1.46 I stumbled upon a wxPython error. Is there a file that logs these wxPython stdout/stderr messages? I just wanted to post the error message here hoping you guys can help me figure where the problem is.

One other question, When I try to start XMail in debug mode through /var/MailRoot/bin/XMail -Md -Pl -Cl -Sl, I get a" mail root path not found", even though I did export the MAIL_ROOT environment variable first. It started once I installed XQM.

Thanks for any help.

Liron.

Posted by: hschneider Mar 15 2004, 10:32 PM
These messages are dumped to the console only. Just start XQM from a shell to see the messages.

The export statement can vary from shell to shell, e.g.
export MAIL_ROOT=/var/....
export MAIL_ROOT="/var/...."
set MAIL_ROOT="/var/...."


Posted by: l2g Mar 15 2004, 10:59 PM
Hi Harald,
I'm just copying the message:
Traceback (most recent call last):
File "qmgrwin.py", line 1085 in OnUpdateUI
File "/usr/local/lib/python2.3/site-packages/wxPython/events.py", line 47, Skip wxPyhton.wxc.wxPyAssertionError:C++ assertion "wxTheApp->m_idle_tag==0" failed in /usr/src/redhat/BUILD/wxPythonSrc-2.4.2.4/src/gtk/app.cpp(374): attempt to install idle handler twice.

As for the MAIL_ROOT, up untill the XQM installation, everything worked fine. I used to export the variable and start XMail in debug mode. Anything I have to look for in the .conf file?

Posted by: l2g Mar 15 2004, 11:19 PM
When I searched for the message text with google, I found this statement for the exact same error:
"Make sure that you are not doing anything in non-GUI threads that could
cause a gtk gui callback to be invoked in the context of that thread.
For example, is the print statement above happening in a worker thread?"

What does he mean in layman words...?

Liron.

Posted by: hschneider Mar 16 2004, 08:03 AM
The Google article does not match this problem. It means that a seperate process tries to output something through the graphical interface. This is not the case here.

>in /usr/src/redhat/BUILD/wxPythonSrc-2.4.2.4/src/gtk/app.cpp(374): attempt to install idle handler twice.

It looks like you have already installed wxPython on your system and it collides with the embedded runtime module for some reason. Please unsinstall the wxPython package and try again.

Posted by: l2g Mar 16 2004, 06:35 PM
OK, I uninstalled wxPythonGTK-py2.2-2.4.2.4 package, but now recieved this error message:
Traceback (most recent call last):
File "qmgrwin.py", line 8, in ?
File "/usr/local/lib/python2.3/site-packages/wxPython/__init__.py", line 20, in ?
File "/usr/local/lib/python2.3/site-packages/wxPython/wxc.so", line 4, in ?
ImportError: libwx_gtkd-2.4.so: cannot open shared object file: No such file or
directory.

What do you recommend I should do?

Posted by: l2g Mar 16 2004, 07:22 PM
Copied libwx_gtkd-2.4.so /usr/lib and now XQM loads,
but again, even though I removed the new installation of wxPython
I still receive the previous "attempt to install idle handler twice"...
Perhaps I need to upgrade python to v2.3?

Posted by: hschneider Mar 16 2004, 07:56 PM
No, it's definately a wxWindows issue. What is your platform ?
Google reveals a bug report about this on FreeBSD ...


Posted by: l2g Mar 16 2004, 08:25 PM
I'm under Red Hat 9.
These are the packages I installed so far to get XQM running:
glut-3.7-12.i386.rpm
glut-devel-3.7-12.i386.rpm
Imaging-1.1.4.tar.gz
itcl-3.2-88.i386.rpm
MesaLib-6.0.tar.gz
Numeric-17.3.0.tar.gz
OpenGLContext-2.0.0b1-1.i386.rpm
swig-1.3.21.tar.gz
tix-8.1.4-88.i386.rpm
tkinter-2.2.2-26.i386.rpm
xqmagent_linux.tgz
xqmwin_linux.tgz

What do you recon?

Posted by: hschneider Mar 16 2004, 08:31 PM
There is no need to install the Agent and XQM on the same machine. Looks like their runtime environments collide. YOu only need the Agent, if your server has no GUI.

Posted by: l2g Mar 16 2004, 08:34 PM
ahhh...so remove xqm and just use the agent?
I will settle for the previous way of starting XMail via shell,
but I still get mail root path not found...why?

Posted by: hschneider Mar 16 2004, 11:30 PM
If you use the Agent on your server, then you need to use XQM on a workstation. The Agent is just a helper to od remote access on a server.

Make sure that the environment variable MAIL_ROOT is set and exported correctly. Alternatively you can force it in /etc/xqmagent.conf or in the setup dialog of XQM.

Posted by: l2g Mar 17 2004, 05:51 PM
Understood...Many thanks!

Powered by Invision Power Board (http://www.invisionboard.com)
© Invision Power Services (http://www.invisionpower.com)