Closed j-ibarra closed 2 years ago
This problem also exists on Arch Linux with an identical error message.
It also happens in Void Linux
@J-Ibarra a better workaround is to install the libffi6
package from eoan
.
@J-Ibarra You got libffi.so.7
. That extension expect libffi.so.6
On my Archlinux, get fixed by installing libffi6
from AUR.
I'm getting the same problem on Ubuntu 20.04. It's interesting that I'm running VS Code with a virtualenv, yet this is trying to find a system Python version that isn't even installed. This looks for Python 3.6 and my Ubuntu 20.04 has Python 3.8 installed. And my virtualenv is based on Python 3.8.5 built from source.
Happens on Manjaro Linux as well, even though I have it installed:
local/lib32-libffi 3.3-2
A portable, high level programming interface to various calling conventions (32-bit)
local/libffi 3.3-3
Portable foreign function interface library
This package is missing from your machine, but used to be installed on prior versions of Ubuntu.
You do not want to use a symbolic link here. Who knows what sort of instability that may cause.
You can download and install that package using these commands.
wget http://mirrors.kernel.org/ubuntu/pool/main/libf/libffi/libffi6_3.2.1-8_amd64.deb
sudo apt install ./libffi6_3.2.1-8_amd64.deb
Anyone facing the same on openSUSE Tumbleweed? Couldn't find any provider.
Anyone facing the same on opensSUSE Tumbleweed? Couldn't find any provider.
Found it.
sudo rpm -i libffi6-32bit-3.2.1-1.15.x86_64.rpm
and done:
sudo zypper se -i libffi
Loading repository data...
Reading installed packages...
S | Name | Summary | Type
---+---------+------------------------------------+--------
i+ | libffi6 | Shared library for libffi | package
i+ | libffi8 | Foreign Function Interface Library | package
YMMV.
For lazy and more risk tolerant people:
cd ~/.vscode/extensions/ms-ossdata.vscode-postgresql-0.3.0/pgsqltoolsservice/v1.4.0/Ubuntu16/pgsqltoolsservice/lib/python3.6/
cp /usr/lib64/python3.6/lib-dynload/_ctypes.cpython-36m-x86_64-linux-gnu.so .
this worked for me on openSUSE Leap 15.2.
On Ubuntu 20.10, run the following command and then restart VS Code:
sudo apt install libffi6
On Ubuntu 20.10, run the following command and then restart VS Code:
sudo apt install libffi6
@brylie You must have a PPA that provides it. I'm running 20.10 and it can't find the package.
@jwarkentin here are the details of the libffi6
package on my Ubuntu 20.10 installation:
$ sudo apt info libffi6
Package: libffi6
Version: 0~3.2.1-8
Priority: optional
Section: libs
Source: libffi
Maintainer: Debian GCC Maintainers <debian-gcc@lists.debian.org>
Installed-Size: 53,2 kB
Depends: libc6 (>= 2.14)
Download-Size: 20,6 kB
APT-Manual-Installed: yes
APT-Sources: http://ppa.launchpad.net/kxstudio-debian/libs/ubuntu bionic/main amd64 Packages
Description: Foreign Function Interface library runtime
A foreign function interface is the popular name for the interface that
allows code written in one language to call code written in another
language.
So yeah, it looks like it is in the KXStudio PPA (which is really good if you're into music production.)
This package is missing from your machine, but used to be installed on prior versions of Ubuntu.
You do not want to use a symbolic link here. Who knows what sort of instability that may cause.
You can download and install that package using these commands.
wget http://mirrors.kernel.org/ubuntu/pool/main/libf/libffi/libffi6_3.2.1-8_amd64.deb sudo apt install ./libffi6_3.2.1-8_amd64.deb
It worked for my Mint 20.2! Cheers mate!
0.3.0
1.44.2
Steps to Reproduce:
the ouput is
I tried this
sudo dpkg -S libffi.so
sudo ln /usr/lib/x86_64-linux-gnu/libffi.so.7 /usr/lib/x86_64-linux-gnu/libffi.so.6
reboot, this solve the problem but not its the best solution