lgellis commented on issue #3170: ERROR: {"error": "Connection failed!\n\nThe 
error message returned was:\nNo module named psycopg2"
URL: 
https://github.com/apache/incubator-superset/issues/3170#issuecomment-542919634
 
 
   I faced the exact same issue, and finally realized it was b/c i was 
installing the pkgs on my computer but that superset was installed in a virtual 
environment.  I just posted the following answer to [stack 
overflow](https://stackoverflow.com/questions/52218761/superset-importerror-no-module-named-psycopg2/58422515#58422515).
  I hope it helps ppl:
   
   you may have installed superset in a virtual environment as suggested in the 
[install 
guide](https://superset.incubator.apache.org/installation.html#python-virtualenv)
   
   A good indicator is to search for where you installed superset and if it's 
in a folder venv, it's likely in the virutal environment.
   
   You need to ensure that the python packages are installed in your virtual 
environment as well.  Installing on your local computer will not work.
   
   Go to where you installed superset (in my case /Applications/venv/), and 
activate the venv: 
   
   `. venv/bin/activate`
   
   Install your packages 
   
   `pip install psycopg2`
   

----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
 
For queries about this service, please contact Infrastructure at:
[email protected]


With regards,
Apache Git Services

---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to