Path: csiph.com!usenet.pasdenom.info!aioe.org!news.stack.nl!newsfeed.xs4all.nl!newsfeed4.news.xs4all.nl!xs4all!post.news.xs4all.nl!not-for-mail Return-Path: X-Original-To: python-list@python.org Delivered-To: python-list@mail.python.org X-Spam-Status: OK 0.003 X-Spam-Evidence: '*H*': 0.99; '*S*': 0.00; 'syntax': 0.04; 'subject:installation': 0.07; 'sys': 0.07; 'python': 0.11; '64,': 0.16; 'be:': 0.16; 'from:addr:mrabarnett.plus.com': 0.16; 'from:addr:python': 0.16; 'from:name:mrab': 0.16; 'message- id:@mrabarnett.plus.com': 0.16; 'skip:[ 30': 0.16; 'socket.error': 0.16; 'syntaxerror:': 0.16; 'wrote:': 0.18; "skip:' 30": 0.19; 'import': 0.22; 'print': 0.22; 'header:User-Agent:1': 0.23; 'subject:problem': 0.24; 'this:': 0.26; 'supported': 0.26; 'header :In-Reply-To:1': 0.27; "skip:' 10": 0.31; '"",': 0.31; '>>>>': 0.31; "skip:' 40": 0.31; 'file': 0.32; '(most': 0.33; 'except': 0.35; 'skip:" 50': 0.36; 'skip:s 60': 0.36; 'to:addr:python-list': 0.38; 'recent': 0.39; 'to:addr:python.org': 0.39; 'header:Reply- To:1': 0.67; 'invalid': 0.68; 'reply-to:no real name:2**0': 0.71; 'reply-to:addr:python.org': 0.84 X-CM-Score: 0.00 X-CNFS-Analysis: v=2.1 cv=bL0vfpOZ c=1 sm=1 tr=0 a=0nF1XD0wxitMEM03M9B4ZQ==:117 a=0nF1XD0wxitMEM03M9B4ZQ==:17 a=0Bzu9jTXAAAA:8 a=0kkAYlmtguIA:10 a=0OZzCcbMCkgA:10 a=ihvODaAuJD4A:10 a=OUOv7kDek9cA:10 a=8nJEP1OIZ-IA:10 a=EBOSESyhAAAA:8 a=8AHkEIZyAAAA:8 a=L1_8zyTbsYsA:10 a=9uNYJirXWoiCUgXKUA0A:9 a=wPNLvfGTeEIA:10 X-AUTH: mrabarnett:2500 Date: Thu, 08 Aug 2013 19:25:56 +0100 From: MRAB User-Agent: Mozilla/5.0 (Windows NT 5.1; rv:17.0) Gecko/20130801 Thunderbird/17.0.8 MIME-Version: 1.0 To: python-list@python.org Subject: Re: paramiko installation problem References: <4554cd28-e0a8-407d-93ca-06cc267fb938@googlegroups.com> In-Reply-To: Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit X-BeenThere: python-list@python.org X-Mailman-Version: 2.1.15 Precedence: list Reply-To: python-list@python.org List-Id: General discussion list for the Python programming language List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Newsgroups: comp.lang.python Message-ID: Lines: 41 NNTP-Posting-Host: 2001:888:2000:d::a6 X-Trace: 1375986350 news.xs4all.nl 15867 [2001:888:2000:d::a6]:39046 X-Complaints-To: abuse@xs4all.nl Xref: csiph.com comp.lang.python:52217 On 08/08/2013 19:04, D. Xenakis wrote: >>>> import sys >>>> print (sys.path) > > returns: > > ['C:\\Python33\\Lib\\idlelib', 'C:\\Python33\\lib\\site-packages\\pip-1.4-py3.3.egg', 'C:\\Windows\\system32\\python33.zip', 'C:\\Python33\\DLLs', 'C:\\Python33\\lib', 'C:\\Python33', 'C:\\Python33\\lib\\site-packages'] > > then if i type: >>>> sys.path.append('C:\\Python33\\Lib\\site-packages\\paramiko') > > and then again.. >>>> print (sys.path) > > returns: > > ['C:\\Python33\\Lib\\idlelib', 'C:\\Python33\\lib\\site-packages\\pip-1.4-py3.3.egg', 'C:\\Windows\\system32\\python33.zip', 'C:\\Python33\\DLLs', 'C:\\Python33\\lib', 'C:\\Python33', 'C:\\Python33\\lib\\site-packages', 'C:\\Python33\\Lib\\site-packages\\paramiko'] > > then if i type: >>>> import paramiko > > i get this: > > Traceback (most recent call last): > File "", line 1, in > import paramiko > File "C:\Python33\lib\site-packages\paramiko\__init__.py", line 64, in > from transport import SecurityOptions, Transport > File "C:\Python33\Lib\site-packages\paramiko\transport.py", line 296 > except socket.error, e: > ^ > SyntaxError: invalid syntax > [snip] That syntax is supported in Python 2. In Python 3 it would be: except socket.error as e: I don't think that paramiko supports Python 3 (yet?).