[Tutor] Python proxy settings in OS X
I'm having trouble with OS X proxy settings and getting Python to ignore them. I have multiple Python installations on my system: /opt/local/bin/python (2.5.1) /usr/local/bin/2.3 /opt/local/bin/2.4 /usr/bin/python244 (2.4.4) /opt/local/bin/2.5 I've noticed that when using some of these versions, my scripts that make web calls work fine, but the same scripts die with timeouts using other versions. I thought Python simply read and respected 'env' settings, but clearing these in my session doesn't seem to help. As a result, I have even tried to remove my proxy settings entirely, but that is another, off-topic story [1]. Where all these installations came from, I'm not entirely sure. I know I had to install a copy of 2.4, and I must have used 'ports' for some version. At some point, I would like to clean these up and have only one copy of each version installed, but I'm not sure which versions would screw things up if they were to be removed. Thanks for your help in understanding Python and proxy settings, and how to fix settings if possible. Thank you, ~John [1] http://forums.macosxhints.com/showthread.php?t=93086 ___ Tutor maillist - Tutor@python.org http://mail.python.org/mailman/listinfo/tutor
[Tutor] python-ldap installation
This may sound silly, but I've been searching for a reliable method for installing the python-ldap module for Python 2.4 in a Windows XP environment. Actually, I'm looking for a method that would work cross-platform with Linux and OS X as well, or at least methods that were close enough in nature to be called similar. As far as Windows goes: I've tried installing the binary linked from the python-ldap project page, but that is a third-party binary, and they only have installers for 2.5 (I tried these just to be sure, and sure enough, 2.4 won't import the module, as it wants a 2.5 DLL instead). I did find a binary elsewhere that someone created [1], but this one seems fairly outdated. Ultimately, I'd like to automate an installation method as part of a buildout environment script that could work on multiple platforms, but I'm not sure that's going to be possible: Windows doesn't use apt-get, OS X doesn't use DLL files, etc. I also found this post [2], which probably works for systems that use apt-get, but not for others, and seems fairly complicated as well. Thanks in advance for your ideas and pointers on whether this is possible, or the best way to do it on different platforms. ~John [1] http://www.agescibs.org/mauro/ [2] http://bluedynamics.com/articles/jens/python-ldap-as-egg-with-buildout ___ Tutor maillist - Tutor@python.org http://mail.python.org/mailman/listinfo/tutor
Re: [Tutor] Tkinter import error
Michael Lange <[EMAIL PROTECTED]> wrote: > Usually there is no need to pass extra arguments to configure. > My guess is that you missed to install Tcl / Tk and/or the Tcl/Tk development > packages before compiling python. That was it: I had both Tcl and Tk installed, but not the development packages for either one. I installed those, recompiled, and all is well. Thanks! ___ Tutor maillist - Tutor@python.org http://mail.python.org/mailman/listinfo/tutor
Re: [Tutor] Tkinter import error
On 4/23/07, Luke Paireepinart <[EMAIL PROTECTED]> wrote: > So the problem is in your 2.5 install? Well, I get the same error no matter whether I try to import Tkinter while running 2.3, 2.4, or 2.5. > Can you just use a binary package or do you need to compile from scratch? I don't need to compile from scratch, just thought that was the preferred way to do things, and that it might pick up already-installed packages and avoid errors such as this one. Do most Linux binaries come with Tkinter support already installed? > You can use the #! first line in your source code to specify which > Python interpreter to use, I believe, > so you could direct it at one of your other installs for now until you > get 2.5 working I think it's more of a system/configuration problem than one specifically with 2.5. The other Python versions give the same exact error. Thanks, ~John ___ Tutor maillist - Tutor@python.org http://mail.python.org/mailman/listinfo/tutor
[Tutor] Tkinter import error
Hi all, I've been lurking for a while; I'm just picking up Python and most of the posts have been a bit over my head. I've run into an error that I've seen reported in several places, but none of the fixes seem to be working for me: when I try to "import Tkinter" I get a configuration error: Traceback (most recent call last): File "", line 1, in File "/usr/local/lib/python2.5/lib-tk/Tkinter.py", line 38, in import _tkinter # If this fails your Python may not be configured for Tk ImportError: No module named _tkinter I actually have 2.3, 2.4, and 2.5 on this system (RHEL4 Linux), and I compiled 2.5 from scratch. I've tried installing the tkinter package for my OS and re-compiling Python (with both "make clean" and "make distclean" first), but I still get the same error. I also checked to make sure that "Tkinter.py" exists in the path shown in the error, and it is there (dated the last time I recompiled Python 2.5). What else can I try? Thank you, ~John ___ Tutor maillist - Tutor@python.org http://mail.python.org/mailman/listinfo/tutor