[Bug 1629672] Re: glpk module import fails

Norbert 1629672 at bugs.launchpad.net
Mon Jan 21 21:32:32 UTC 2019


The real problem is python-ply. It is buggy.

The bug may be solved by installation of previous version to the home
folder with pip:

  sudo apt-get install python-pip
  pip install ply==3.4 --user


** Also affects: ply (Ubuntu)
   Importance: Undecided
       Status: New

-- 
You received this bug notification because you are a member of Ubuntu
OpenStack, which is subscribed to ply in Ubuntu.
https://bugs.launchpad.net/bugs/1629672

Title:
  glpk module import fails

Status in ply package in Ubuntu:
  New
Status in python-glpk package in Ubuntu:
  Confirmed

Bug description:
  $ python
  Python 2.7.12 (default, Jul  1 2016, 15:12:24) 
  [GCC 5.4.0 20160609] on linux2
  Type "help", "copyright", "credits" or "license" for more information.
  >>> import glpk
  Traceback (most recent call last):
    File "<stdin>", line 1, in <module>
    File "/usr/lib/python2.7/dist-packages/glpk/__init__.py", line 26, in <module>
      from glpk_parser import *
    File "/usr/lib/python2.7/dist-packages/glpk/glpk_parser.py", line 352, in <module>
      yacc.yacc(write_tables=0, debug=0)
    File "/usr/lib/python2.7/dist-packages/ply/yacc.py", line 3264, in yacc
      read_signature = lr.read_table(tabmodule)
    File "/usr/lib/python2.7/dist-packages/ply/yacc.py", line 1967, in read_table
      if parsetab._tabversion != __tabversion__:
  AttributeError: 'module' object has no attribute '_tabversion'

  ProblemType: Bug
  DistroRelease: Ubuntu 16.04
  Package: python-glpk 0.4.52-1.1
  ProcVersionSignature: Ubuntu 4.4.0-38.57-generic 4.4.19
  Uname: Linux 4.4.0-38-generic x86_64
  ApportVersion: 2.20.1-0ubuntu2.1
  Architecture: amd64
  Date: Sun Oct  2 10:23:57 2016
  InstallationDate: Installed on 2012-10-07 (1456 days ago)
  InstallationMedia: Ubuntu 12.04.1 LTS "Precise Pangolin" - Release amd64 (20120822.4)
  ProcEnviron:
   LANGUAGE=
   TERM=xterm
   PATH=(custom, no user)
   LANG=en_US.UTF-8
   SHELL=/bin/bash
  SourcePackage: python-glpk
  UpgradeStatus: Upgraded to xenial on 2016-04-09 (175 days ago)

To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/ply/+bug/1629672/+subscriptions



More information about the Ubuntu-openstack-bugs mailing list