plane-notify
plane-notify copied to clipboard
Issue when running from docker.
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`
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
#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.
#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
toFROM 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.
#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
toFROM 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]
Were you able to start actually tracking?
On Fri, Sep 8, 2023 at 09:01 N47H4N @.***> wrote:
#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]
— Reply to this email directly, view it on GitHub https://github.com/Jxck-S/plane-notify/issues/128#issuecomment-1711722709, or unsubscribe https://github.com/notifications/unsubscribe-auth/AAV6B6D7OKRPCDQQCGSDEO3XZMQLZANCNFSM6AAAAAAZMWEQNU . You are receiving this because you authored the thread.Message ID: @.***>