You are not logged in.

#1 2021-10-28 13:35:37

vegarab
Member
Registered: 2017-12-22
Posts: 47

[SOLVED] libffi.so.7: cannot open shared object file

Recently started getting an ImportError in my Python3.8 environment, stating: libffi.so.7: cannot open shared object file

I can see that there are several similar posts here, where most of the issues are caused by a partial update of the system at hand. Most of the cases were solved by simply doing a full system upgrade with:

sudo pacman -Syu

AFAIK I haven't done a partial upgrade of my system, and the previous one went without a hiccup.
I've tried reinstalling the libffi package, and rolling it back from the cached package. That failed due to a dependency conflict that I am unsure if I can solve.

Pastebin didn't seem to accept my entire pacman log so I have added the log for the past few weeks, going far beyond when I identified the issue: https://pastebin.com/LcenpQtK
If you need more of the log, are there any other services that would be good to share >10K lines?

Thanks.

Last edited by vegarab (2021-10-28 13:49:17)

Offline

#2 2021-10-28 13:40:58

Scimmia
Fellow
Registered: 2012-09-01
Posts: 11,461

Re: [SOLVED] libffi.so.7: cannot open shared object file

Everything in the repos was rebuilt against the new lib. Anything you build yourself, like python 3.8, would need manually rebuilt.

Offline

#3 2021-10-28 13:49:03

vegarab
Member
Registered: 2017-12-22
Posts: 47

Re: [SOLVED] libffi.so.7: cannot open shared object file

Rebuilding python 3.8 solved it, makes sense. Thank you @Scimmia

Last edited by vegarab (2021-10-28 13:49:37)

Offline

#4 2021-11-24 11:31:06

cybergrind
Member
Registered: 2021-11-24
Posts: 1

Re: [SOLVED] libffi.so.7: cannot open shared object file

You may also need to rebuild cached wheels and reinstall them in virtualenv

find ~/.cache/pip/ -iname 'pygobject*'

Offline

Board footer

Powered by FluxBB