× Forum Header

No module named gdb

More
24 Jun 2013 10:02 - 24 Jun 2013 10:03 #35964 by adelabarra
Dears LinuxCNC:
I've installed emc2-2.4.5 on Slackware 10.1 with rtai 3.3.
I succeeded on running the emc2 gui interface and the port test.

I was trying to run the stepconf wizard and found the next error:

No module named gobject.

Which I "solved" installing pygobject-2.21.0 and glib-2.22.4
Also I set the environment variable:
export PYTHONPATH="/usr/local/glib2224/share/gdb" , then the gobject.py file, appeared.

But afterwards, when entering module gobject, appeared the next error:

No module named gdb:

Question: Do I have to install anything else?
Or is it just a problem about settings, path, environment variables, or symlinks?

Any clue or suggestion is welcommed.

Thanks in advance.

Alejandro.
Last edit: 24 Jun 2013 10:03 by adelabarra. Reason: Added glib-2.22.4

Please Log in or Create an account to join the conversation.

More
24 Jun 2013 18:26 #35977 by ArcEye
Replied by ArcEye on topic No module named gdb
Hi

AFAIK the only gdb is the Gnu De-Bugger

As your build is so different I have no idea why you are trying to include debugging code

The below may help, or you may need to re-build with debugging options off

stackoverflow.com/questions/4792483/how-to-import-gdb-in-python

wiki.python.org/moin/DebuggingWithGdb

regards

Please Log in or Create an account to join the conversation.

More
24 Jun 2013 18:49 - 24 Jun 2013 18:50 #35978 by adelabarra
Replied by adelabarra on topic No module named gdb
Hello:
Thanks for your fast answer! I made that post at eleven in the night!
I don't know why I am using it too, I am not trying to include the debugging code: I am forced to include it.
There are just a few lines in stepconf:

... ... ....
import gobject
... ... ...

It makes the program load the module gobject.py...

and in gobject .py first line, there is:

import gdb...
....

If it is not absolutely necessary:

Could I comment the "unnecessary" lines and go ahead?

Regards:

Alejandro.
Last edit: 24 Jun 2013 18:50 by adelabarra. Reason: Ortographic typo

Please Log in or Create an account to join the conversation.

More
24 Jun 2013 20:27 #35985 by ArcEye
Replied by ArcEye on topic No module named gdb
I think you are simply missing some required libraries, particularly for pylibgtk2

Run this

apt-get -y install cvs build-essential fakeroot debhelper libpth-dev libgtk2.0-dev kernel-wedge tcl8.5-dev tk8.5-dev bwidget python2.5-dev python-tk python-dev \
libglu1-mesa-dev libgtk2.0-dev libgnomeprintui2.2-dev libncurses5-dev libxaw7-dev gettext libreadline5-dev lyx texlive-extra-utils imagemagick texinfo groff qt3-dev-tools

or use whatever package manager you have to ensure you have these packages

They are all the standard ones for building kernels and linuxcnc. You will need python-boost and a couple of others if building the master, but configure will tell you what is missing

Whilst I can't see any use of gdb by stepconf, the complaint is that you do not have all the modules installed you should have, so you need to track them down.

regards

Please Log in or Create an account to join the conversation.

More
24 Jun 2013 20:52 #35987 by adelabarra
Replied by adelabarra on topic No module named gdb
Ok.
Maybe the "gobject.py" was not just the one I needed.
When I use:

import gobject from the python command line,

It loads another file, and gdb doesn't appear any more.

I'll try the whole thing again and post the results.

Regards.

Alejandro

Please Log in or Create an account to join the conversation.

Time to create page: 0.072 seconds
Powered by Kunena Forum