-
Notifications
You must be signed in to change notification settings - Fork 383
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
/usr/local/bin/python: can't find '__main__' module in '/usr/src/app/run.py' #77
Comments
First of all, this should not be accepted in any other case, because you didn't follow the template in the bug report, but I'll leave this open for now, because it is the first question about docker-compose.
|
I used portainer with the "add stack" function |
This doesn't tell anything. I asked two questions. At least put an effort to answer them properly. 😒 You have to be specific if you want people to help you. What exact commands and
|
Paste the contents of your |
What is strange, that on your screenshot |
This is the file I put inside the run.py folder.
|
It is a folder, it got created automatically, and when I replace it with the run.py the docker container doesn't work ( the console and logs are blank) |
What exactly did you paste? Creating a folder and naming it "run.py" - that's pretty funny, but you should have told about it in your first post. So much misunderstanding arises because you hid this fact. 😒 I have to pull information out of you bit by bit, that's not cool. 😒 That's why there is a template for the bug report. |
Then you have to find out how it was created automatically without your intention. A bit of sarcasm. |
From what I've read here: https://stackoverflow.com/questions/42248198/how-to-mount-a-single-file-in-a-volume |
Well, are you going to answer my question? |
First, copy this command and put it in terminal
Then, follow the tutorial Then, deploy it. After deploy it, use some kind of ssh file manager such as WinSCP to go to Hope this help! |
@rdavydov I know this is off topic could look at my portainer app template Forked Pi hosted It is to make user for easy deploy and let me know what I have add to make you agree on it Edited : Im new to this stuff soo and I hope you can help me improve. |
@Kazushi-0 Maybe it is a bit excessive for me to check every possible way to run the miner. There are dozens of services that the user can use. Do you have any specific questions that can be discussed and answered by the community? |
@Kazushi-0 As long as you leave the credits and don't violate the license - it is fine with me. |
the problem was in the example from your docker compose: this will automatically create a empty directory with the name run.py if you change to absolute patch in the compose yaml it will work: |
Describe the bug
Installed the docker container with docker compose.
Started the container and it crashed with error:
/usr/local/bin/python: can't find 'main' module in '/usr/src/app/run.py'
Docker version:
Client: Docker Engine - Community
Version: 20.10.17
API version: 1.41
Go version: go1.17.11
Git commit: 100c701
Built: Mon Jun 6 23:02:46 2022
OS/Arch: linux/amd64
Context: default
Experimental: true
Server: Docker Engine - Community
Engine:
Version: 20.10.17
API version: 1.41 (minimum version 1.12)
Go version: go1.17.11
Git commit: a89b842
Built: Mon Jun 6 23:00:51 2022
OS/Arch: linux/amd64
Experimental: false
containerd:
Version: 1.6.7
GitCommit: 0197261a30bf81f1ee8e6a4dd2dea0ef95d67ccb
runc:
Version: 1.1.3
GitCommit: v1.1.3-0-g6724737
docker-init:
Version: 0.19.0
GitCommit: de40ad0
Docker compose version:
docker-compose version 1.29.2, build 5becea4c docker-py version: 5.0.0 CPython version: 3.7.10 OpenSSL version: OpenSSL 1.1.0l 10 Sep 2019
The text was updated successfully, but these errors were encountered: