[pygtk] [OT] Re: dynamic treestore

2010-11-28 Thread Marco Giusti
On Sun, Nov 28, 2010 at 01:53:21AM -0600, alex goretoy wrote:
 wow, thank you. This is exactly what I was looking for :)
 
 def get_treestore(n=1):
 if n:
 return gtk.TreeStore(*((str,) * n))
 return gtk.TreeStore(str)

usually I prefer do not check for function parameters.
who is calling `get_treestore`? if the input come from the user I prefer
check the input and then call, or not, the function. if the input come
from a computation, a wrong value is a bug in the program that need to
be fixed. just if I want to be sure I add an `assert` statement.

m.

-- 
Excellentium virorum est improborum negligere contumeliam,
a quibus etiam laudari turpe.
-- Plutarco
___
pygtk mailing list   pygtk@daa.com.au
http://www.daa.com.au/mailman/listinfo/pygtk
Read the PyGTK FAQ: http://faq.pygtk.org/


[pygtk] DLL load errors with Py2.6, PyGTK 2.22 and GTK 2.22 bundle

2010-11-28 Thread Paul Goins

Hello,

I recently upgraded my GTK/PyGTK installation due to some missing API
calls.  However, since doing so I now am now unable to run my PyGTK
application.

Running through the testing instructions on the FAQ
(http://faq.pygtk.org/index.py?req=showfile=faq21.001.htp):

C:\code\projects\jbenc:\python26\python
Python 2.6.4 (r264:75708, Oct 26 2009, 08:23:19) [MSC v.1500 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 module
  File c:\python26\lib\site-packages\gtk-2.0\gtk\__init__.py, line 40, in 
module
from gtk import _gtk
ImportError: DLL load failed: 指定されたプロシージャが見つかりません。
(Translation: DLL load failed: The specified procedure could not be found.)

As far as I can tell, I'm meeting the specified requirements.  System
details are listed below.

Does anyone have any ideas on how to get this going?  Thanks in
advance.

- Paul Goins

--


System environment
--

OS: Windows 7 64-bit Japanese

Python version: 2.6.4 32-bit (as seen above)

GTK libraries/binaries installed:

11/28/2010  09:43 PM24,333,636 gtk+-bundle_2.22.0-20101016_win32.zip

PyGTK packages installed:

11/28/2010  05:58 PM   875,558 pygtk-2.22.0.win32-py2.6.exe
11/28/2010  05:58 PM   221,101 pycairo-1.8.10.win32-py2.6.exe
11/28/2010  05:58 PM   450,396 pygobject-2.26.0.win32-py2.6.exe



The GTK libs were installed to C:\gtk_bundle, and C:\gtk_bundle was
added to my PATH.  The below command line session shows this was done
correctly:

C:\Users\Vultaire\Downloadsdir c:\gtk_bundle
 ドライブ C のボリューム ラベルは Windows です
 ボリューム シリアル番号は A0E4-0776 です

 c:\gtk_bundle のディレクトリ

11/28/2010  09:44 PMDIR  .
11/28/2010  09:44 PMDIR  ..
11/28/2010  09:44 PMDIR  bin
11/28/2010  09:44 PMDIR  etc
10/16/2010  07:27 PM 1,187 
gtk+-bundle_2.22.0-20101016_win32.README.txt
11/28/2010  09:44 PMDIR  include
11/28/2010  09:44 PMDIR  lib
11/28/2010  09:44 PMDIR  man
11/28/2010  09:44 PMDIR  manifest
11/28/2010  09:44 PMDIR  share
11/28/2010  09:44 PMDIR  src
   1 個のファイル   1,187 バイト
  10 個のディレクトリ  65,878,736,896 バイトの空き領域

C:\Users\Vultaire\Downloadsecho %PATH%
c:\Program Files (x86)\NVIDIA 
Corporation\PhysX\Common;C:\windows\system32;C:\windows;C:\windows\System32\Wbem;C:\windows\System32\WindowsPowerShell\v1.0\;C:\Program
 Files (x86)\Git\cmd;C:\Program Files (x86)\Git\bin;C:\Program Files 
(x86)\Lua\5.1;C:\Program Files (x86)\Lua\5.1\clibs;C:\gtk_bundle\bin;C:\Program 
Files (x86)\Steel Bank Common Lisp\1.0.37\;C:\Python31;C:\Program Files 
(x86)\GnuWin32\bin
___
pygtk mailing list   pygtk@daa.com.au
http://www.daa.com.au/mailman/listinfo/pygtk
Read the PyGTK FAQ: http://faq.pygtk.org/

Re: [pygtk] DLL load errors with Py2.6, PyGTK 2.22 and GTK 2.22 bundle

2010-11-28 Thread Dieter Verfaillie

Quoting Paul Goins gene...@vultaire.net:

C:\code\projects\jbenc:\python26\python
Python 2.6.4 (r264:75708, Oct 26 2009, 08:23:19) [MSC v.1500 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 module
  File c:\python26\lib\site-packages\gtk-2.0\gtk\__init__.py,  
line 40, in module

from gtk import _gtk
ImportError: DLL load failed: 指定されたプロシージャが見つかりません。
(Translation: DLL load failed: The specified procedure could not  
be found.)


Try opening c:\python26\python\site-packages\gtk-2.0\gtk\_gtk.pyd with
Dependency Walker [1]. It will tell you what .dll file is missing...

mvg,
Dieter

[1] http://www.dependencywalker.com/


This message was sent using IMP, the Internet Messaging Program.
___
pygtk mailing list   pygtk@daa.com.au
http://www.daa.com.au/mailman/listinfo/pygtk
Read the PyGTK FAQ: http://faq.pygtk.org/

Re: [pygtk] DLL load errors with Py2.6, PyGTK 2.22 and GTK 2.22 bundle

2010-11-28 Thread Dieter Verfaillie

Quoting Dieter Verfaillie diet...@optionexplicit.be:

Quoting Paul Goins gene...@vultaire.net:

   C:\code\projects\jbenc:\python26\python
   Python 2.6.4 (r264:75708, Oct 26 2009, 08:23:19) [MSC v.1500 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 module
 File c:\python26\lib\site-packages\gtk-2.0\gtk\__init__.py,  
line 40, in module

   from gtk import _gtk
   ImportError: DLL load failed: 指定されたプロシージャが見つかりません。
   (Translation: DLL load failed: The specified procedure could not  
be found.)


Another important point: if dependency walker reports a single missing .dll
file (libgio-2.0-0.dll is a likely candidate), you've got a good chance that
a different directory on your PATH contains an older gtk+ runtime.

In that case you should check the properties of one of the other dll files.
Right click LIBGLIB-2.0-0.DLL in the dependency tree and click properties.
Then check the Location field. If it is not C:\gtk_bundle\bin you'll need
to fix your PATH environment variable.

mvg,
Dieter


This message was sent using IMP, the Internet Messaging Program.
___
pygtk mailing list   pygtk@daa.com.au
http://www.daa.com.au/mailman/listinfo/pygtk
Read the PyGTK FAQ: http://faq.pygtk.org/

Re: [pygtk] DLL load errors with Py2.6, PyGTK 2.22 and GTK 2.22 bundle

2010-11-28 Thread Stephen George


I also recommend DependencyWalker for resolving these issues.

GRAMPS is a pygtk program, a lot of our Windows users have been facing 
lot's of DLL load failed issues recently , I've just started a Wiki 
page on the GRAMPS wiki talking about this issue.


http://www.gramps-project.org/wiki/index.php?title=ImportError:_DLL_load_failed

It may be of some help, but I haven't got to the section discussing 
dependency walker usage.


Steve


On 29/11/2010 12:41 AM, Dieter Verfaillie wrote:

Quoting Paul Goins gene...@vultaire.net:

C:\code\projects\jbenc:\python26\python
Python 2.6.4 (r264:75708, Oct 26 2009, 08:23:19) [MSC v.1500 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 module
  File c:\python26\lib\site-packages\gtk-2.0\gtk\__init__.py, 
line 40, in module

from gtk import _gtk
ImportError: DLL load failed: 指定されたプロシージャが見つかりま 
せん。
(Translation: DLL load failed: The specified procedure could not 
be found.)


Try opening c:\python26\python\site-packages\gtk-2.0\gtk\_gtk.pyd with
Dependency Walker [1]. It will tell you what .dll file is missing...

mvg,
Dieter

[1] http://www.dependencywalker.com/


This message was sent using IMP, the Internet Messaging Program.
___
pygtk mailing list   pygtk@daa.com.au
http://www.daa.com.au/mailman/listinfo/pygtk
Read the PyGTK FAQ: http://faq.pygtk.org/




___
pygtk mailing list   pygtk@daa.com.au
http://www.daa.com.au/mailman/listinfo/pygtk
Read the PyGTK FAQ: http://faq.pygtk.org/

Re: [pygtk] DLL load errors with Py2.6, PyGTK 2.22 and GTK 2.22 bundle

2010-11-28 Thread Dieter Verfaillie

Quoting Stephen George steve_...@optusnet.com.au:

I also recommend DependencyWalker for resolving these issues.

GRAMPS is a pygtk program, a lot of our Windows users have been  
facing lot's of DLL load failed issues recently , I've just  
started a Wiki page on the GRAMPS wiki talking about this issue.


http://www.gramps-project.org/wiki/index.php?title=ImportError:_DLL_load_failed

It may be of some help, but I haven't got to the section discussing  
dependency walker usage.


I see gramps lists graphviz as an optional dependency. Beware that
graphviz installs it's own gtk+ runtime (and might add graphviz to
PATH). This could be one reason some of your windows users are having
problems.

If the graphviz directory comes first on PATH (before the gtk+ runtime
version required by pygtk, pygobject and pycairo), the python bindings
will try to load the necessary dll files from an unexpected location,
most likely having and incompatible gtk+ runtime.

Just a thought...

mvg,
Dieter


This message was sent using IMP, the Internet Messaging Program.
___
pygtk mailing list   pygtk@daa.com.au
http://www.daa.com.au/mailman/listinfo/pygtk
Read the PyGTK FAQ: http://faq.pygtk.org/


Re: [pygtk] DLL load errors with Py2.6, PyGTK 2.22 and GTK 2.22 bundle

2010-11-28 Thread Stephen George

On 29/11/2010 8:18 AM, Dieter Verfaillie wrote:

Quoting Stephen George steve_...@optusnet.com.au:

I also recommend DependencyWalker for resolving these issues.

GRAMPS is a pygtk program, a lot of our Windows users have been 
facing lot's of DLL load failed issues recently , I've just started 
a Wiki page on the GRAMPS wiki talking about this issue.


http://www.gramps-project.org/wiki/index.php?title=ImportError:_DLL_load_failed 



It may be of some help, but I haven't got to the section discussing 
dependency walker usage.


I see gramps lists graphviz as an optional dependency. Beware that
graphviz installs it's own gtk+ runtime (and might add graphviz to
PATH). This could be one reason some of your windows users are having
problems.

If the graphviz directory comes first on PATH (before the gtk+ runtime
version required by pygtk, pygobject and pycairo), the python bindings
will try to load the necessary dll files from an unexpected location,
most likely having and incompatible gtk+ runtime.

Just a thought...

mvg,
Dieter


Hi Dieter,

Thanks for pointing the problem out

Yes, .. we are aware of this, and is part of the reason why the script 
check_gtk_install was created, to try and highlight when people have 
path issues ( whose gtk comes first).
I think most people on a pygtk forum have some sort of developer 
background, .. but our users on GRAMPS come from all walks of life, and 
some are not necessarily technically savvy and have real problem just 
installing the gtk / pygtk stack. If they get that far and then  have 
DLL load failures it all gets too hard for them to diagnose. I think on 
windows we have lost a lot of potential GRAMPS users just because the 
gtk / pygtk stack is too hard for them to install.


Now days most people start GRAMPS with a batch file that puts the bin 
directory of  GTK rutime GRAMPS wants to use on the path in front of all 
others - therefore the path modification is only valid for the duration 
of the session, and isolated to that one process.


whinge
Personally I have a lot of problem with GTK applications that ship a 
local copy of GTK putting their copy on the path for all to see.
I don't see that problem with GIMP, .. while they ship a local copy of 
GTK, they don't put themselves on the path, and I think that's a model 
other shipping gtk apps could follow.


It's no wonder a globally installed gtk runtime, is so problematic when 
it's got to fight with various local gtk installs getting in the way.


In fact now we are starting to find something has installed some DLL's ( 
i.e. intl.dll, iconv.dll)  to windows\system or windows\system32, this 
causes a major problem as this path gets checked BEFORE the path, so 
even you put your global gtk-runtime first on path, it will still find 
the wrong copy of intl.dll.

/whinge

Steve
___
pygtk mailing list   pygtk@daa.com.au
http://www.daa.com.au/mailman/listinfo/pygtk
Read the PyGTK FAQ: http://faq.pygtk.org/


Re: [pygtk] DLL load errors with Py2.6, PyGTK 2.22 and GTK 2.22 bundle

2010-11-28 Thread Dieter Verfaillie

Quoting Stephen George steve_...@optusnet.com.au:
Now days most people start GRAMPS with a batch file that puts the  
bin directory of  GTK rutime GRAMPS wants to use on the path in  
front of all others - therefore the path modification is only valid  
for the duration of the session, and isolated to that one process.


I've been using that solution myself for some years now (I no longer
tolerate any package that uses gtk+ to change PATH on my system, so
there's a couple of bat files I use for monodevelop, glade, ...)


whinge
Personally I have a lot of problem with GTK applications that ship a  
local copy of GTK putting their copy on the path for all to see.
I don't see that problem with GIMP, .. while they ship a local copy  
of GTK, they don't put themselves on the path, and I think that's a  
model other shipping gtk apps could follow.


Yeah, gimp is one of the few that actually gets it right on windows...

It's no wonder a globally installed gtk runtime, is so problematic  
when it's got to fight with various local gtk installs getting in  
the way.


Yep, changing PATH should never have been advertised as a way to
get software using gtk+ working on windows. It's all great as a trick
used by developers, but in the end it bites users. Hard.

In fact now we are starting to find something has installed some  
DLL's ( i.e. intl.dll, iconv.dll)  to windows\system or  
windows\system32, this causes a major problem as this path gets  
checked BEFORE the path, so even you put your global gtk-runtime  
first on path, it will still find the wrong copy of intl.dll.


I encountered that problem last year. Don't remember what package did
it... As you said, the PATH problem can be handled but system/system32
simply breaks everything...

mvg,
Dieter


This message was sent using IMP, the Internet Messaging Program.
___
pygtk mailing list   pygtk@daa.com.au
http://www.daa.com.au/mailman/listinfo/pygtk
Read the PyGTK FAQ: http://faq.pygtk.org/


Re: [pygtk] Gnome panel applet troubles

2010-11-28 Thread Leon Bogaert
OK, I found it: I had to use this fix:
applet.set_background_widget(applet)

and my applet extended the gnomeapplet.Applet class. After removing that it 
worked!

Regards,
Leon


From: Leon Bogaert
Sent: Saturday, November 27, 2010 19:51
To: pygtk@daa.com.au
Subject: Gnome panel applet troubles

Hi all,

I'm having some troubles with how my gnome panel looks. I've attached some 
screenshots so you can see what I mean.
The left applet is the hamster applet for time tracking. The applet on the 
right is my applet.

As you can see in the first screenshot (Screenshot-3.png) the background of my 
applet is weird. The lower half is another color than the top part.
If I hover over my applet (Screenshot-5.png) the background turns bright. The 
hamster applet doesn't have that.

And it's even weirder when I put a label in it. Then the color of the font in 
the label is very dark so it's almost unreadable.

What could I be doing wrong? I don't get it.

My Applet init method:

def __init__(self, applet, iid):
logging.debug('__init__')

# save the applet object
self.applet = applet

# determine the size to draw the icon
size = self.applet.get_size() - 2

#Get theme, find SVG icon and put it in a pixbuf
theme = gtk.icon_theme_get_default()
pixbuf = theme.load_icon(self.icon_name, size, 
gtk.ICON_LOOKUP_FORCE_SVG)

#Load image
image = gtk.image_new_from_pixbuf(pixbuf)

# set up the applet tooltip
self.applet.set_tooltip_text(self.title)

self.button = gtk.Button()
self.button.set_relief(gtk.RELIEF_NONE)
self.button.set_image(image)

self.button.connect('button-press-event', self.button_press)

self.applet.add(self.button)
self.applet.show_all()

Thanks in advance!

Regards,
Leon
___
pygtk mailing list   pygtk@daa.com.au
http://www.daa.com.au/mailman/listinfo/pygtk
Read the PyGTK FAQ: http://faq.pygtk.org/


Re: [pygtk] DLL load errors with Py2.6, PyGTK 2.22 and GTK 2.22 bundle

2010-11-28 Thread Paul Goins

On 11/28/2010 10:41 PM, Dieter Verfaillie wrote:
 Quoting Paul Goins gene...@vultaire.net:
 [...]
 from gtk import _gtk
 ImportError: DLL load failed: 指定されたプロシージャが見つかりません。
 (Translation: DLL load failed: The specified procedure could not be found.)

 Try opening c:\python26\python\site-packages\gtk-2.0\gtk\_gtk.pyd with
 Dependency Walker [1]. It will tell you what .dll file is missing...

Thanks.  It seems I have new dependencies which did not exist with the
previous version.  (I deleted the old versions of gtk/pygtk
completely, so I don't know what version they were, unfortunately.)

Dependency walker image is here:
http://www.vultaire.net/mail_attachments/_gtk.dwi

Basically, I get 3 DLLs missing, and the immediately relevant part of
the dependency walker image looks like this:

  (?)   MSVCR90.DLL
  Error opening file.  指定されたプロシージャが見つかりません。(2)
  Dependency chain: _GTK.PYD/MSVCR90.DLL

  (Hourglass/?) GPSVC.DLL
  Error opening file.  指定されたプロシージャが見つかりません。(2)
  Dependency chain: 
_GTK.PYD/LIBCAIRO-2.DLL/USER32.DLL/ADVAPI32.DLL/WINTRUST.DLL/CRYPT32.DLL/USERENV.DLL/GPSVC.DLL

  (Hourglass/?) IESHIMS.DLL
  Error opening file.  指定されたプロシージャが見つかりません。(2)
  Dependency chain: 
_GTK.PYD/LIBCAIRO-2.DLL/USER32.DLL/ADVAPI32.DLL/WINTRUST.DLL/CRYPT32.DLL/USERENV.DLL/SHELL32.DLL/SHDOCVW.DLL/IEFRAME.DLL/IESHIMS.DLL

Seems at the least there's a Visual Studio dependency in MSVCR90.DLL.
I can grab a copy somewhere of this; not a big deal.  The other stuff
seems like it's only maybe required.

Anyway, this wasn't a GTK dependency at all in this case.  Perhaps the
wiki should be updated?

- Paul
___
pygtk mailing list   pygtk@daa.com.au
http://www.daa.com.au/mailman/listinfo/pygtk
Read the PyGTK FAQ: http://faq.pygtk.org/

Re: [pygtk] DLL load errors with Py2.6, PyGTK 2.22 and GTK 2.22 bundle

2010-11-28 Thread Stephen George

Hi Paul,

MSVCR90.DLL is a requirement for many applications. (built with 
Microsoft Visual C++)


See Microsoft Visual C++ 2008 SP1 Redistributable Package (x86)
http://www.microsoft.com/downloads/en/details.aspx?FamilyID=a5c84275-3b97-4ab7-a40d-3802b2af5fc2

I think MSVCR90.DLL is a dependency of pyGTK, your old pyGTK you where 
running probably had a dependency for an old version of the MS C 
Runtime, which would still be installed on your HD somewhere, but just 
not compatible with the new pyGTK.


See if installing the MS runtime above fixes your problem.

Steve


On 29/11/2010 10:47 AM, Paul Goins wrote:

On 11/28/2010 10:41 PM, Dieter Verfaillie wrote:
 Quoting Paul Goins gene...@vultaire.net:
 [...]
 from gtk import _gtk
 ImportError: DLL load failed: 指定されたプロシージャが見つかりません。
 (Translation: DLL load failed: The specified procedure could not be 
found.)


 Try opening c:\python26\python\site-packages\gtk-2.0\gtk\_gtk.pyd with
 Dependency Walker [1]. It will tell you what .dll file is missing...

Thanks.  It seems I have new dependencies which did not exist with the
previous version.  (I deleted the old versions of gtk/pygtk
completely, so I don't know what version they were, unfortunately.)

Dependency walker image is here:
http://www.vultaire.net/mail_attachments/_gtk.dwi

Basically, I get 3 DLLs missing, and the immediately relevant part of
the dependency walker image looks like this:

  (?)   MSVCR90.DLL
  Error opening file.  指定されたプロシージャが見つかりません。(2)
  Dependency chain: _GTK.PYD/MSVCR90.DLL

  (Hourglass/?) GPSVC.DLL
  Error opening file.  指定されたプロシージャが見つかりません。(2)
  Dependency chain: 
_GTK.PYD/LIBCAIRO-2.DLL/USER32.DLL/ADVAPI32.DLL/WINTRUST.DLL/CRYPT32.DLL/USERENV.DLL/GPSVC.DLL


  (Hourglass/?) IESHIMS.DLL
  Error opening file.  指定されたプロシージャが見つかりません。(2)
  Dependency chain: 
_GTK.PYD/LIBCAIRO-2.DLL/USER32.DLL/ADVAPI32.DLL/WINTRUST.DLL/CRYPT32.DLL/USERENV.DLL/SHELL32.DLL/SHDOCVW.DLL/IEFRAME.DLL/IESHIMS.DLL


Seems at the least there's a Visual Studio dependency in MSVCR90.DLL.
I can grab a copy somewhere of this; not a big deal.  The other stuff
seems like it's only maybe required.

Anyway, this wasn't a GTK dependency at all in this case.  Perhaps the
wiki should be updated?

- Paul
___
pygtk mailing list   pygtk@daa.com.au
http://www.daa.com.au/mailman/listinfo/pygtk
Read the PyGTK FAQ: http://faq.pygtk.org/





___
pygtk mailing list   pygtk@daa.com.au
http://www.daa.com.au/mailman/listinfo/pygtk
Read the PyGTK FAQ: http://faq.pygtk.org/

Re: [pygtk] DLL load errors with Py2.6, PyGTK 2.22 and GTK 2.22 bundle

2010-11-28 Thread general
Hi Stephen,

 From: Stephen George steve_...@optusnet.com.au
 
 MSVCR90.DLL is a requirement for many applications. (built with 
 Microsoft Visual C++)

Yes, I understand this.  My point is that it was not documented on the
PyGTK pages, at least as far as I can see.  I'm just trying to help
improve the docs so others don't hit the same problem.

 See Microsoft Visual C++ 2008 SP1 Redistributable Package (x86)
 http://www.microsoft.com/downloads/en/details.aspx?FamilyID=a5c84275-3b97-4ab7-a40d-3802b2af5fc2

I'll try installing this later tonight.

Thanks for the help.

- Paul


___
pygtk mailing list   pygtk@daa.com.au
http://www.daa.com.au/mailman/listinfo/pygtk
Read the PyGTK FAQ: http://faq.pygtk.org/


Re: [pygtk] DLL load errors with Py2.6, PyGTK 2.22 and GTK 2.22 bundle

2010-11-28 Thread Dieter Verfaillie

Quoting Stephen George steve_...@optusnet.com.au:

Hi Paul,

MSVCR90.DLL is a requirement for many applications. (built with  
Microsoft Visual C++)


See Microsoft Visual C++ 2008 SP1 Redistributable Package (x86)
http://www.microsoft.com/downloads/en/details.aspx?FamilyID=a5c84275-3b97-4ab7-a40d-3802b2af5fc2

I think MSVCR90.DLL is a dependency of pyGTK, your old pyGTK you  
where running probably had a dependency for an old version of the MS  
C Runtime, which would still be installed on your HD somewhere, but  
just not compatible with the new pyGTK.


It's required by Python (2.6, 2.7, 3.0, 3.1). Current pygtk, pygobject
and pycairo versions distributed on ftp.gnome.org are built with mingw,
thus require msvcrt.dll (which is distributed together with the os).


See if installing the MS runtime above fixes your problem.


There a great chance it will, but that might hide the source of his problem:
The fact that MSVCR90.DLL is not found is scary. The python installation
normally takes care of this for you (when needed) when you install python.
There is however one scenario where things might go wrong though:

- you do not have the Microsoft Visual C++ Redistributable package,
version 9.0.21022.8 (required by python 2.6, 2.7, 3.0, 3.1) installed on
your system
- and you install the python interpreter and select install for this  
user only

- and you are testing the above with a different user account than the account
you used to install python.

Another option might be that some incomplete .exe.manifest file is
somehow used that points to a different c runtime version causing  
things to fail... py2exe users should be especially careful about  
this...


Fix the msvcr issue first, chances are the other 2 dll files will be solved
at the same time...

mvg,
Dieter


This message was sent using IMP, the Internet Messaging Program.
___
pygtk mailing list   pygtk@daa.com.au
http://www.daa.com.au/mailman/listinfo/pygtk
Read the PyGTK FAQ: http://faq.pygtk.org/


Re: [pygtk] DLL load errors with Py2.6, PyGTK 2.22 and GTK 2.22 bundle

2010-11-28 Thread Dieter Verfaillie

Quoting gene...@vultaire.net:

Hi Stephen,


From: Stephen George steve_...@optusnet.com.au

MSVCR90.DLL is a requirement for many applications. (built with
Microsoft Visual C++)


Yes, I understand this.  My point is that it was not documented on the
PyGTK pages, at least as far as I can see.  I'm just trying to help
improve the docs so others don't hit the same problem.


It's required by Python itself (for 2.6 and newer...). See the other
message I sent ;)

mvg,
Dieter


This message was sent using IMP, the Internet Messaging Program.

___
pygtk mailing list   pygtk@daa.com.au
http://www.daa.com.au/mailman/listinfo/pygtk
Read the PyGTK FAQ: http://faq.pygtk.org/