Stefan Fleischmann wrote:
> Change the 3rd line in the file '/usr/share/pyshared-data/python-apt' to
> "python-version = 2.6, 3.1, 2.5"
That doesn't work for me. I tried both changing 3 to 3.1 and changing
the regex in /usr/share/pycentral-data/pyversions.py to make the decimal
point and following number optional. In both cases, I now get these
error:
Setting up python-apt (0.7.98) ...
Compiling /usr/lib/python3/dist-packages/apt/debfile.py ...
SyntaxError: ('invalid syntax',
('/usr/lib/python3/dist-packages/apt/debfile.py', 575, 28, '
print(msg, file=sys.stderr)\n'))
Compiling /usr/lib/python3/dist-packages/apt/progress/gtk2.py ...
SyntaxError: ('invalid syntax',
('/usr/lib/python3/dist-packages/apt/progress/gtk2.py', 510, 47, '
print("Exception happened:", exc, file=sys.stderr)\n'))
Compiling /usr/lib/python3/dist-packages/apt/progress/old.py ...
SyntaxError: ('invalid syntax',
('/usr/lib/python3/dist-packages/apt/progress/old.py', 158, 32, '
print("\\r%s" % (s), end=\' \')\n'))
pycentral: pycentral pkginstall: error byte-compiling files (17)
pycentral pkginstall: error byte-compiling files (17)
It looks like it is trying to compile the python3 source with python2
(the print(...) syntax errors).
I tried installing python3, but that made no difference.
On my system, python-apt is the only user of pycentral that has python3
sources.
Is this a bug in python-central not working properly with python3?
--
To UNSUBSCRIBE, email to [email protected]
with a subject of "unsubscribe". Trouble? Contact [email protected]