question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

ERROR: {"error": "Connection failed!\n\nThe error message returned was:\nNo module named psycopg2"

See original GitHub issue

Make sure these boxes are checked before submitting your issue - thank you!

  • [ yes] I have checked the superset logs for python stacktraces and included it here as text if any
  • [yes ] I have reproduced the issue with at least the latest released version of superset
  • [ yes] I have checked the issue tracker for the same issue and I haven’t found one similar

Superset version

0.18.5

Expected results

I am trying to connect superset to postgresql. I use this url : postgresql+psycopg2://user:pwd@ip:5432/mydatbase. Before run test connection i install pip install psycopg2 and i don’t understant why i have this error :

ERROR: {"error": "Connection failed!\n\nThe error message returned was:\nNo module named psycopg2"

Actual results

ERROR: {“error”: “Connection failed!\n\nThe error message returned was:\nNo module named psycopg2”

Steps to reproduce

No

Issue Analytics

  • State:closed
  • Created 6 years ago
  • Comments:7 (1 by maintainers)

github_iconTop GitHub Comments

1reaction
sjpatel21commented, Jun 17, 2019

pip install psycopg2

Now we need to install the binary

pip install psycopg2-binary

1reaction
amoussoubaruchcommented, Jul 28, 2018

Hi,

You need to install this : pip install psycopg2 Please follow documentation : Database dependencies https://superset.incubator.apache.org/installation.html

Read more comments on GitHub >

github_iconTop Results From Across the Web

ImportError: No module named psycopg2 - Stack Overflow
Please try to run the command import psycopg2 on the python console. If you get the error then check ...
Read more >
ModuleNotFoundError: No module named 'psycopg2' in Python
The Python "ModuleNotFoundError: No module named 'psycopg2'" occurs when we forget to install the psycopg2-binary module before importing it or install it in...
Read more >
No module named 'psycopg2' + error during installation
error ERROR : Command errored out with exit status 1: command: /usr/bin/python3 -u -c 'import sys, setuptools, tokenize; sys. argv[0] = '"'"'/ ...
Read more >
[Solved] ImportError: No Module Named 'psycopg2'
Many “No module named psycopg2” errors occur due to working on incorrect virtual environments and installing the 'psycopg2' on a different ...
Read more >
Python Import Error Module Not Found Error - YouTube
Python Import Error Module Not Found Error : No Module Named Psycopg2 In ... psycopg2 python Connect, fetch data, pass SQL query parameters, ......
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found