DLL load failed on gtksourceview2 (load_pygtk line 49)

Bug #525652 reported by Ben Heley
36
This bug affects 6 people
Affects Status Importance Assigned to Milestone
DreamPie
Fix Released
Undecided
Unassigned

Bug Description

c:\Program Files\DreamPie>dreampie.exe
Traceback (most recent call last):
  File "dreampie.py", line 3, in <module>
  File "dreampielib\gui\__init__.pyc", line 73, in <module>
  File "dreampielib\gui\load_pygtk.pyc", line 49, in load_pygtk
ImportError: DLL load failed: The specified module could not be found.

GTK and pygtk installed independently, though I've been told the GTK installer doesn't work on Windows 7 properly.

Revision history for this message
Noam Yorav-Raphael (noamraph) wrote :

Thanks for the report!

Can you try and run DreamPie while setting %PATH% to nothing? Perhaps your other installation of GTK conflicts with DreamPie.
GTK and PyGTK come with the Windows installer, and therefore the GTK installer for windows 7 is not needed.

Another thing which might help me figure this out: Can you download the source, copy pygtk-2.6 and gtk-runtime directories from "\Program Files" to where you unpacked the archive, and try to run dreampie.py from there?

Changed in dreampie:
status: New → Incomplete
Revision history for this message
jiri.zahradil (jz-zahradil) wrote :

I did try to set the %PATH% to include installed directory with pygtk dll files - nothing happened. Although I have Python 2.6 installed, I dont have PyGTK installed (just dreampie).

Revision history for this message
LorenXo (lorenxo-lnx) wrote :

I've got the same problem. Fresh install on Windows 7 64bit with Python 2.6.4 64bit already installed. I haven't installed GTK or PyGTK myself.

After installing Dreampie it said it couldn't find Python so I pointed it at the 64bit Python install folder. I've since installed Python 2.6.4 32bit and reinstalled Dreampie but I don't know if it has actually changed which Python install it is using.

Setting %PATH% to nothing (by doing PATH=;) gives:

C:\Program Files (x86)\DreamPie>PATH
PATH=(null)

C:\Program Files (x86)\DreamPie>"C:\Program Files (x86)\DreamPie\dreampie.exe"
Traceback (most recent call last):
  File "dreampie.py", line 3, in <module>
  File "dreampielib\gui\__init__.pyc", line 73, in <module>
  File "dreampielib\gui\load_pygtk.pyc", line 36, in load_pygtk
  File "os.pyc", line 423, in __getitem__
KeyError: 'PATH'

Revision history for this message
kyledj (kyleisnotagerbil) wrote :

I get the same error in Windows Vista. Importing GTK from the standard Python interpreter works fine.

Revision history for this message
kyledj (kyleisnotagerbil) wrote :

I take that back: Importing pygtk works fine... when I try to import gtk on its own it fails. It seems to be an issue with GTK for me (so may be unrelated)

Revision history for this message
Noam Yorav-Raphael (noamraph) wrote :

kyledj - So does DreamPie (when installed with the Windows installer) works for you?

It seems to me that this problem is specific to Windows 7 64 bit. Am I correct?

Revision history for this message
jiri.zahradil (jz-zahradil) wrote :

My problem is related to Windows 7 64bit & Python 2.6 32bit.

Revision history for this message
kyledj (kyleisnotagerbil) wrote :

Noam - No, the installer does not work. It seems to be unable to import gtksourceview2. I am not sure why. This may be unrelated to the Windows 7 issues.

summary: - Unable to run on Windows 7 ( "dreampielib\gui\load_pygtk.pyc", line 49,
- in load_pygtk)
+ DLL load failed on gtksourceview2 (load_pygtk line 49)
Revision history for this message
Noam Yorav-Raphael (noamraph) wrote :

Can you please try to download pygtk-2.6.zip from
https://sourceforge.net/projects/dreampie/files/pygtk-2.6.zip/download

And put the pygtk-2.6 directory from the zip file instead of \Program Files\DreamPie\pygtk-2.6 ?

I think it may solve the problem.

Some explanation: when I first created the Windows installer a few months ago, there was no Python 2.6 version of pygtksourceview2. So I took the Python 2.5 version, and textually replaced "python2.5" with "python2.6" in the file. It seemed to work fine, but perhaps in some cases it doesn't. Now an official Python 2.6 file was released, so I replaced my patched file with the official one.

Does it solve the problem?

Revision history for this message
jiri.zahradil (jz-zahradil) wrote :

It works perfectly for me. Thanks.

Revision history for this message
Noam Yorav-Raphael (noamraph) wrote :

Ok, so I assume that that was the problem.
If it still happens to anyone - reopen the bug!

Changed in dreampie:
status: Incomplete → Fix Committed
Revision history for this message
Tiffany Antopolski (mimico-tiffany) wrote : Re: [Bug 525652] Re: DLL load failed on gtksourceview2 (load_pygtk line 49)

Works perfectly for me too.
Thank-you.

On Wed, Feb 24, 2010 at 6:34 AM, Noam Yorav-Raphael <email address hidden>wrote:

> Ok, so I assume that that was the problem.
> If it still happens to anyone - reopen the bug!
>
> ** Changed in: dreampie
> Status: Incomplete => Fix Committed
>
> --
> DLL load failed on gtksourceview2 (load_pygtk line 49)
> https://bugs.launchpad.net/bugs/525652
> You received this bug notification because you are a direct subscriber
> of a duplicate bug.
>
> Status in DreamPie - The Python shell you've always dreamed about!: Fix
> Committed
>
> Bug description:
> c:\Program Files\DreamPie>dreampie.exe
> Traceback (most recent call last):
> File "dreampie.py", line 3, in <module>
> File "dreampielib\gui\__init__.pyc", line 73, in <module>
> File "dreampielib\gui\load_pygtk.pyc", line 49, in load_pygtk
> ImportError: DLL load failed: The specified module could not be found.
>
>
> GTK and pygtk installed independently, though I've been told the GTK
> installer doesn't work on Windows 7 properly.
>
> To unsubscribe from this bug, go to:
> https://bugs.launchpad.net/dreampie/+bug/525652/+subscribe
>

--
Tiffany Antopolski

Revision history for this message
kyledj (kyleisnotagerbil) wrote :

Worked great for me as well. Thanks a lot!

Revision history for this message
Josh (q-launchpad-joshduck-spamgourmet-com) wrote :

Doesn't fix it for me. I'm on Windows 64 with Python 2.6 win32. Replacing the pygtk folder moved the error from line 47 to 49.

C:\Users\Josh>PATH
PATH=C:\Program Files (x86)\ActiveState Komodo Edit 5\;C:\Windows\system32;C:\Wi
ndows;C:\Windows\System32\Wbem;C:\Windows\System32\WindowsPowerShell\v1.0\;C:\Pr
ogram Files (x86)\Python26;C:\Program Files (x86)\Python31;C:\Program Files (x86
)\ATI Technologies\ATI.ACE\Core-Static;C:\Program Files\TortoiseSVN\bin;

C:\Users\Josh>"C:\Program Files (x86)\DreamPie\dreampie.exe" --hide-console-wind
ow C:\Program Files\Python26\python2.exe
Traceback (most recent call last):
  File "dreampie.py", line 3, in <module>
  File "dreampielib\gui\__init__.pyc", line 73, in <module>
  File "dreampielib\gui\load_pygtk.pyc", line 49, in load_pygtk
ImportError: DLL load failed: The specified procedure could not be found.

Revision history for this message
Noam Yorav-Raphael (noamraph) wrote :

Can you re-check if when using the previous pygtk folder the error was on line 47 and now it's on line 49?

It's strange, because line 47 imports gtk.glade, and I haven't touched glade - the only difference between the folders is gtksourceview2.

Revision history for this message
Josh (q-launchpad-joshduck-spamgourmet-com) wrote :

Sorry, perhaps I made a mistake. I just uninstalled and retried. Error was on line 49 both times. I removed the old pygtk folder and replaced it with the one from the zip you linked to earlier.

C:\Program Files (x86)\DreamPie>dreampie.exe
Traceback (most recent call last):
  File "dreampie.py", line 3, in <module>
  File "dreampielib\gui\__init__.pyc", line 73, in <module>
  File "dreampielib\gui\load_pygtk.pyc", line 49, in load_pygtk
ImportError: DLL load failed: The specified procedure could not be found.

Revision history for this message
Josh (q-launchpad-joshduck-spamgourmet-com) wrote :

Sorry, just recalled that I had installed and uninstalled GTK+ previously (the 2.16 bundle I think).

Revision history for this message
Noam Yorav-Raphael (noamraph) wrote :

I'm at a loss here.
Perhaps you can try to install the GTK bundle and pygtksourceview2 and
say if it works?
The pygtk-2.6 directory includes a README file with links to the
installer programs I used.

Revision history for this message
Noam Yorav-Raphael (noamraph) wrote :

Josh - do you mind to open a new bug? Since the change did solve the problem to some users, I think that we can close this one and start a fresh one.

(A hint that it's a different one: the message says "The specified procedure could not be found" instead of "The specified module".)

So I close this one and you start another one...

Changed in dreampie:
status: Fix Committed → Fix Released
Revision history for this message
Josh (q-launchpad-joshduck-spamgourmet-com) wrote :

Noam, I've posted the new bug #529716. I didn't have much luck following the steps in the readme. I'm a bit short on time at the moment but if necessary I can give it another go later this week. Thanks.

To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Duplicates of this bug

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.