Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Python bindings are not side-by-side installable? #425

Closed
traversaro opened this issue May 6, 2022 · 3 comments
Closed

Python bindings are not side-by-side installable? #425

traversaro opened this issue May 6, 2022 · 3 comments
Assignees
Labels
bug Something isn't working

Comments

@traversaro
Copy link
Contributor

Environment

Description

  • Expected behavior: One characterizing feature of Ignition libraries is that major version of it are side-by-syde installable. However, while working on Enable Python bindings conda-forge/libignition-math4-feedstock#20 I noticed that the Python bindings install the file $PREFIX/lib/python3.7/site-packages/ignition/math.cpython-37m-x86_64-linux-gnu.so, that is not major version specific, that so will conflict with the same file installed by another major version. I am not sure if this change is intended (it may be documented somewhere, but I did not found anything) or not intentional.
  • Actual behavior: Python bindings of major version side-by-side installable, or the fact that they are not side-by-side installable documented.

Steps to reproduce

Install https://github.com/ignitionrobotics/ign-math/tree/ignition-math6_6.10.0 and cd439fa in the same prefix. The latest one installed will overwrite the $PREFIX/lib/python3.7/site-packages/ignition/math.cpython-37m-x86_64-linux-gnu.so file.

@traversaro traversaro added the bug Something isn't working label May 6, 2022
@traversaro
Copy link
Contributor Author

This can be shown also by installing the python3-ignition-math6 and python3-ignition-math7 nightly packages on a Ubuntu 22.04 system, it fails as the file /usr/lib/python3/dist-packages/ignition/math.cpython-310-x86_64-linux-gnu.so is in both packages:

straversaro@IITICUBLAP257:~$ sudo apt install python3-ignition-math6 python3-ignition-math7
Reading package lists... Done
Building dependency tree... Done
Reading state information... Done
python3-ignition-math6 is already the newest version (6.10.0-100~jammy).
The following NEW packages will be installed:
  libignition-math7 python3-ignition-math7
0 upgraded, 2 newly installed, 0 to remove and 1 not upgraded.
Need to get 0 B/743 kB of archives.
After this operation, 3,372 kB of additional disk space will be used.
Selecting previously unselected package libignition-math7:amd64.
(Reading database ... 110956 files and directories currently installed.)
Preparing to unpack .../libignition-math7_6.999.999+nightly+git20220505+1rbfcf56a60c42f5b5c96cf456a0d566958554219b-1~jammy_amd64.deb ...
Unpacking libignition-math7:amd64 (6.999.999+nightly+git20220505+1rbfcf56a60c42f5b5c96cf456a0d566958554219b-1~jammy) ...
Preparing to unpack .../python3-ignition-math7_6.999.999+nightly+git20220505+1rbfcf56a60c42f5b5c96cf456a0d566958554219b-1~jammy_amd64.deb ...
Unpacking python3-ignition-math7 (6.999.999+nightly+git20220505+1rbfcf56a60c42f5b5c96cf456a0d566958554219b-1~jammy) ...
dpkg: error processing archive /var/cache/apt/archives/python3-ignition-math7_6.999.999+nightly+git20220505+1rbfcf56a60c42f5b5c96cf456a0d566958554219b-1~jammy_amd64.deb (--unpack):
 trying to overwrite '/usr/lib/python3/dist-packages/ignition/math.cpython-310-x86_64-linux-gnu.so', which is also in package python3-ignition-math6 6.10.0-100~jammy
dpkg-deb: error: paste subprocess was killed by signal (Broken pipe)
Errors were encountered while processing:
 /var/cache/apt/archives/python3-ignition-math7_6.999.999+nightly+git20220505+1rbfcf56a60c42f5b5c96cf456a0d566958554219b-1~jammy_amd64.deb
needrestart is being skipped since dpkg has failed
E: Sub-process /usr/bin/dpkg returned an error code (1)

@traversaro
Copy link
Contributor Author

This will be probably solved by #503 .

@mjcarroll
Copy link
Contributor

Closed by #503

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
Archived in project
Development

No branches or pull requests

3 participants