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

ModuleNotFoundError: No module named 'bleach' - latest-dev tag (docker image) #24589

Closed
seminip opened this issue Jul 5, 2023 · 9 comments
Closed

Comments

@seminip
Copy link

seminip commented Jul 5, 2023

Using docker to run Apache Supset locally. No issue with other tags such as 2.1.0
But getting this error (following screenshot shows logs of superset-init container) for latest-dev tag:
image
Sorry first time opening a ticket.

@seminip seminip closed this as completed Jul 6, 2023
@matheusbsilva
Copy link
Contributor

@seminip what was the solution?

@seminip
Copy link
Author

seminip commented Jul 11, 2023

@seminip what was the solution?

It got fixed when I completely removed the docker images, associated volumes, and pulled and upped everything again. I also cloned a fresh superset repository and ran npm ci locally as well in superset-frontend.

@roxxrroy
Copy link

roxxrroy commented Jul 12, 2023

Hello @seminip ,
I am doing these step to first clone,install and run the superset code repo in my local system for creating visualization plugin-

git clone https://github.com/apache/superset.git
cd superset
git checkout 2.1.0
docker-compose up

but i am getting error that - superset_worker | ModuleNotFoundError: No module named 'bleach'

What exactly do i need to do ??

Even i asked question here on below link -
https://stackoverflow.com/questions/76668038/facing-issue-in-installation-of-superset2-1-0-for-creating-visualization-plug

@seminip
Copy link
Author

seminip commented Jul 12, 2023

Hi @roxxrroy
Can you try these steps:

(Note that I used node version 16.10.0)
Make sure you are in the branch you want (2.1.0). Go to superset-frontend folder and remove your node modules if you have them.
rm -rf node_modules
then install node modules using:
npm ci

Then:

docker-compose down -v
docker-compose build --no-cache
docker-compose up -d --force-recreate

@roxxrroy
Copy link

Thanks a lot @seminip Above Steps worked ,FInally i was able to open the Superset dashboard in development mode.Now i can proceed with my development work.

@seminip
Copy link
Author

seminip commented Jul 12, 2023

Thanks a lot @seminip Above Steps worked ,FInally i was able to open the Superset dashboard in development mode.Now i can proceed with my development work.

No worries, glad to help! Also, hope you don't mind if I post the answer in your stackoverflow link as well (over there, my username is Jolly Good)

@roxxrroy
Copy link

Yes sure, please add your answer there as well.

@m-usai-almaviva
Copy link

m-usai-almaviva commented Sep 5, 2023

For others getting here from google, the solution for me was adding TAG=2.1.0 before any docker compose up command.

e.g.

TAG=2.1.0 docker compose up -d --force-recreate

From this issue

P.S.: please also don't forget to run the init script, otherwise the default credentials won't work:

TAG=2.1.0 docker compose exec superset bash /app/docker/docker-init.sh

(this command won't work in windows environments, you will have to use dos2unix

More info about this in this issue

@alephpt
Copy link

alephpt commented Sep 17, 2023

none of the above worked for me on 2.1.1 or 2.1.0

simply adding it to to docker/requirements-local.txt fixed it

bleach==6.0.0

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

5 participants