Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > comp.lang.python > #27274

Re: Python 2.7 import socket urllib fails to load, module not found

Path csiph.com!usenet.pasdenom.info!aioe.org!news.stack.nl!newsfeed.xs4all.nl!newsfeed5.news.xs4all.nl!xs4all!newsgate.cistron.nl!newsgate.news.xs4all.nl!post.news.xs4all.nl!not-for-mail
Return-Path <python-python-list@m.gmane.org>
X-Original-To python-list@python.org
Delivered-To python-list@mail.python.org
X-Spam-Status OK 0.000
X-Spam-Evidence '*H*': 1.00; '*S*': 0.00; 'argument': 0.04; 'output': 0.04; 'subject:Python': 0.05; 'socket': 0.05; 'sys': 0.05; 'builtin': 0.07; 'python': 0.09; 'received:80.91': 0.09; 'received:80.91.229': 0.09; 'received:gmane.org': 0.09; 'received:list': 0.09; 'subject:2.7': 0.09; 'subject:module': 0.09; 'subject:not': 0.11; '2.7': 0.13; 'server,': 0.15; '_socket': 0.16; 'from:addr:cheimes.de': 0.16; 'from:addr:lists': 0.16; 'from:name:christian heimes': 0.16; 'loaded.': 0.16; 'received:80.91.229.3': 0.16; 'received:plane.gmane.org': 0.16; 'requisite': 0.16; 'subject:fails': 0.16; 'subject:import': 0.16; 'subject:urllib': 0.16; 'tool.': 0.16; 'urllib': 0.16; 'found,': 0.17; 'module': 0.19; 'versions': 0.20; 'issue.': 0.20; 'file.': 0.20; 'import': 0.21; 'machine.': 0.22; 'errors': 0.23; 'installed': 0.23; 'command': 0.24; 'header:In-Reply-To:1': 0.25; 'header:User-Agent:1': 0.26; 'header:X-Complaints-To:1': 0.28; 'install': 0.29; 'file': 0.32; 'running': 0.32; 'print': 0.32; 'to:addr:python-list': 0.33; "can't": 0.34; 'christian': 0.34; 'path': 0.35; 'received:org': 0.36; 'modules': 0.36; 'subject:: ': 0.38; 'to:addr:python.org': 0.39; 'header:Received:5': 0.40; 'subject:, ': 0.61; 'first': 0.61; 'bring': 0.62; 'show': 0.63; 'of:': 0.65; 'subject:found': 0.91; 'examine': 0.95
X-Injected-Via-Gmane http://gmane.org/
To python-list@python.org
From Christian Heimes <lists@cheimes.de>
Subject Re: Python 2.7 import socket urllib fails to load, module not found
Date Sat, 18 Aug 2012 00:58:55 +0200
References <22db6f61-180c-47ce-a0c3-3315b40b8315@googlegroups.com>
Mime-Version 1.0
Content-Type text/plain; charset=ISO-8859-1
Content-Transfer-Encoding 7bit
X-Gmane-NNTP-Posting-Host f048039039.adsl.alicedsl.de
User-Agent Mozilla/5.0 (X11; Linux x86_64; rv:14.0) Gecko/20120714 Thunderbird/14.0
In-Reply-To <22db6f61-180c-47ce-a0c3-3315b40b8315@googlegroups.com>
X-BeenThere python-list@python.org
X-Mailman-Version 2.1.12
Precedence list
List-Id General discussion list for the Python programming language <python-list.python.org>
List-Unsubscribe <http://mail.python.org/mailman/options/python-list>, <mailto:python-list-request@python.org?subject=unsubscribe>
List-Archive <http://mail.python.org/pipermail/python-list>
List-Post <mailto:python-list@python.org>
List-Help <mailto:python-list-request@python.org?subject=help>
List-Subscribe <http://mail.python.org/mailman/listinfo/python-list>, <mailto:python-list-request@python.org?subject=subscribe>
Newsgroups comp.lang.python
Message-ID <mailman.3437.1345244346.4697.python-list@python.org> (permalink)
Lines 26
NNTP-Posting-Host 2001:888:2000:d::a6
X-Trace 1345244346 news.xs4all.nl 6894 [2001:888:2000:d::a6]:44533
X-Complaints-To abuse@xs4all.nl
Xref csiph.com comp.lang.python:27274

Show key headers only | View raw


Am 17.08.2012 21:20, schrieb wdtate@comcast.net:
> Just installed python 2.7 and using with web2py.  
> 
> When running python from command line to bring up web2py server, get errors that python socket and urllib modules cannot be found, can't be loaded. This is not a web2py issue.
> 
> No other python versions are on the my machine.  Pythonpath has the requisite folders identified.

Please show us the output of:

import sys
print sys.version

import platform
print platform.platform()

import imp
print imp.find_module("_socket")

imp.find_module() may either return "_socket" as first argument if the
_socket module is builtin or return the full path to a file. When it's a
full path please install http://www.dependencywalker.com/ and examine
the _socket.pyd file with the tool. It will show you the missing DLLs.

Christian

Back to comp.lang.python | Previous | NextPrevious in thread | Find similar | Unroll thread


Thread

Python 2.7 import socket urllib fails to load, module not found wdtate@comcast.net - 2012-08-17 12:20 -0700
  Re: Python 2.7 import socket urllib fails to load, module not found Emile van Sebille <emile@fenx.com> - 2012-08-17 12:39 -0700
    Re: Python 2.7 import socket urllib fails to load, module not found wdtate@comcast.net - 2012-08-17 13:41 -0700
      Re: Python 2.7 import socket urllib fails to load, module not found Emile van Sebille <emile@fenx.com> - 2012-08-17 13:57 -0700
        Re: Python 2.7 import socket urllib fails to load, module not found wdtate@comcast.net - 2012-08-17 14:15 -0700
          Re: Python 2.7 import socket urllib fails to load, module not found wdtate@comcast.net - 2012-08-17 14:22 -0700
            Re: Python 2.7 import socket urllib fails to load, module not found Emile van Sebille <emile@fenx.com> - 2012-08-17 15:40 -0700
          Re: Python 2.7 import socket urllib fails to load, module not found wdtate@comcast.net - 2012-08-17 14:22 -0700
        Re: Python 2.7 import socket urllib fails to load, module not found wdtate@comcast.net - 2012-08-17 14:15 -0700
    Re: Python 2.7 import socket urllib fails to load, module not found wdtate@comcast.net - 2012-08-17 13:41 -0700
  Re: Python 2.7 import socket urllib fails to load, module not found wdtate@comcast.net - 2012-08-17 14:21 -0700
  Re: Python 2.7 import socket urllib fails to load, module not found Christian Heimes <lists@cheimes.de> - 2012-08-18 00:58 +0200

csiph-web