Path: csiph.com!fu-berlin.de!uni-berlin.de!not-for-mail From: Laura Creighton Newsgroups: comp.lang.python Subject: Re: 2to3 translation problem Date: Sat, 12 Dec 2015 18:09:47 +0100 Lines: 46 Message-ID: References: Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: quoted-printable X-Trace: news.uni-berlin.de 72EJT7dYQamd4KeLNKG7VgJ6qO6xyea4QgvaSf6GMKaw== Return-Path: 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; 'importerror:': 0.05; 'subject:translation': 0.07; 'cc:addr:python-list': 0.09; '2to3': 0.09; 'received:openend.se': 0.09; 'received:theraft.openend.se': 0.09; 'python': 0.10; 'python.': 0.11; '2.7': 0.13; 'cc:addr:lac': 0.16; 'cc:addr:openend.se': 0.16; 'from:addr:lac': 0.16; 'from:addr:openend.se': 0.16; 'from:name:laura creighton': 0.16; 'mark,': 0.16; 'message-id:@fido.openend.se': 0.16; 'pygame': 0.16; 'received:fido': 0.16; 'received:fido.openend.se': 0.16; 'received:io': 0.16; 'received:psf.io': 0.16; 'subject:2to3': 0.16; 'to:addr:web.de': 0.16; 'url:debian': 0.16; 'url:keywords': 0.16; 'url:packages': 0.16; 'wrote:': 0.16; 'translation': 0.16; 'laura': 0.18; 'library,': 0.18; '>>>': 0.20; 'windows': 0.20; '2015': 0.20; 'cc:addr:python.org': 0.20; 'cc:2**1': 0.22; 'lawrence': 0.22; 'subject:problem': 0.22; 'seems': 0.23; 'dec': 0.23; 'forgot': 0.23; 'sat,': 0.23; 'thanks,': 0.24; 'import': 0.24; '(most': 0.24; 'module': 0.25; 'install': 0.25; "i've": 0.25; 'installed': 0.26; 'van': 0.26; 'error': 0.27; 'idea': 0.28; 'fine': 0.28; 'pointer.': 0.29; 'received:se': 0.29; 'cc:no real name:2**1': 0.29; "i'm": 0.30; 'that.': 0.30; "can't": 0.32; 'run': 0.33; 'point,': 0.33; 'traceback': 0.33; 'file': 0.34; 'running': 0.34; 'so,': 0.35; 'skip:> 10': 0.35; 'whilst': 0.35; "isn't": 0.35; 'problem.': 0.35; 'but': 0.36; 'should': 0.36; 'there': 0.36; 'url:org': 0.36; 'subject:: ': 0.37; 'missing': 0.37; 'charset:us-ascii': 0.37; 'version': 0.38; 'sure': 0.39; 'mark': 0.40; 'called': 0.40; 'some': 0.40; 'header:Message-Id:1': 0.61; 'effective': 0.63; 'believe': 0.66; 'repeat': 0.67; 'url:search': 0.83; '3.4': 0.84; 'apt-get': 0.84; 'header:In- reply-to:1': 0.84; "it'd": 0.84; 'otten': 0.84; 'available:': 0.91 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=openend.se; s=default; t=1449940189; bh=FXR/fjSTBvhGDHtRi5iuhTQYX0qA2FuwrCujTloxUww=; h=To:cc:From:Subject:In-reply-to:References:Date:From; b=SIYwNjZKFBnpHOUhntDH4I0Ct2Z2lQLs0teIwRSPdPYKgxqHxefDduR2XgdR0JE/z PFBAdDbW5yu9AnzAPUwniolsw4hYF2n1LKTYzdPQuhA+1dt0L5GXN4qYIpuKla/yKJ 6xUKXJyxcUO6d1MMyqIaRTzNXf3l9keENzz5C9Hg= In-reply-to: Comments: In-reply-to Peter Otten <__peter__@web.de> message dated "Sat, 12 Dec 2015 17:59:52 +0100." Content-ID: <13214.1449940187.1@fido> X-Greylist: Sender IP whitelisted, not delayed by milter-greylist-4.3.9 (theraft.openend.se [82.96.5.2]); Sat, 12 Dec 2015 18:09:49 +0100 (CET) X-BeenThere: python-list@python.org X-Mailman-Version: 2.1.20+ Precedence: list List-Id: General discussion list for the Python programming language List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Xref: csiph.com comp.lang.python:100341 In a message of Sat, 12 Dec 2015 17:59:52 +0100, Peter Otten writes: >Tony van der Hoff wrote: > >> On 12/12/15 15:09, Mark Lawrence wrote: >>> On 12/12/2015 14:42, Tony van der Hoff wrote: >>>> Debian Jessie, python 2.7; python 3.4 >>>> >>>> I have an application, using pygame for graphics, that works fine und= er >>>> python2.7. I have run it through 2to3, but when running the result un= der >>>> python 3.4, I get the error : >>>> >>>> Traceback (most recent call last): >>>> File "ppm304.py", line 9, in >>>> import pygame >>>> ImportError: No module named 'pygame' >>>> >>>> So, python 3.4 can't find the library, whilst python 2.7 can. >>>> How do I track down/fix the missing dependency. >>> >>> This isn't a 2to3 translation problem. You've installed pygame under >>> 2.7 at some point, repeat the process for 3.4. I've no idea how you'd >>> do that on Debian Jessie but on Windows it'd be "pip3.4 install pygame= ". >>> >> Thanks, Mark, for the pointer. I'm pretty sure I installed Pygame from >> Debian's repository, via apt-get install python-pygame. I believe that >> should be effective for any version of Python. > >No, that is the version for Python 2. If there is a Python 3 version it w= ill = >be called > >python3-pygame > >but no such package seems to be available: > >https://packages.debian.org/search?suite=3Djessie&arch=3Dany&searchon=3Dn= ames&keywords=3Dpython3-pygame There is one in unstable, I forgot to check for jessie, sorry about that. Laura