Path: csiph.com!usenet.pasdenom.info!news.redatomik.org!newsfeed.xs4all.nl!newsfeed8.news.xs4all.nl!newsgate.cistron.nl!newsgate.news.xs4all.nl!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.002 X-Spam-Evidence: '*H*': 1.00; '*S*': 0.00; 'installed.': 0.05; 'python3': 0.05; 'executed': 0.07; 'skip:/ 10': 0.07; 'creighton': 0.09; 'received:80.91': 0.09; 'received:80.91.229': 0.09; 'received:gmane.org': 0.09; 'received:list': 0.09; 'spec': 0.09; 'python': 0.10; '--version': 0.16; '>>on': 0.16; 'amd64': 0.16; 'candidate:': 0.16; 'magic': 0.16; 'received:80.91.229.3': 0.16; 'received:dip0.t-ipconnect.de': 0.16; 'received:plane.gmane.org': 0.16; 'received:t-ipconnect.de': 0.16; 'release:': 0.16; 'sees': 0.16; 'subject:gui': 0.16; 'subject:run': 0.16; 'sudo': 0.16; 'url:debian': 0.16; 'url:ftp': 0.16; 'wrote:': 0.16; 'laura': 0.18; 'skip:a 60': 0.18; 'tests.': 0.18; '>>>': 0.20; '2015': 0.20; 'aug': 0.20; 'id:': 0.22; 'skip:c 70': 0.22; 'install': 0.25; "i've": 0.25; 'header:User-Agent:1': 0.26; "doesn't": 0.26; 'header:X-Complaints-To:1': 0.26; 'linux': 0.26; 'chris': 0.26; 'error': 0.27; 'fri,': 0.27; 'package.': 0.27; "skip:' 10": 0.28; 'actual': 0.28; 'fine': 0.28; 'about.': 0.29; 'cat': 0.29; 'installed,': 0.29; 'subject:users': 0.29; 'url:se': 0.29; "i'm": 0.30; "i'd": 0.31; 'run': 0.33; 'skip:/ 20': 0.33; 'version:': 0.33; 'similar': 0.33; 'this?': 0.34; 'running': 0.34; 'skip:3 10': 0.35; 'could': 0.35; 'i.e.': 0.35; 'subject:please': 0.35; 'something': 0.35; 'but': 0.36; 'instead': 0.36; 'url:org': 0.36; 'to:addr:python-list': 0.36; 'pm,': 0.36; 'subject:: ': 0.37; 'received:org': 0.37; 'missing': 0.37; 'version': 0.38; 'why': 0.39; 'test': 0.39; 'system.': 0.39; 'to:addr:python.org': 0.40; 'still': 0.40; 'received:de': 0.40; 'your': 0.60; 'skip:u 10': 0.61; 'default': 0.61; 'here.': 0.62; 'policy': 0.63; '500': 0.63; 'touch': 0.66; 'brand': 0.75; '100': 0.79; "'test'": 0.84; '+1000,': 0.84; 'apt-get': 0.84; 'conclude': 0.84; 'otten': 0.84; 'smp': 0.84; 'window,': 0.84; 'forgotten': 0.91; 'sitting': 0.93; '***': 0.95 X-Injected-Via-Gmane: http://gmane.org/ To: python-list@python.org From: Peter Otten <__peter__@web.de> Subject: Re: Linux users: please run gui tests Date: Fri, 07 Aug 2015 15:06:41 +0200 Organization: None References: <87wpx7fsb9.fsf@Equus.decebal.nl> <87si7vfqwn.fsf@Equus.decebal.nl> <201508071238.t77CcY7n018432@fido.openend.se> Mime-Version: 1.0 Content-Type: text/plain; charset="ISO-8859-1" Content-Transfer-Encoding: 7Bit X-Gmane-NNTP-Posting-Host: p57bd960d.dip0.t-ipconnect.de User-Agent: KNode/4.13.3 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: , Newsgroups: comp.lang.python Message-ID: Lines: 76 NNTP-Posting-Host: 2001:888:2000:d::a6 X-Trace: 1438952813 news.xs4all.nl 2871 [2001:888:2000:d::a6]:41642 X-Complaints-To: abuse@xs4all.nl Xref: csiph.com comp.lang.python:95121 Laura Creighton wrote: > In a message of Fri, 07 Aug 2015 19:51:51 +1000, Chris Angelico writes: >>On Fri, Aug 7, 2015 at 7:15 PM, Peter Otten <__peter__@web.de> wrote: >>> By default Debian doesn't install the test suite -- that's why you >>> cannot run it ;) >>> >>> Install it with >>> >>> $ sudo apt-get install libpython3.4-testsuite >>> >>> and then try again. >> >>Which makes it work fine on my system. >> >>ChrisA > > Not here. > > I'm running debian unstable (jessie) > I've already got libpython3.4-testsuite installed, and I cannot run > the tests. > > lac@smartwheels:~$ lsb_release -a > LSB Version: > core-2.0-amd64:core-2.0-noarch:core-3.0-amd64:core-3.0-noarch:core-3.1- amd64:core-3.1-noarch:core-3.2-amd64:core-3.2-noarch:core-4.0- amd64:core-4.0-noarch:core-4.1-amd64:core-4.1-noarch:security-4.0- amd64:security-4.0-noarch:security-4.1-amd64:security-4.1-noarch > Distributor ID: Debian > Description: Debian GNU/Linux 8.0 (jessie) > Release: 8.0 > Codename: jessie > > lac@smartwheels:~$ cat /proc/version > Linux version 3.16.0-4-amd64 (debian-kernel@lists.debian.org) > (gcc version 4.8.4 (Debian 4.8.4-1) ) #1 SMP Debian 3.16.7-ckt9-2 > (2015-04-13) > > lac@smartwheels:~$ python3 --version > Python 3.4.3+ > > I have the lastest version of libpython3.4-testsuite installed. > lac@smartwheels:~$ apt-cache policy libpython3.4-testsuite > libpython3.4-testsuite: > Installed: 3.4.3-8 > Candidate: 3.4.3-8 > Version table: > *** 3.4.3-8 0 > 500 http://ftp.se.debian.org/debian/ unstable/main amd64 Packages > 500 http://ftp.debian.org/debian/ unstable/main amd64 Packages > 100 /var/lib/dpkg/status > > This is a brand new terminal window, i.e. I am not sitting in a virtualenv > that I have completely forgotten about. > > But I still get: > lac@smartwheels:~$ python3 -m test -ugui test_tk test_ttk_guionly > test_idle /usr/bin/python3: Error while finding spec for 'test.__main__' > (: bad magic number in 'test': b'\x03\xf3\r\n'); > 'test' is a package and cannot be directly executed > > Now I am very puzzled. What else could I be missing to cause this? I can provoke something similar with $ touch test.py $ python -c import\ test $ rm test.py $ python3 -m test -ugui test_tk /usr/bin/python3: bad magic number in 'test': b'\x03\xf3\r\n' >From that I'd conclude that your python3 sees a leftover python2 pyc instead of the actual test package. Have a look at your working directory or PYTHONPATH.