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


Groups > comp.lang.python > #30586

Re: Can't import modules

Path csiph.com!usenet.pasdenom.info!news.albasani.net!newsfeed.freenet.ag!news2.euro.net!newsgate.cistron.nl!newsgate.news.xs4all.nl!post.news.xs4all.nl!not-for-mail
Return-Path <dwightdhutto@gmail.com>
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; 'preferably': 0.05; '64-bit': 0.07; 'meantime,': 0.07; 'python': 0.09; '__future__': 0.09; 'received:mail-vc0-f174.google.com': 0.09; 'sep': 0.09; 'subject:modules': 0.09; 'cc:addr:python-list': 0.10; '"from': 0.16; 'backward': 0.16; 'compatible,': 0.16; 'luck!': 0.16; 'subject:import': 0.16; 'to:addr:pearwood.info': 0.16; 'to:addr:steve+comp.lang.python': 0.16; "to:name:steven d'aprano": 0.16; 'vpython': 0.16; 'wrote:': 0.17; 'tries': 0.17; 'trying': 0.21; 'import': 0.21; '2.x': 0.22; '3.x': 0.22; 'stick': 0.22; 'cc:2**0': 0.23; "i've": 0.23; 'cc:no real name:2**0': 0.24; 'least': 0.25; 'cc:addr:python.org': 0.25; 'header:In-Reply-To:1': 0.25; 'common': 0.26; 'transition': 0.27; 'message- id:@mail.gmail.com': 0.27; 'trouble': 0.28; 'run': 0.28; '-0700,': 0.29; "d'aprano": 0.29; 'received:209.85.220.174': 0.29; 'steven': 0.29; 'url:mailman': 0.29; 'maybe': 0.29; 'error': 0.30; 'code': 0.31; 'url:python': 0.32; 'url:listinfo': 0.32; 'certain': 0.33; 'much.': 0.33; 'received:google.com': 0.34; 'pm,': 0.35; 'received:209.85.220': 0.35; 'received:209.85': 0.35; 'url:org': 0.36; 'modules': 0.36; 'should': 0.36; 'received:209': 0.37; 'subject:: ': 0.38; 'supports': 0.38; 'system.': 0.39; 'little': 0.39; 'header:Received:5': 0.40; 'url:mail': 0.40; 'your': 0.60; '30,': 0.62; 'series': 0.63; 'hoping': 0.72; 'areas.': 0.84
DKIM-Signature v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :cc:content-type; bh=En9i8fwgGzznH10yL9J4RCFK9Iyz1YL/k28gXNBd89A=; b=tP1RnaUktGVbu8O+a9i37+BYAG/zBQMmlEGJTPKnHYJRUEy5c6BHcbuWwgKUvJsKuX VRt051PdmvBonck9poR9ZxlqoyrASlCgxyWj/hIvTIArcGXld2pcxIIKpqBHXm/zjDEP DLCJ3a2Cu3qouPOgkH0/OoVIkwyQpaIs/64g7PcuLiipSTpbU6iFtSawYQ/nXROSH4+q dihlSJKsCGpwsUO/a/l6kSO0U5YaG2WY2EQ9oy+2YW9HsPjBeTN2IdbYOZS2bWw9SbUj MnDUcVNqZgv0hH4lsyzrCBDIWvFx34JyZ0wIP7R0k2KFvuY/RD94RJXH8XcIZi05sMr6 +cKg==
MIME-Version 1.0
In-Reply-To <5068fcab$0$1726$c3e8da3$76491128@news.astraweb.com>
References <36813ff7-68b9-44eb-9b25-7c13ae739566@googlegroups.com> <5068a9e0$0$6915$e4fe514c@news2.news.xs4all.nl> <2e36e097-a43f-43b4-98a6-8da999c39c21@googlegroups.com> <5068f109$0$29997$c3e8da3$5496439d@news.astraweb.com> <de7f0448-d56d-4353-af72-a25f3f802f7f@googlegroups.com> <5068fcab$0$1726$c3e8da3$76491128@news.astraweb.com>
Date Sun, 30 Sep 2012 22:39:53 -0400
Subject Re: Can't import modules
From Dwight Hutto <dwightdhutto@gmail.com>
To "Steven D'Aprano" <steve+comp.lang.python@pearwood.info>
Content-Type text/plain; charset=ISO-8859-1
Cc python-list@python.org
X-BeenThere python-list@python.org
X-Mailman-Version 2.1.15
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.1691.1349059196.27098.python-list@python.org> (permalink)
Lines 39
NNTP-Posting-Host 2001:888:2000:d::a6
X-Trace 1349059196 news.xs4all.nl 6938 [2001:888:2000:d::a6]:59490
X-Complaints-To abuse@xs4all.nl
Xref csiph.com comp.lang.python:30586

Show key headers only | View raw


On Sun, Sep 30, 2012 at 10:15 PM, Steven D'Aprano
<steve+comp.lang.python@pearwood.info> wrote:
> On Sun, 30 Sep 2012 18:35:50 -0700, Peter Farrell wrote:
>
>> Since I use Python 3.2.3 I've had trouble with programs and modules
>> designed for Python 2 and many programs don't work on my 64-bit system.
>
> While Python tries very hard to be backward compatible, the transition
> from the 2.x series to the 3.x series was intentionally allowed to break
> backward compatibility in certain areas.
>
> If VPython only supports 2.x,

Naw , that's your job, plus maybe looking through the python code for
Vpython, and adding a little "from __future__ import *"
you should ask the vendors to support at
> least 3.3 or better, preferably the full 3.x series. In the meantime, you
> may have to stick to the 2.x series.
>
>
>> I was hoping it was a common error that newbies encounter.
>
> Trying to run Python 2.x code in 3.x? Yes, that's common. Trying to run
> VPython? Not so much.
>
> Good luck!
>
>
> --
> Steven
> --
> http://mail.python.org/mailman/listinfo/python-list



-- 
Best Regards,
David Hutto
CEO: http://www.hitwebdevelopment.com

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


Thread

Can't import modules Peter Farrell <peterfarrell66@gmail.com> - 2012-09-30 12:42 -0700
  Re: Can't import modules Benjamin Kaplan <benjamin.kaplan@case.edu> - 2012-09-30 13:15 -0700
  Re: Can't import modules Steven D'Aprano <steve+comp.lang.python@pearwood.info> - 2012-09-30 20:21 +0000
  Re: Can't import modules Steven D'Aprano <steve+comp.lang.python@pearwood.info> - 2012-09-30 20:21 +0000
  Re: Can't import modules Hans Mulder <hansmu@xs4all.nl> - 2012-09-30 22:21 +0200
    Re: Can't import modules Peter Farrell <peterfarrell66@gmail.com> - 2012-09-30 17:35 -0700
      Re: Can't import modules Dave Angel <d@davea.name> - 2012-09-30 21:16 -0400
      Re: Can't import modules Steven D'Aprano <steve+comp.lang.python@pearwood.info> - 2012-10-01 01:25 +0000
        Re: Can't import modules Peter Farrell <peterfarrell66@gmail.com> - 2012-09-30 18:35 -0700
          Re: Can't import modules Steven D'Aprano <steve+comp.lang.python@pearwood.info> - 2012-10-01 02:15 +0000
          Re: Can't import modules Steven D'Aprano <steve+comp.lang.python@pearwood.info> - 2012-10-01 02:15 +0000
            Re: Can't import modules Dwight Hutto <dwightdhutto@gmail.com> - 2012-09-30 22:39 -0400
            Re: Can't import modules Dwight Hutto <dwightdhutto@gmail.com> - 2012-09-30 22:48 -0400
            Re: Can't import modules Dwight Hutto <dwightdhutto@gmail.com> - 2012-09-30 23:12 -0400
          Re: Can't import modules Dave Angel <d@davea.name> - 2012-09-30 23:18 -0400
            Re: Can't import modules Peter Farrell <peterfarrell66@gmail.com> - 2012-09-30 21:44 -0700
            Re: Can't import modules Peter Farrell <peterfarrell66@gmail.com> - 2012-09-30 21:44 -0700
        Re: Can't import modules Mark Lawrence <breamoreboy@yahoo.co.uk> - 2012-10-01 09:36 +0100
      Re: Can't import modules cjgohlke@gmail.com - 2012-09-30 23:10 -0700

csiph-web