Hello all,

I seem to be having a problem importing modules. I am installing on
Slackware 3.5 over a previous installation of Python 1.5.2 . I just
installed Python 2.1 which is working for the most part, but then I get
errors like this one:

File "/usr/local/lib/python2.1/socket.py", line 41, in ?
from _socket import *
ImportError: No module named _socket

I can't find any _socket module in the Python libraries. Also as I was
installing I noticed problems with several modules that didn't seem to
want to install making me think this might be a general problem.

Has anyone out there experienced similar problems and have a notion of
what I can do about it?

I really appreciate any help you can send me. -Scott

Scott T. Kelley, Ph.D. E-mail: Scott.Kelley at Colorado.edu
Dept. MCD Biology Phone : 303-735-1808
Campus Box 347 Fax : 303-492-7744
University of Colorado
Boulder, CO 80309-0347

Search Discussions

  • Alex at Jul 28, 2001 at 4:15 pm
    What are you trying to install python from? It sounds like it didn't
    include the _socket builtin. If you didn't build it from the source,
    I'd try this:

    wget http://python.org/ftp/python/2.1/Python-2.1.tgz
    tar zxf Python-2.1.tgz
    cd Python-2.1
    ./configure --prefix=/usr/local && make && make install

    (note that this will overwrite your previous installation of python2.1.)


Related Discussions

Discussion Navigation
viewthread | post
Discussion Overview
grouppython-list @
postedJul 25, '01 at 4:31p
activeJul 28, '01 at 4:15p

2 users in discussion

Scott Kelley: 1 post Alex: 1 post



site design / logo © 2023 Grokbase