seanblanchfield / tfi-gtfs Goto Github PK
View Code? Open in Web Editor NEWTransport for Ireland API server making the GTFS-R feed more convenient to use.
License: Apache License 2.0
Transport for Ireland API server making the GTFS-R feed more convenient to use.
License: Apache License 2.0
I came across your project last week and have been running in home assistant. It's great to get the bus info on my dashboard again. Thanks for all the hard work on this.
Hi,
I am pretty new in docker and github so I am sorry if I am missing any information.
I am trying to run this project into a docker container.
After cloning the repo into the /opt folder of my ubuntu machine, I move to the tfi-gtfs folder and, when running the command docker build --tag tfi-gtfs .
this is the output that I get:
[+] Building 3.1s (10/10) FINISHED docker:default
=> [internal] load build definition from Dockerfile 0.0s
=> => transferring dockerfile: 396B 0.0s
=> [internal] load .dockerignore 0.0s
=> => transferring context: 2B 0.0s
=> [internal] load metadata for docker.io/library/redis:alpine 0.5s
=> [internal] load build context 0.0s
=> => transferring context: 2.70MB 0.0s
=> [1/6] FROM docker.io/library/redis:alpine@sha256:090276da2603db19b154602c374f505d94c10ea57e9749fc3e68e955284bf0fd 0.0s
=> CACHED [2/6] RUN apk add --no-cache python3 py3-pip wget unzip 0.0s
=> CACHED [3/6] WORKDIR /app 0.0s
=> [4/6] ADD . /app/ 0.1s
=> [5/6] RUN rm -rf /app/data/* 0.3s
=> ERROR [6/6] RUN python3 -m pip install -r requirements.txt 2.1s
------
> [6/6] RUN python3 -m pip install -r requirements.txt:
1.756 error: externally-managed-environment
1.756
1.756 × This environment is externally managed
1.756 ╰─>
1.756 The system-wide python installation should be maintained using the system
1.756 package manager (apk) only.
1.756
1.756 If the package in question is not packaged already (and hence installable via
1.756 "apk add py3-somepackage"), please consider installing it inside a virtual
1.756 environment, e.g.:
1.756
1.756 python3 -m venv /path/to/venv
1.756 . /path/to/venv/bin/activate
1.756 pip install mypackage
1.756
1.756 To exit the virtual environment, run:
1.756
1.756 deactivate
1.756
1.756 The virtual environment is not deleted, and can be re-entered by re-sourcing
1.756 the activate file.
1.756
1.756 To automatically manage virtual environments, consider using pipx (from the
1.756 pipx package).
1.756
1.756 note: If you believe this is a mistake, please contact your Python installation or OS distribution provider. You can override this, at the risk of breaking your Python installation or OS, by passing --break-system-packages.
1.756 hint: See PEP 668 for the detailed specification.
------
Dockerfile:20
--------------------
18 | ADD . /app/
19 | RUN rm -rf /app/data/*
20 | >>> RUN python3 -m pip install -r requirements.txt
21 | ENTRYPOINT [ "/app/entrypoint.sh" ]
22 |
--------------------
ERROR: failed to solve: process "/bin/sh -c python3 -m pip install -r requirements.txt" did not complete successfully: exit code: 1
Am I doing something wrong?
Thanks in advance
A HTTP 502
"bad gateway" error was not caught appropriately in the check_for_static_data()
function. This appears to have crashed the thread responsible for running scheduled jobs like checking for new downloads and for new live info. This has the effect of stopping live information from being incorporated into the results returned from the feed. These errors should be handled gracefully, with the thread retrying on an exponential back off (as is currently done with the live feed).
Traceback (most recent call last):
File "/usr/lib/python3.11/threading.py", line 1045, in _bootstrap_inner
self.run()
File "/usr/lib/python3.11/threading.py", line 982, in run
self._target(*self._args, **self._kwargs)
File "/app/server.py", line 209, in refresh
if check_for_new_static_data():
^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/app/gtfs.py", line 508, in check_for_new_static_data
with urllib.request.urlopen(
^^^^^^^^^^^^^^^^^^^^^^^
File "/usr/lib/python3.11/urllib/request.py", line 216, in urlopen
return opener.open(url, data, timeout)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/usr/lib/python3.11/urllib/request.py", line 525, in open
response = meth(req, response)
^^^^^^^^^^^^^^^^^^^
File "/usr/lib/python3.11/urllib/request.py", line 634, in http_response
response = self.parent.error(
^^^^^^^^^^^^^^^^^^
File "/usr/lib/python3.11/urllib/request.py", line 563, in error
return self._call_chain(*args)
^^^^^^^^^^^^^^^^^^^^^^^
File "/usr/lib/python3.11/urllib/request.py", line 496, in _call_chain
result = func(*args)
^^^^^^^^^^^
File "/usr/lib/python3.11/urllib/request.py", line 643, in http_error_default
raise HTTPError(req.full_url, code, msg, hdrs, fp)
urllib.error.HTTPError: HTTP Error 502: Bad Gateway
A declarative, efficient, and flexible JavaScript library for building user interfaces.
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google ❤️ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.