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

Run error after pull latest, "ModuleNotFoundError: No module named 'drf_spectacular'". #312

Closed
uboznikov opened this issue Jan 20, 2021 · 6 comments

Comments

@uboznikov
Copy link

Hello,

I pulled latest and ran with Docker Compose, getting the error below:

image

@sbs2001
Copy link
Collaborator

sbs2001 commented Jan 21, 2021

@uboznikov I just did a fresh docker-compose setup to reproduce the error, but didn't encounter anything.

Recently the project switched from drf-yasg to drf-spectacular for api doc generation. So a stale docker image might be the issue here ?

Could you try deleting the docker image and retry fresh ?

@uboznikov
Copy link
Author

@sbs2001 That solves it, thanks.

Could you try deleting the docker image and retry fresh ?

Perhaps this could be added in the doc?

@sbs2001
Copy link
Collaborator

sbs2001 commented Jan 23, 2021

This is kind of rare case where the image was built, and then upstream had dependency changes. A small note about this makes sense :)

@pombredanne
Copy link
Member

There must be a better way than deleting the image

@sbs2001
Copy link
Collaborator

sbs2001 commented Feb 18, 2021

@pombredanne a better way would be to do

sudo docker-compose up
sudo docker-compose exec web bash
pip install -r requirements.txt

@Pushpit07
Copy link
Contributor

#427 closes this issue

@sbs2001 sbs2001 closed this as completed in f254b0d Apr 5, 2021
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

4 participants