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

error occurred when I try to install postgreSQL extension #322

Closed
joe032022 opened this issue Sep 2, 2022 · 3 comments
Closed

error occurred when I try to install postgreSQL extension #322

joe032022 opened this issue Sep 2, 2022 · 3 comments
Labels
M2 Issues to be handled June 2023 Release-v0.4 Bug fix to be included in Release-v0.4 of PgSql extension

Comments

@joe032022
Copy link

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 - 9:25:12 am] Connection to server got closed. Server will not be restarted.
@GetAHat
Copy link

GetAHat commented Sep 3, 2022

I'm on Fedora 36, so i was able to use dnf whatprovides. In, again, Fedora the package you need to install is libffi3.1-3.1-32.fc36.x86_64 but I believe there should be something similar on any modern distro

@wilfison
Copy link

I had the same issue on Ubuntu and derivatives. You need to install the libffi6 library manually.

You can do this by downloading the official ubuntu repository file from the link below.

https://packages.ubuntu.com/bionic/amd64/libffi6/download

Follow the steps below to avoid any problems.

  • Uninstall the postgres extension;
  • Close the software you are trying to install;
  • Install libff6;
  • Open the software;
  • Install the extension again;
  • Wait 15 or 20 seconds for installation to complete in the background;

@wilfison wilfison mentioned this issue Nov 28, 2022
@nasc17 nasc17 added the M2 Issues to be handled June 2023 label Jun 21, 2023
@nasc17 nasc17 added the Release-v0.4 Bug fix to be included in Release-v0.4 of PgSql extension label Jun 29, 2023
@nasc17
Copy link
Collaborator

nasc17 commented Jul 5, 2023

Bug has been addressed in latest stable release of PostgreSQL extension v0.4.1. Please reopen if issue persists, thank you.

@nasc17 nasc17 closed this as completed Jul 5, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
M2 Issues to be handled June 2023 Release-v0.4 Bug fix to be included in Release-v0.4 of PgSql extension
Projects
None yet
Development

No branches or pull requests

4 participants