Your message dated Thu, 16 Jan 2020 18:27:49 +1100
with message-id <12543406.Vf8VYOCdhU@simurgh>
and subject line Re: Bug#949017: discus: invalid syntax while size > 
(0.9999999999 * pow(10L, 3))
has caused the Debian Bug report #949017,
regarding discus: invalid syntax while size > (0.9999999999 * pow(10L, 3))
to be marked as done.

This means that you claim that the problem has been dealt with.
If this is not the case it is now your responsibility to reopen the
Bug report if necessary, and/or fix the problem forthwith.

(NB: If you are a system administrator and have no idea what this
message is talking about, this may indicate a serious mail system
misconfiguration somewhere. Please contact ow...@bugs.debian.org
immediately.)


-- 
949017: https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=949017
Debian Bug Tracking System
Contact ow...@bugs.debian.org with problems
--- Begin Message ---
Package: discus
Version: 0.2.9-11
Severity: grave
Justification: renders package unusable

Hi,

I get the following:

~/ discus
  File "/usr/bin/discus", line 121
    while size > (0.9999999999 * pow(10L, 3)):
                                       ^
SyntaxError: invalid syntax

Regards

Jean-Luc


-- System Information:
Debian Release: bullseye/sid
  APT prefers buildd-unstable
  APT policy: (500, 'buildd-unstable'), (500, 'unstable'), (1, 'experimental')
Architecture: amd64 (x86_64)

Kernel: Linux 5.5.0-rc6-i7-0.1 (SMP w/8 CPU cores)
Locale: LANG=fr_FR.UTF-8, LC_CTYPE=fr_FR.UTF-8 (charmap=UTF-8), 
LANGUAGE=fr_FR.UTF-8 (charmap=UTF-8)
Shell: /bin/sh linked to /usr/bin/dash
Init: systemd (via /run/systemd/system)

Versions of packages discus depends on:
ii  python  2.7.17-2

discus recommends no packages.

discus suggests no packages.

-- no debconf information

--- End Message ---
--- Begin Message ---
Hi Jean-Luc,

>     while size > (0.9999999999 * pow(10L, 3)):

This syntax is perfectly fine for Python 2.7 which is what discus uses:

$ python2.7 -c "print 10L * 3"
30
$ python3 -c "print(10L * 3)"
  File "<string>", line 1
    print(10L * 3)
            ^
SyntaxError: invalid syntax

Have you altered what /usr/bin/python is on your system? /usr/bin/python 
*must* invoke Python 2 on Debian systems. "python" is for Python 2; "python3" 
is for Python 3, and so you should have a symlink /usr/bin/python -> python2.

regards
Stuart

-- 
Stuart Prescott    http://www.nanonanonano.net/   stu...@nanonanonano.net
Debian Developer   http://www.debian.org/         stu...@debian.org
GPG fingerprint    90E2 D2C1 AD14 6A1B 7EBB 891D BBC1 7EBB 1396 F2F7

--- End Message ---

Reply via email to