[Debian-med-packaging] Bug#792058: python3-cobra: SyntaxError: invalid syntax (2.x-isms)

Aaron M. Ucko ucko at debian.org
Fri Jul 10 19:07:00 UTC 2015


Package: python3-cobra
Version: 0.4.0b1-1
Severity: grave
Justification: renders package unusable (uninstallable)

Byte compilation of python3-cobra is failing due to the presence of
syntax that was only valid in Python 2.x:

  Setting up python3-cobra (0.4.0b1-1) ...
    File "/usr/lib/python3/dist-packages/cobra/solvers/glpk_solver_java.py", line 86
      except Exception, e1:
                      ^
  SyntaxError: invalid syntax
  
    File "/usr/lib/python3/dist-packages/cobra/solvers/cplex_solver_java.py", line 318
      print '%s failed: %s'%(solver_name, status)
                          ^
  SyntaxError: invalid syntax
  
    File "/usr/lib/python3/dist-packages/cobra/solvers/gurobi_solver_java.py", line 73
      except Exception, e:
                      ^
  SyntaxError: invalid syntax
  
  dpkg: error processing package python3-cobra (--configure):
   subprocess installed post-installation script returned error exit status 1

Could you please take a look?

Thanks!



More information about the Debian-med-packaging mailing list