Welcome to the forums. Please post in English or French.

You are not logged in.

#1 2020-12-23 02:06:38

ftrillaudp
Member
From: Mexico city
Registered: 2012-04-24
Posts: 24

installation Ubuntu 20.04LTS - missing libboost-python solved

Dear all,

Installation on Ubuntu 20.04LTS failed missing libboost_python with default python install version 3.8.x.

Here is the fixed that I used:

in the setup.py file line 758, change:

cfg.get("LIBNAME_BOOST", ["boost_python3", "boost_python3-mt"]),

for

cfg.get("LIBNAME_BOOST", ["boost_python38", "boost_python3-mt"]),

You can also remove "boost_python3-mt".

Best,

Frederic


Research professor
Fields of interest: engineering, thermodynamics, mechanics, electromagnetism, computer science and open source software

Offline

#2 2020-12-23 15:21:49

TamasBalogh
Member
From: Slovakia
Registered: 2019-10-19
Posts: 24

Re: installation Ubuntu 20.04LTS - missing libboost-python solved

Hello Frederic !

Thank you for sharing your fix, I had a similar issue when I tried to install 14.X.0 on WSL. So I am adding it here to this thread in case if anyone bumps into the same issue (I only experienced this on WSL, not on Virtual Machine or other Ubuntu ware). So the error was:

CMake Error in bindings/python/tfel/CMakeLists.txt:
Imported target "Boost::python" includes non-existent path

   "/include"

in its INTERFACE_INCLUDE_DIRECTORIES.  Possible reasons include:

* The path was deleted, renamed, or moved to another location.

* An install or uninstall procedure did not complete successfully.

* The installation package was faulty and references files it does not
provide.

1. Installed Boost pre-requisites: libboost-all-dev,
2. Frederic's suggestion in setup.py: cfg.get("LIBNAME_BOOST", ["boost_python38", "boost_python38-mt"]),
3. Completely removed all references to python 2:
sudo apt-get install python-is-python3
sudo apt-get autoremove --purge
4. Ran the installer as root: BEWARE if you installed packages with pip, you have to install them again probably in root mode (e.g. numpy)

I am still not quite sure what caused the error / nor which step fixed it exactly. I am pretty sure it is at least two of the 2-3-4 steps. Hope this helps to others as well with the same issue!

Tamas

Offline

#3 2022-05-05 11:31:07

LeiCAI
Member
Registered: 2022-05-05
Posts: 1

Re: installation Ubuntu 20.04LTS - missing libboost-python solved

Dear all,

I also met the same problem. And I solved it as Frederic suggested.

However, the modification depended on the version of your python.
For example, I use python 3.10.x. Then I replace 38 to 310 and it works.

Offline

#4 2022-07-30 10:09:21

ftrillaudp
Member
From: Mexico city
Registered: 2012-04-24
Posts: 24

Re: installation Ubuntu 20.04LTS - missing libboost-python solved

Dear all,

I was off the forum for some time now. Indeed, I should have mentioned that the fix depends on the python version installed. You need first to know which library is installed to chose the proper name.

I have not moved to Ubuntu 22.04LTS, hopefully this issue was fixed by the developers.

Best,

Frederic


Research professor
Fields of interest: engineering, thermodynamics, mechanics, electromagnetism, computer science and open source software

Offline