ERROR: {"error": "Connection failed!\n\nThe error message returned was:\nNo module named psycopg2"
See original GitHub issueMake 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:
- Created 6 years ago
- Comments:7 (1 by maintainers)
Top 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 >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
Now we need to install the binary
Hi,
You need to install this : pip install psycopg2 Please follow documentation : Database dependencies https://superset.incubator.apache.org/installation.html