python configuration problems

Collapse
This topic is closed.
X
X
 
  • Time
  • Show
Clear All
new posts
  • ivan.pavlov@gmail.com

    #1

    python configuration problems

    I am running Debian/Linux unstable. Trying to upgrade packages
    depending on python (via aptitude) has started to give errors and
    leaves all packeges unconfigured. When I run dpkg --configure pyhton2.3
    the following errors occur.

    Any advice on what to do?

    Setting up python2.3 (2.3.5-8) ...
    Compiling python modules in /usr/lib/python2.3 ...
    Compiling /usr/lib/python2.3/site-packages/srcb/generator.py ...
    File "/usr/lib/python2.3/site-packages/srcb/generator.py", line 331
    return (_p( *x ) for x in parser.parse_xd oc( line ))
    ^
    SyntaxError: invalid syntax

    Compiling /usr/lib/python2.3/site-packages/srcb/interp.py ...
    File "/usr/lib/python2.3/site-packages/srcb/interp.py", line 61
    @staticmethod
    ^
    SyntaxError: invalid syntax

    Compiling /usr/lib/python2.3/site-packages/srcb/multimethods.py ...
    File "/usr/lib/python2.3/site-packages/srcb/multimethods.py ", line 50
    sig = tuple( x.__class__.__n ame__ for x in args )
    ^
    SyntaxError: invalid syntax

    Compiling /usr/lib/python2.3/site-packages/srcb/parser.py ...
    File "/usr/lib/python2.3/site-packages/srcb/parser.py", line 67
    mode = dict( (k, tuple( re.compile( e ) for e in v )) for (k, v) in
    mode.iteritems( ) )
    ^
    SyntaxError: invalid syntax

    Compiling /usr/lib/python2.3/site-packages/srcb/visitor.py ...
    File "/usr/lib/python2.3/site-packages/srcb/visitor.py", line 137
    @staticmethod
    ^
    SyntaxError: invalid syntax

  • ivan.pavlov@gmail.com

    #2
    Re: python configuration problems

    I solved the problem myself. Just removed the folder where the errors
    were occuring. Don't know how it came to exists in the first place
    though. Now everything seems to work fine, for now...

    Comment

    • Fredrik Lundh

      #3
      Re: python configuration problems

      ivan.pavlov@gma il.com wrote:
      [color=blue]
      > I am running Debian/Linux unstable. Trying to upgrade packages
      > depending on python (via aptitude) has started to give errors and
      > leaves all packeges unconfigured. When I run dpkg --configure pyhton2.3
      > the following errors occur.[/color]

      the "srcb" package uses 2.4 features (generator expressions and
      decorators).

      whoever told you to add that package to your 2.3 install should
      be slapped with a medium-sized fish.

      </F>



      Comment

      Working...