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

Issue when running from docker. #128

Open
kwilliams147 opened this issue Jun 20, 2023 · 5 comments
Open

Issue when running from docker. #128

kwilliams147 opened this issue Jun 20, 2023 · 5 comments

Comments

@kwilliams147
Copy link

I'm getting this issue when running with docker compose.

`docker-compose up -d
[+] Building 2.8s (12/13)
=> [plane-notify internal] load build definition from Dockerfile 0.0s
=> => transferring dockerfile: 757B 0.0s
=> [plane-notify internal] load .dockerignore 0.0s
=> => transferring context: 2B 0.0s
=> [plane-notify internal] load metadata for docker.io/library/python:3 1.8s
=> [plane-notify internal] load build context 0.0s
=> => transferring context: 3.29MB 0.0s
=> [plane-notify 1/9] FROM docker.io/library/python:3@sha256:2dd2f9000021839e8fba0debd8a2308c7e26f95fdfbc0c728ee 0.0s
=> CACHED [plane-notify 2/9] WORKDIR /plane-notify 0.0s
=> CACHED [plane-notify 3/9] RUN mkdir /home/plane-notify 0.0s
=> CACHED [plane-notify 4/9] RUN wget -q -O - https://dl-ssl.google.com/linux/linux_signing_key.pub | apt-key ad 0.0s
=> CACHED [plane-notify 5/9] RUN apt-get update && apt-get -y install --no-install-recommends google-chrome- 0.0s
=> CACHED [plane-notify 6/9] RUN pip install pipenv 0.0s
=> CACHED [plane-notify 7/9] COPY Pipfile* . 0.0s
=> ERROR [plane-notify 8/9] RUN pipenv install 0.9s

[plane-notify 8/9] RUN pipenv install:
#0 0.826 Warning: Python 3.9 was not found on your system...
#0 0.828 Neither 'pyenv' nor 'asdf' could be found to install Python.
#0 0.828 You can specify specific versions of Python with:
#0 0.828 $ pipenv --python path/to/python


failed to solve: process "/bin/sh -c pipenv install" did not complete successfully: exit code: 1`

@kwilliams147
Copy link
Author

I got it to build but now I am getting this error about the aircrafts.json file.

Roboto-Regular.ttf does not exist downloading now
Successfully got Roboto-Regular.ttf
airports.csv does not exist downloading now
Successfully got airports.csv
regions.csv does not exist downloading now
Successfully got regions.csv
Mictronics_db.zip does not exist downloading now
Successfully got Mictronics_db.zip
Traceback (most recent call last):
  File "/plane-notify/__main__.py", line 49, in <module>
    if os.path.isfile("./dependencies/" + required_files[4][0]) and not os.path.isfile("./dependencies/aircrafts.json"):
IndexError: list index out of range

@dcopso
Copy link

dcopso commented Sep 4, 2023

#0 0.826 Warning: Python 3.9 was not found on your system...
#0 0.828 Neither 'pyenv' nor 'asdf' could be found to install Python.
#0 0.828 You can specify specific versions of Python with:
#0 0.828 $ pipenv --python path/to/python

The fix for the "3.9 was not found" error is to modify the Dockerfile: change FROM python:3 to FROM python:3.9. Unfortunately, this workaround does not fix the rest of the problems.

@kwilliams147
Copy link
Author

#0 0.826 Warning: Python 3.9 was not found on your system...
#0 0.828 Neither 'pyenv' nor 'asdf' could be found to install Python.
#0 0.828 You can specify specific versions of Python with:
#0 0.828 $ pipenv --python path/to/python

The fix for the "3.9 was not found" error is to modify the Dockerfile: change FROM python:3 to FROM python:3.9. Unfortunately, this workaround does not fix the rest of the problems.

Correct I was able to get it to finally build and run but it would never work.

@N47H4N
Copy link

N47H4N commented Sep 8, 2023

#0 0.826 Warning: Python 3.9 was not found on your system...
#0 0.828 Neither 'pyenv' nor 'asdf' could be found to install Python.
#0 0.828 You can specify specific versions of Python with:
#0 0.828 $ pipenv --python path/to/python

The fix for the "3.9 was not found" error is to modify the Dockerfile: change FROM python:3 to FROM python:3.9. Unfortunately, this workaround does not fix the rest of the problems.

Correct I was able to get it to finally build and run but it would never work.

Same problem here, I managed to start the docker by editing main.py line 49 & 52.

From required_files[4][0] to required_files[3][0]

@kwilliams147
Copy link
Author

kwilliams147 commented Sep 8, 2023 via email

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

3 participants