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


Groups > comp.lang.python > #95121

Re: Linux users: please run gui tests

From Peter Otten <__peter__@web.de>
Subject Re: Linux users: please run gui tests
Date 2015-08-07 15:06 +0200
Organization None
References (1 earlier) <87wpx7fsb9.fsf@Equus.decebal.nl> <87si7vfqwn.fsf@Equus.decebal.nl> <mq1svm$eck$1@ger.gmane.org> <CAPTjJmoozQ26245nN7qEcz-kW7g_OtL3zgQOtQeH2ku1+eznJQ@mail.gmail.com> <201508071238.t77CcY7n018432@fido.openend.se>
Newsgroups comp.lang.python
Message-ID <mailman.1304.1438952813.3674.python-list@python.org> (permalink)

Show all headers | View raw


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__'
> (<class 'ImportError'>: 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.

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


Thread

Linux users: please run gui tests Terry Reedy <tjreedy@udel.edu> - 2015-08-06 22:07 -0400
  Re: Linux users: please run gui tests Grant Edwards <invalid@invalid.invalid> - 2015-08-07 03:43 +0000
    Re: Linux users: please run gui tests Grant Edwards <invalid@invalid.invalid> - 2015-08-07 03:46 +0000
      Re: Linux users: please run gui tests Mark Lawrence <breamoreboy@yahoo.co.uk> - 2015-08-07 08:08 +0100
      Re: Linux users: please run gui tests Terry Reedy <tjreedy@udel.edu> - 2015-08-07 20:40 -0400
  Re: Linux users: please run gui tests Cecil Westerhof <Cecil@decebal.nl> - 2015-08-07 09:53 +0200
    Re: Linux users: please run gui tests Cecil Westerhof <Cecil@decebal.nl> - 2015-08-07 10:23 +0200
      Re: Linux users: please run gui tests Peter Otten <__peter__@web.de> - 2015-08-07 11:15 +0200
        Re: Linux users: please run gui tests Cecil Westerhof <Cecil@decebal.nl> - 2015-08-07 12:59 +0200
          Re: Linux users: please run gui tests Cecil Westerhof <Cecil@decebal.nl> - 2015-08-07 14:36 +0200
      Re: Linux users: please run gui tests Chris Angelico <rosuav@gmail.com> - 2015-08-07 19:51 +1000
      Re: Linux users: please run gui tests Laura Creighton <lac@openend.se> - 2015-08-07 14:38 +0200
      Re: Linux users: please run gui tests Peter Otten <__peter__@web.de> - 2015-08-07 15:06 +0200
      Re: Linux users: please run gui tests Laura Creighton <lac@openend.se> - 2015-08-07 15:46 +0200
      Re: Linux users: please run gui tests Peter Otten <__peter__@web.de> - 2015-08-07 17:34 +0200
      Re: Linux users: please run gui tests Laura Creighton <lac@openend.se> - 2015-08-07 19:01 +0200
      Re: Linux users: please run gui tests Peter Otten <__peter__@web.de> - 2015-08-07 21:13 +0200
      Re: Linux users: please run gui tests Laura Creighton <lac@openend.se> - 2015-08-07 22:35 +0200
      Re: Linux users: please run gui tests Terry Reedy <tjreedy@udel.edu> - 2015-08-07 21:04 -0400
      Re: Linux users: please run gui tests Terry Reedy <tjreedy@udel.edu> - 2015-08-07 21:25 -0400
      Re: Linux users: please run gui tests Laura Creighton <lac@openend.se> - 2015-08-08 08:35 +0200
      Re: Linux users: please run gui tests Laura Creighton <lac@openend.se> - 2015-08-08 08:40 +0200
      Re: Linux users: please run gui tests Peter Otten <__peter__@web.de> - 2015-08-08 09:53 +0200
      Re: Linux users: please run gui tests Laura Creighton <lac@openend.se> - 2015-08-08 17:41 +0200
      Re: Linux users: please run gui tests Laura Creighton <lac@openend.se> - 2015-08-08 19:20 +0200
      Re: Linux users: please run gui tests Terry Reedy <tjreedy@udel.edu> - 2015-08-12 21:49 -0400
      Re: Linux users: please run gui tests Laura Creighton <lac@openend.se> - 2015-08-13 07:11 +0200
      Re: Linux users: please run gui tests Terry Reedy <tjreedy@udel.edu> - 2015-08-13 07:55 -0400
  Re: Linux users: please run gui tests David Bolen <db3l.net@gmail.com> - 2015-08-07 16:53 -0400

csiph-web