467,920 Members | 1,261 Online
Bytes | Developer Community
New Post

Home Posts Topics Members FAQ

Post your question to a community of 467,920 developers. It's quick & easy.

_gtk ImportError

I __had__ a __working__ installation of the GTK Runtime and PyGTK
using Python23 under Win98, but managed to muck it up,
I think but couldn't swear to it, with a separate install of wGlade for Windows
which has since been un-installed ....

I've also un-installed/re-installed both the GTK Runtime and PyGTK
from the original packages ....

GTK Runtime 2.2.4.1
PyGTK 2.0 win32

Attempts to import gtk now fail as follows ....

python
Enthought Edition build 1028
Python 2.3 (#46, Aug 11 2003, 09:34:05) [MSC v.1200 32 bit (Intel)] on win32
Type "help", "copyright", "credits" or "license" for more information.

import gtk

Traceback (most recent call last):
File "<stdin>", line 1, in ?
File "K:\PYTHON23\Lib\site-packages\gtk-2.0\gtk\__init__.py", line 43, in ?
from _gtk import *
ImportError: DLL load failed: A device attached to the system is not functioning
..
# -----------------------------------------------------------------------------------

The GTK Runtime bin and lib paths
__are__ included in the Windows path environment variable ....

Using Google, I found one post in French that reported
what seemed to be the identical ImportError, but no solution ....

I also found quite a few posts related to other _gtk import problems,
but a couple of suggestions there didn't help either....

o whacking left-over versions of C:/Windows/System/libgtk-xxx.dll

o import pygtk
pygtk.require( '2.0' )
import gtk

This hurts my head, as I had it all working before,
but now have managed to blow it ....

Any clues ????

--
Cousin Stanley
Human Being
Phoenix, Arizona

Jul 18 '05 #1
  • viewed: 1120
Share:

This discussion thread is closed

Replies have been disabled for this discussion.

Similar topics

reply views Thread by Carsten Gehling | last post: by
reply views Thread by Wicked | last post: by
reply views Thread by M. Lavasani | last post: by
reply views Thread by Ben McBride | last post: by
2 posts views Thread by Adam Blinkinsop | last post: by
2 posts views Thread by vedran_dekovic | last post: by
2 posts views Thread by vedran_dekovic | last post: by
By using this site, you agree to our Privacy Policy and Terms of Use.