[GH-ISSUE #395] No module named 'webvirtcloud.settings',when run 'docker build.......'command #246

Closed
opened 2026-02-27 15:57:57 +03:00 by kerem · 2 comments
Owner

Originally created by @lushtech on GitHub (Dec 7, 2020).
Original GitHub issue: https://github.com/retspen/webvirtcloud/issues/395

The steps to reproduce the error

1 step: Run git clone

git clone https://github.com/retspen/webvirtcloud.git

2 step: Run docker build

sudo docker build -t mywebvirtcloud .
The error shows as blow when build running
`Step 11/19 : RUN . venv/bin/activate && python3 manage.py migrate && chown -R www-data:www-data /srv/webvirtcloud
---> Running in 290a72712f56
Traceback (most recent call last):
File "manage.py", line 21, in
main()
......

......

......
ModuleNotFoundError: No module named 'webvirtcloud.settings'
The command '/bin/sh -c . venv/bin/activate && python3 manage.py migrate && chown -R www-data:www-data /srv/webvirtcloud' returned a non-zero code: 1
`

Originally created by @lushtech on GitHub (Dec 7, 2020). Original GitHub issue: https://github.com/retspen/webvirtcloud/issues/395 ### The steps to reproduce the error ### 1 step: Run git clone `git clone https://github.com/retspen/webvirtcloud.git` ### 2 step: Run docker build ` sudo docker build -t mywebvirtcloud .` **The error shows as blow when build running** `Step 11/19 : RUN . venv/bin/activate && python3 manage.py migrate && chown -R www-data:www-data /srv/webvirtcloud ---> Running in 290a72712f56 Traceback (most recent call last): File "manage.py", line 21, in <module> main() ...... ...... ...... ModuleNotFoundError: No module named 'webvirtcloud.settings' The command '/bin/sh -c . venv/bin/activate && python3 manage.py migrate && chown -R www-data:www-data /srv/webvirtcloud' returned a non-zero code: 1 `
kerem closed this issue 2026-02-27 15:57:57 +03:00
Author
Owner

@lushtech commented on GitHub (Dec 7, 2020):

I copy the file webvirtcloud/settings.py.template as settings.py, and set the SECRET_KEY, and the docker build work well.
And then running the container ok base on the image.
My suggestion: add a small section in the READ.md to tell people how to start it simply using docker.

<!-- gh-comment-id:739669203 --> @lushtech commented on GitHub (Dec 7, 2020): I copy the file webvirtcloud/settings.py.template as settings.py, and set the SECRET_KEY, and the docker build work well. And then running the container ok base on the image. My suggestion: add a small section in the READ.md to tell people how to start it simply using docker.
Author
Owner

@catborise commented on GitHub (Dec 7, 2020):

There is a wiki page for docker/podman builds. As you Said we should add a reference to it

<!-- gh-comment-id:739884439 --> @catborise commented on GitHub (Dec 7, 2020): There is a wiki page for docker/podman builds. As you Said we should add a reference to it
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
starred/webvirtcloud#246
No description provided.