python26 can't import socket module

Bryan Blackburn blb at macports.org
Wed Jul 8 20:22:09 PDT 2009


On Mon, Jun 22, 2009 at 05:32:49PM -0400, Michael Dippery said:
> >What version of OpenSSL did you have installed and active when
> >you built python26 (port installed openssl)?
> 
> I have openssl @0.9.8k_0 installed via MacPorts.

A recent discussion over irc (thanks fynn) helped track down one possible
cause of this; namely, check to see if you have any PYTHON environment
variables set and pointing to a 2.5 (or other non-2.6) version of python;
for example, setting PYTHONPATH can result in the exact same error as you
originally saw.

Bryan


> 
> =====================
> Michael Dippery
> Systems Programmer
> CEES, Rensselaer Polytechnic Institute
> W: (518) 276-8143
> E: mpd at nees.rpi.edu


More information about the macports-users mailing list