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


Groups > comp.lang.python > #100340

Re: 2to3 translation problem

Path csiph.com!fu-berlin.de!uni-berlin.de!not-for-mail
From Laura Creighton <lac@openend.se>
Newsgroups comp.lang.python
Subject Re: 2to3 translation problem
Date Sat, 12 Dec 2015 18:08:30 +0100
Lines 53
Message-ID <mailman.183.1449940119.12405.python-list@python.org> (permalink)
References <dd2q2kFo7m4U1@mid.individual.net> <mailman.180.1449932994.12405.python-list@python.org> <dd30fqFpqmiU1@mid.individual.net>
Mime-Version 1.0
Content-Type text/plain; charset="us-ascii"
X-Trace news.uni-berlin.de eXyQpwEuIaDEGBvHyVMnfg9ocWNcnZlUchN5GVC0tH1A==
Return-Path <lac@openend.se>
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; 'debug': 0.04; '(python': 0.05; 'importerror:': 0.05; 'subject:translation': 0.07; 'cc:addr :python-list': 0.09; '2to3': 0.09; 'bindings': 0.09; 'received:openend.se': 0.09; 'received:theraft.openend.se': 0.09; 'python': 0.10; 'python.': 0.11; '2.7': 0.13; 'things.': 0.15; '>on': 0.16; '>thanks,': 0.16; '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; '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; '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; 'library': 0.20; 'windows': 0.20; '2015': 0.20; 'cc:addr:python.org': 0.20; 'extension': 0.20; 'cc:2**1': 0.22; 'lawrence': 0.22; 'subject:problem': 0.22; 'dec': 0.23; 'player': 0.23; 'sat,': 0.23; '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; 'tend': 0.27; 'idea': 0.28; 'fine': 0.28; 'pointer.': 0.29; 'received:se': 0.29; 'environment': 0.29; 'cc:no real name:2**1': 0.29; "i'm": 0.30; 'creating': 0.30; "can't": 0.32; 'run': 0.33; 'point,': 0.33; 'real-time': 0.33; 'traceback': 0.33; 'file': 0.34; 'running': 0.34; 'so,': 0.35; 'whilst': 0.35; 'level': 0.35; "isn't": 0.35; 'problem.': 0.35; 'but': 0.36; 'too': 0.36; 'url:org': 0.36; 'subject:: ': 0.37; 'missing': 0.37; 'charset:us-ascii': 0.37; 'version': 0.38; 'sure': 0.39; 'does': 0.39; 'mark': 0.40; 'some': 0.40; 'high': 0.60; 'header:Message- Id:1': 0.61; 'engine': 0.62; 'here.': 0.62; 'effective': 0.63; 'you.': 0.64; 'believe': 0.66; 'repeat': 0.67; 'strategy': 0.69; 'url:search': 0.83; '3.4': 0.84; 'apt-get': 0.84; 'header:In- reply-to:1': 0.84; "it'd": 0.84; 'mistaken': 0.84; 'psychology': 0.84; 'windowing': 0.84
DKIM-Signature v=1; a=rsa-sha256; c=relaxed/relaxed; d=openend.se; s=default; t=1449940114; bh=qcjYWel1Ni8ocoTtE373hBtOp8TcW0F6XReesix9B6s=; h=To:cc:From:Subject:In-reply-to:References:Date:From; b=Fm1UGs/pvvJEO1LBnv//hnZfxG1H0R0TJCOd/Lol9yHYKzKuiTHMihH3x6tCMWH0x lRwqCRtjgO+1ilgEzSKoyzDSDaHAxkgDq5RFe5MoHAIbx5MJHQiqLjXMuM91n2CNGN GUsAQJz5FBRHx2RKLWQmvaYmOkig8ydNo4fiCouE=
In-reply-to <dd30fqFpqmiU1@mid.individual.net>
Comments In-reply-to Tony van der Hoff <tony@vanderhoff.org> message dated "Sat, 12 Dec 2015 16:31:54 +0000."
Content-ID <13111.1449940110.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:08:34 +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 <python-list.python.org>
List-Unsubscribe <https://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 <https://mail.python.org/mailman/listinfo/python-list>, <mailto:python-list-request@python.org?subject=subscribe>
Xref csiph.com comp.lang.python:100340

Show key headers only | View raw


In a message of Sat, 12 Dec 2015 16:31:54 +0000, Tony van der Hoff writes:
>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 under
>>> python2.7. I have run it through 2to3, but when running the result under
>>> python 3.4, I get the error :
>>>
>>> Traceback (most recent call last):
>>>    File "ppm304.py", line 9, in <module>
>>>      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.

You are mistaken here.
python-pygame is only a python 2.7 pygame.

you want python3-pygame.
https://packages.debian.org/search?keywords=python3-pygame

Speaking as a debian user are going to have a _whole lot of this_.
If you don't know about apt-cache search <pkgname> 
let me recommend it to you.

This on debian unstable:

lac@smartwheels:~$  apt-cache search pygame
lightyears - single player real-time strategy game with steampunk sci-fi
psychopy - environment for creating psychology stimuli in Python
python-pygame - SDL bindings for games development in Python
python-pyglet - cross-platform windowing and multimedia library
pyntor - flexible and componentized presentation program
solarwolf - Collect the boxes and don't become mad
python-soya - high level 3D engine for Python
python-soya-dbg - high level 3D engine for Python - debug extension
python-soya-doc - high level 3D engine for Python
python3-pygame - SDL bindings for games development in Python (Python 3)

So, too many hits, alas, but it does tend to find such things.

Laura

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


Thread

2to3 translation problem Tony van der Hoff <tony@vanderhoff.org> - 2015-12-12 14:42 +0000
  Re: 2to3 translation problem Mark Lawrence <breamoreboy@yahoo.co.uk> - 2015-12-12 15:09 +0000
    Re: 2to3 translation problem Tony van der Hoff <tony@vanderhoff.org> - 2015-12-12 16:31 +0000
      Re: 2to3 translation problem Mark Lawrence <breamoreboy@yahoo.co.uk> - 2015-12-12 16:56 +0000
      Re: 2to3 translation problem Peter Otten <__peter__@web.de> - 2015-12-12 17:59 +0100
      Re: 2to3 translation problem Laura Creighton <lac@openend.se> - 2015-12-12 18:08 +0100
      Re: 2to3 translation problem Laura Creighton <lac@openend.se> - 2015-12-12 18:09 +0100
        Re: 2to3 translation problem Tony van der Hoff <tony@vanderhoff.org> - 2015-12-12 17:30 +0000
          Re: 2to3 translation problem Chris Angelico <rosuav@gmail.com> - 2015-12-13 04:50 +1100
          Re: 2to3 translation problem Laura Creighton <lac@openend.se> - 2015-12-12 18:54 +0100
            Re: 2to3 translation problem Tony van der Hoff <tony@vanderhoff.org> - 2015-12-12 20:24 +0000
              Re: 2to3 translation problem Laura Creighton <lac@openend.se> - 2015-12-12 22:18 +0100
          Re: 2to3 translation problem Terry Reedy <tjreedy@udel.edu> - 2015-12-12 15:17 -0500

csiph-web