ModuleNotFoundError: No module named 'psycopg2' during k8 installation #31431
Replies: 10 comments 21 replies
-
|
To resolve the "ModuleNotFoundError: No module named 'psycopg2'" error during the deployment of Superset using a Helm chart, you should ensure that the correct version of Make sure your Helm chart is updated to include this change, which should resolve the module not found error by ensuring the correct version of To continue talking to Dosu, mention @dosu. Help Dosu learn! Give it feedback: Great Response | Irrelevant Answer | Incorrect Sources | Too Verbose | Hallucination | Other |
Beta Was this translation helpful? Give feedback.
-
|
There is a simple answer if you are hosting it with docker-compose - using the command option. Works a treat - my services is defined: |
Beta Was this translation helpful? Give feedback.
-
|
Hi, got the same thing today, Sept 30th 2025, using latest versions. How is that normal? |
Beta Was this translation helpful? Give feedback.
-
|
same issue as of october-09-2025. |
Beta Was this translation helpful? Give feedback.
-
|
Got the same but always happily used the |
Beta Was this translation helpful? Give feedback.
-
|
Is there an update on this? Thread is almost a year old, and the basic tutorial on the Superset website doesn't work. First off Bitnami has put the upstream postgres/redis images behind a paywall, so have to figure out how to get those from another source and into a helm chart (for someone that has never used Helm before). But now this issue. Following the comments above, I have: Logs from the init-db pod show it was installed: but then it still errors out anyway: If I had to guess, the venv is using a different python than whatever apt is installing the library into. So following the next set of comments, using uv: still errors: This is brutal for someone just trying to figure out what Superset is and whether or not it could be useful. |
Beta Was this translation helpful? Give feedback.
-
|
pls fix this in chart. Getting this on 2025/11/28 |
Beta Was this translation helpful? Give feedback.
-
|
This really needs to be fixed. It is surprising to see such errors from superset! |
Beta Was this translation helpful? Give feedback.
-
|
Please fix this. |
Beta Was this translation helpful? Give feedback.
-
|
up? the script is not a valid workaround in harnessed environment since you will not be allowed to write - so you need to mount an emptydir to work it around and copy files there but it is really an antipattern there to do it at runtime and it slows down the startup for no real gain |
Beta Was this translation helpful? Give feedback.
Uh oh!
There was an error while loading. Please reload this page.
-
Hi,
While deploying super set using helm chart, i am getting "ModuleNotFoundError: No module named 'psycopg2'" in superset-init-db
Beta Was this translation helpful? Give feedback.
All reactions