Python installing on Debian

Ryan Spencer jeder at earthlink.net
Sun Mar 28 16:27:55 EST 2004


On Sun, 28 Mar 2004 16:59:45 +0000, Guillaume Gervais wrote:

> 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> </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/

Hello there,

In unstable, it isn't uncommon for packages to become broken, which you
might know by now, but just in case you didn't. It might be that the
python2.3 package has grown broken. Try 'apt-get update' and 'apt-get
install python2.3' to more specifically trace the problem.

You say you compiled python2.3 from source, right? Is it neccesary that
you have both the debian version and the source? I would say that if the
source compilation is working, it would be more preferable to have that
than deal with the hassle of the possibly broken python2.3 package in
unstable. 

I've used testing, unstable, and now finally stable. I know that in both
testing and unstable there are bound to be times when things you download
won't work. You could build your own dpkg of the source compilation you
did and submit it to the unstable release if you'd like.

If you didn't install it from online source code, I'm sure you should be
able to, and then follow through with the advise above.

Of course, being in stable now I can't fully check the unstable problem,
but, you could repost this question in the linux.debian.user newsgroup for
further information. Being unable to read french, I'm unsure if I can
fully understand the little tidbits of the error messages, as well.

Hope this helps so far,
~Ryan



More information about the Python-list mailing list