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

ImportError: libffi.so.6: cannot open shared object file: No such file or directory #278

Closed
ibuda opened this issue Jan 5, 2021 · 9 comments

Comments

@ibuda
Copy link

ibuda commented Jan 5, 2021

Hi,

I am getting this error when trying to install PostgreSQL extension:

ImportError: libffi.so.6: cannot open shared object file: No such file or directory

More details:

It seems the debugger cannot resolve /opt/hostedtoolcache/Python/3.6.12/x64/lib/python3.6/posixpath.py
This may make the debugger miss breakpoints in the standard library.
Related bug: https://bugs.python.org/issue1180193
Traceback (most recent call last):
  File "/opt/hostedtoolcache/Python/3.6.12/x64/lib/python3.6/site-packages/cx_Freeze/initscripts/__startup__.py", line 40, in run
  File "/opt/hostedtoolcache/Python/3.6.12/x64/lib/python3.6/site-packages/cx_Freeze/initscripts/Console.py", line 37, in run
  File "ossdbtoolsservice/ossdbtoolsservice_main.py", line 11, in <module>
  File "/opt/hostedtoolcache/Python/3.6.12/x64/lib/python3.6/site-packages/ptvsd/__init__.py", line 13, in <module>
  File "/opt/hostedtoolcache/Python/3.6.12/x64/lib/python3.6/site-packages/ptvsd/_vendored/force_pydevd.py", line 37, in <module>
  File "/opt/hostedtoolcache/Python/3.6.12/x64/lib/python3.6/site-packages/ptvsd/_vendored/__init__.py", line 123, in preimport
  File "/opt/hostedtoolcache/Python/3.6.12/x64/lib/python3.6/importlib/__init__.py", line 126, in import_module
  File "/opt/hostedtoolcache/Python/3.6.12/x64/lib/python3.6/site-packages/pydevd.py", line 31, in <module>
  File "/opt/hostedtoolcache/Python/3.6.12/x64/lib/python3.6/site-packages/_pydevd_bundle/pydevd_utils.py", line 8, in <module>
  File "/opt/hostedtoolcache/Python/3.6.12/x64/lib/python3.6/ctypes/__init__.py", line 7, in <module>
ImportError: libffi.so.6: cannot open shared object file: No such file or directory
[Error - 11:11:22 AM] Connection to server got closed. Server will not be restarted.

OS: Ubuntu 20.04.1 LTS
Azure Data Studio: Version: 1.25.1
Commit: e7eacc32c0d20bd4da843320c3bfac231b308c98
Date: 2020-12-11T01:51:41.708Z
VS Code: 1.48.0
Electron: 9.3.0
Chrome: 83.0.4103.122
Node.js: 12.14.1
V8: 8.3.110.13-electron.0
OS: Linux x64 5.4.0-58-generic

Any help or guidance is much appreciated. Thank you.

@ibuda
Copy link
Author

ibuda commented Jan 5, 2021

this solution worked for me.

@ibuda ibuda closed this as completed Jan 5, 2021
@FabsMuller
Copy link

FabsMuller commented Feb 10, 2021

this solution worked for me.

For me too. But before that I had to chmod ~/.azuredatastudio/extensions/microsoft.azuredatastudio-postgresql-0.2.7/out/ossdbtoolsservice/Linux/v1.5.0/pgsqltoolsservice/ossdbtoolsservice_main to +777 because it wasn't -x (?)

@elijaydot
Copy link

this solution worked for me.

this worked for me a great deal. thank you

@baybal
Copy link

baybal commented Jul 7, 2021

@ibuda please don't close the issue. The underlying problem is still there.

@ibuda
Copy link
Author

ibuda commented Jul 7, 2021

@baybal Hi, I closed the issue since I found and shared the solution to it.

@venkatakrishs
Copy link

this solution worked for me.

This solution also worked for me. Thanks.

@pravin
Copy link

pravin commented Nov 17, 2021

symlinking to another version isn't the best way of solving the issue though. Do the devs have other ideas?

Can we reopen this issue please?

@GaryHopeMS
Copy link
Collaborator

Reopening issue as underlying problem still remains.

@fantasy-fish
Copy link

this solution worked for me.

The link in the solution is no longer valid

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

8 participants