Conan: [bug] Conan 1.21.1 doe not start on debian bullseye

Created on 21 Jan 2020  路  7Comments  路  Source: conan-io/conan

/usr/bin/libpython3.6m.so.1.0

Environment Details (include every applicable attribute)

  • Operating System+version: Debian Bullseye x64_64
  • Compiler+version: gcc-9
  • Conan version: 1.21.1
  • Python version: 3.7

Steps to reproduce (Include if Applicable)

just start conan, it will fail immediately. Version 1.21.0 does not have this issue

[1080397] Error loading Python lib '/usr/bin/libpython3.6m.so.1.0': dlopen: /usr/bin/libpython3.6m.so.1.0: cannot open shared object file: No such file or directory
CI critical in-progress queue bug

All 7 comments

Hi @nolange !

You need to install libpython3.6 package by APT, however, the Python 3 distributed in Debian Bullseye is 3.7, not 3.6.

If you are building Python from sources, you need to pass the argument --enable-shared to ./configure and ensure that libpython3.6m.so will be available in your LD_LIBRARY_PATH.

If you opted by using the distro's version (which I think is better), you only need to install python3:

sudo apt-get install python3

Regards!

Hi @nolange !

You need to install libpython3.6 package by APT, however, the Python 3 distributed in Debian Bullseye is 3.7, not 3.6.

As in Buster (current stable).

If you are building Python from sources, you need to pass the argument --enable-shared to ./configure and ensure that libpython3.6m.so will be available in your LD_LIBRARY_PATH.

I use your release debs.

If you opted by using the distro's version (which I think is better), you only need to install python3:

sudo apt-get install python3

conan is not in debian repositories.

To be more explicit:

  • I used the conan-ubuntu-64_1_21_1.deb archive from the releases page
  • This one comes with its own libpython3.6m.so
  • The previous conan-ubuntu-64_1_21_0.deb uses its own libpython3.6m.so and works
  • debian does not have libpython3.6 anywhere (and if your .deb archive would need it, it should depend on it)

the issue is that you try to load from a weird absolute path (/usr/bin/libpython3.6m.so.1.0), something got messed up in your packaging.

@nolange Now is more clear! I'll try to reproduce your error.

I can confirm the bug! :bug:

Both Conan 1.21.0 and 1.21.1 have the same number of files in the .deb package, something occurred during the .deb generation (I guess).

I've attached the logs which list the files in each .deb file:
conan-210-2.log
conan-211-2.log

Steps to reproduce:

We should add a test for .deb generator to avoid this same error in the future.

/cc @czoido

I acknowledge that this patch release we generated the installers a bit differently.
Sorry for the trouble, we will have a look, and see if it is just generating and overwriting 1.21.1 installer .deb binary, or we need to release 1.21.2 to fix it.

Hi @nolange,
Thanks a lot for reporting. After exploring the issue it seems that the last version of pyinstaller generated incorrect links for our binaries. It seems that is solved now.
We have updated the deb packages in bintray and github, could you please check if they work for you?

Yes, works now. Thanks

Was this page helpful?
0 / 5 - 0 ratings