[Bug 1583897] Re: libgv-python: wrong symlink from _gv.x86_64-linux-gnu.so
Jeremy Bicha
jbicha at linux.com
Sun Dec 25 06:08:30 UTC 2016
** Description changed:
+ Impact
+ ======
+ libgv-python is unusable because the symlink is not pointed to the correct file. Ubuntu 16.04 LTS and 16.10 are affected by this bug, but Ubuntu 14.04 LTS is not.
+
+ Test Case
+ =========
+ Install libgv-python
+ Run these commands:
+ $ python
+ >>> import gv
+
+ It should silently print a new line without errors
+ >>>
+
+ Then, type exit() to exit the python interpreter
+
+ Regression Potential
+ ====================
+ None. Without this fix, libgv-python doesn't work at all.
+ The fix in debian/rules is copied from Debian 2.38.0-16.
+
+ Original Bug Report
+ ===================
+
On xenial, with the latest version of libgv-python (2.38.0-12ubuntu2) on
x86_64,
when importing the gv module I get the following error:
```
❯ python
- Python 2.7.11+ (default, Apr 17 2016, 14:00:29)
+ Python 2.7.11+ (default, Apr 17 2016, 14:00:29)
[GCC 5.3.1 20160413] on linux2
Type "help", "copyright", "credits" or "license" for more information.
>>> import gv
Traceback (most recent call last):
- File "<stdin>", line 1, in <module>
- File "gv.py", line 28, in <module>
- _gv = swig_import_helper()
- File "gv.py", line 20, in swig_import_helper
- import _gv
+ File "<stdin>", line 1, in <module>
+ File "gv.py", line 28, in <module>
+ _gv = swig_import_helper()
+ File "gv.py", line 20, in swig_import_helper
+ import _gv
ImportError: No module named _gv
- >>>
+ >>>
```
Upon investigation, there is a dangling symlink -- _gv.x86_64-linux-
gnu.so points to a non-existent library that does not contain the
architecture, whereas the actual existing file is tagged with the
architecture (x86_64-linus-gnu):
```
/usr/lib/python2.7/dist-packages
❯ ls -l *gv*so
lrwxrwxrwx 1 root root 17 Mar 14 05:29 _gv.x86_64-linux-gnu.so -> libgv_python27.so
-rw-r--r-- 1 root root 92624 Mar 14 05:29 libgv_python27.x86_64-linux-gnu.so
-
+
```
Currently creating the libgv_python27.so -> libgv_python27.x86_64-linux-
gnu.so symlink manually so as not to touch the files coming from the
package.
--
You received this bug notification because you are a member of Ubuntu
Foundations Bugs, which is subscribed to graphviz in Ubuntu.
https://bugs.launchpad.net/bugs/1583897
Title:
libgv-python: wrong symlink from _gv.x86_64-linux-gnu.so
Status in graphviz package in Ubuntu:
Fix Released
Status in graphviz source package in Xenial:
In Progress
Status in graphviz source package in Yakkety:
In Progress
Status in graphviz package in Debian:
Fix Released
Bug description:
Impact
======
libgv-python is unusable because the symlink is not pointed to the correct file. Ubuntu 16.04 LTS and 16.10 are affected by this bug, but Ubuntu 14.04 LTS is not.
Test Case
=========
Install libgv-python
Run these commands:
$ python
>>> import gv
It should silently print a new line without errors
>>>
Then, type exit() to exit the python interpreter
Regression Potential
====================
None. Without this fix, libgv-python doesn't work at all.
The fix in debian/rules is copied from Debian 2.38.0-16.
Original Bug Report
===================
On xenial, with the latest version of libgv-python (2.38.0-12ubuntu2)
on x86_64,
when importing the gv module I get the following error:
```
❯ python
Python 2.7.11+ (default, Apr 17 2016, 14:00:29)
[GCC 5.3.1 20160413] on linux2
Type "help", "copyright", "credits" or "license" for more information.
>>> import gv
Traceback (most recent call last):
File "<stdin>", line 1, in <module>
File "gv.py", line 28, in <module>
_gv = swig_import_helper()
File "gv.py", line 20, in swig_import_helper
import _gv
ImportError: No module named _gv
>>>
```
Upon investigation, there is a dangling symlink -- _gv.x86_64-linux-
gnu.so points to a non-existent library that does not contain the
architecture, whereas the actual existing file is tagged with the
architecture (x86_64-linus-gnu):
```
/usr/lib/python2.7/dist-packages
❯ ls -l *gv*so
lrwxrwxrwx 1 root root 17 Mar 14 05:29 _gv.x86_64-linux-gnu.so -> libgv_python27.so
-rw-r--r-- 1 root root 92624 Mar 14 05:29 libgv_python27.x86_64-linux-gnu.so
```
Currently creating the libgv_python27.so -> libgv_python27.x86_64
-linux-gnu.so symlink manually so as not to touch the files coming
from the package.
To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/graphviz/+bug/1583897/+subscriptions
More information about the foundations-bugs
mailing list