AndressaSiq
Posts: 6
Joined: Fri Mar 18, 2016 5:05 pm

ImportError: No module named 'gobject'

Fri Mar 18, 2016 5:20 pm

Hi,

I'm new in Python and I saw this Error:

ImportError: No module named 'gobject'.

I don't know what I need to do for my script work. I need help.

User avatar
Douglas6
Posts: 4874
Joined: Sat Mar 16, 2013 5:34 am
Location: Chicago, IL

Re: ImportError: No module named 'gobject'

Fri Mar 18, 2016 7:20 pm

Where did you find the code you are trying to run? There may be instructions for installing prerequisites. If you are new to Python, using gobject may be a little advanced for you.

AndressaSiq
Posts: 6
Joined: Fri Mar 18, 2016 5:05 pm

Re: ImportError: No module named 'gobject'

Sun Mar 20, 2016 2:30 pm

Hi Douglas,

I found the code in this page... https://github.com/dixel/wifi-linux
And I didn't find any instructions for installing....

User avatar
Douglas6
Posts: 4874
Joined: Sat Mar 16, 2013 5:34 am
Location: Chicago, IL

Re: ImportError: No module named 'gobject'

Sun Mar 20, 2016 3:32 pm

AndressaSiq wrote:Hi Douglas,

I found the code in this page... https://github.com/dixel/wifi-linux
And I didn't find any instructions for installing....
You're right. Gobject (and dbus and glib) are installed in Raspbian by default, but only for Python 2. You'll probably find other issues, so make sure you are running that code with Python 2.

Code: Select all

sudo python2 list_rssi.py

AndressaSiq
Posts: 6
Joined: Fri Mar 18, 2016 5:05 pm

Re: ImportError: No module named 'gobject'

Sun Mar 20, 2016 3:36 pm

I will try this!!! Thanks a lot Douglas!!!! :)

AndressaSiq
Posts: 6
Joined: Fri Mar 18, 2016 5:05 pm

Re: ImportError: No module named 'gobject'

Mon Mar 21, 2016 12:00 pm

Hi Douglas,

This code worked in Python2. I only need to install gnuplot-py before.

Thanks a lot your help!

Return to “Python”