You are not logged in.

#1 2010-05-24 18:02:27

shadyabhi
Member
From: Bangalore
Registered: 2010-05-23
Posts: 262
Website

ImportError while "import gnomecanvas" in python

I have a scrript which does the following import:

import gnomecanvas

[shadyabhi@shadyabhi-archlinux ~]$ harpia 
Traceback (most recent call last):
  File "/usr/bin/harpia", line 32, in <module>
    from harpia import harpiagcfrontend
  File "/usr/lib/python2.6/site-packages/harpia/harpiagcfrontend.py", line 35, in <module>
    import gnomecanvas
ImportError: No module named gnomecanvas
[shadyabhi@shadyabhi-archlinux ~]$

I tried searching but couldnt find the corresponding package.. pls help.

And I already have pygtk installed.

Offline

#2 2010-05-26 03:04:17

evr
Arch Linux f@h Team Member
Registered: 2009-01-23
Posts: 554

Re: ImportError while "import gnomecanvas" in python

i think you need to install gnome-python

Offline

#3 2010-05-26 03:32:30

shadyabhi
Member
From: Bangalore
Registered: 2010-05-23
Posts: 262
Website

Re: ImportError while "import gnomecanvas" in python

I already have that package installed.. Whats next?

Offline

#4 2010-05-26 04:02:44

kazuo
Member
From: São Paulo/Brazil
Registered: 2008-03-18
Posts: 413
Website

Re: ImportError while "import gnomecanvas" in python

So probably something is wrong with you install or script.

Check for the /usr/lib/python2.6/site-packages/gtk-2.0/gnomecanvas.so

And do a

python -c 'import gnomecanvas'

to see if you get some error, if you dont get so the problem is your script

gnomecanvas is provided by gnome-python

Offline

#5 2010-05-28 01:46:24

shadyabhi
Member
From: Bangalore
Registered: 2010-05-23
Posts: 262
Website

Re: ImportError while "import gnomecanvas" in python

I just upgraded that packages.. and problem solved automagically... smile thanx

Offline

Board footer

Powered by FluxBB