Python configuration question when python scripts are executed using Appweb as web server.
gagsl-py2 at yahoo.com.ar
Wed Aug 5 22:18:02 CEST 2009
En Tue, 04 Aug 2009 10:15:24 -0300, IronyOfLife <mydevforums at gmail.com>
> On Aug 3, 8:42 pm, "Gabriel Genellina" <gagsl-... at yahoo.com.ar> wrote:
>> En Mon, 03 Aug 2009 11:04:07 -0300, IronyOfLife <mydevfor... at gmail.com>
>> > I have installed python 2.6.2 in windows xp professional machine. I
>> > have set the following environment variables -- PYTHONPATH. It points
>> > to following windows folders: python root folder, the lib folder and
>> > lib-tk folder.
>> Why? Did you read it somewhere? Usually there is no need to set the
>> PYTHONPATH variable at all; remove it.
> Setting PYTHONPATH environment variables is mentioned in Python docs.
Could you provide a link please? Setting PYTHONPATH should not be
necesary, and in fact it's a very bad idea. Environment variables are
global, but Python modules may depend on the Python version, architecture,
install location... By example, you may install a 64 bits Python 3.1
version *and* a 32 bits Python 2.5 version and they both can coexist
peacefully - but an extension module compiled for the former cannot be
used in the later version. You must build a separate library for each
version, and install them in two separate directories. But since the
PYTHONPATH variable is shared by all installations, which directory should
It's best not to use PYTHONPATH at all and rely on other alternatives
(like .pth files, that are searched relative to the current Python
executable, so different versions use different configuration files)
> I solved the issue temporarily by copying the gnutls related dlls to
> the path searched by python.exe
Glad to see you could finally fix it!
More information about the Python-list