Python installing on Debian

Guillaume Gervais guillaumegervais at hotmail.com
Sun Mar 28 18:59:45 CEST 2004


Hello there,

I'm using Debian GNU/Linux testing/unstable (sarge) as an operating system.  
About a month ago, I installed python 2.3 on my machine, from the sources.

And it worked perfectly.  But about 3 weeks ago, I made a update of the 
packages list (apt-get update) followed by a apt-get dist-upgrade.  I short, 
I upgraded Debian.

But among the ugraded packages was python2.3.  And it doesn't seem to 
install properly.  Here is the error message (it is in french, since my 
mother tongue is french...) :

# apt-get install package
[...]
Paramétrage de python2.3 (2.3.3-6) ...
Compiling python modules in /usr/lib/python2.3 ...
'import site' failed; use -v for traceback
SyntaxError: ('future feature rested_snopes is not defined',)

SyntaxError: ('from __future__ imports must occur at the beginning of the 
file',)

SyntaxError: ('from __future__ imports must occur at the beginning of the 
file',)

SyntaxError: ('from __future__ imports must occur at the beginning of the 
file',)

SyntaxError: ('from __future__ imports must occur at the beginning of the 
file',)

  File "/usr/lib/python2.3/test/badsyntax_nocaret.py", line 2
    [x for x in x] = x
SyntaxError: can't assign to list comprehension

dpkg : erreur de traitement de python2.3 (--configure) :
le sous-processus post-installation script a retourné une erreur de sortie 
d'état 1
Des erreurs ont été rencontrées pendant l'exécution :
python2.3
E: Sub-process /usr/bin/dpkg returned an error code (1)



But there are some python programs I am using that works fine.  But this 
line :

'import site' failed; use -v for traceback

appears very often when I run python programs (but the program itself works 
fine).

When using apt-get, the package I am installing installs fine, same thing 
when I am removing a program, but the error message always appears at the 
end, and it is very annoying.

Can someone help me out?

Thanks a lot,

<html><DIV>
<DIV>
<DIV>
<DIV>
<DIV>Guillaume Gervais, </DIV>
<DIV>&nbsp;</DIV>
<DIV>
<DIV><IMG height=78 
src="http://www-mddsp.enel.ucalgary.ca/People/adilger/logo/0.0/logomed.128.png" 
width=182></DIV></DIV></DIV></DIV></DIV></DIV></html>

_________________________________________________________________
MSN Messenger : discutez en direct avec vos amis !  
http://messenger.fr.msn.ca/





More information about the Python-list mailing list