-
Notifications
You must be signed in to change notification settings - Fork 0
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
Setup and documentation #3
Comments
Hi jk, glad you eventually jumped in ;)
|
Like the commits say:
The setup requires to copy and adjust a few lines of postgres statements. Maybe we should supply a setup file similar to your I also removed the Docker part because i'm in no mood right now to test and verify the changes |
The Frankfurt data source simply does not deliver data right now (https://offenedaten.frankfurt.de/dataset/parkdaten-dynamisch). Please check if everything regarding this issue is working so far and then close it if you like. Next time i'll put everything on a branch. Wünsche frohe Festtage und so :D 🌌 |
Haha, have put the wrong number on the commits, they are all supposed to relate to issue #4. |
So, after a long time, I tried to run the server again ;) Unfortunately I wasn't able to run the scraper itself. After installing all dependencies from the
I tried installing
Do you have any idea what I'm missing? |
Okay..., what might be the problem here? For the Just from outside i'd argue you did not follow the steps in the README exactly (:wink:) I did a clean install just to test it. Apart from the wrong version number for jsonschema (which we discussed earlier) all seems fine. i fixed the requirements.txt file. Some scrapers have problems though (heilbronn, hanau, hamburg, and frankfurt still!). |
Okay, I just checked what is installed and the error is really weird. I actually have |
Weird indeed! I'm using python 3.8 locally. The only thing i can imagine is that If calling
which is the correct enved python in my case. It's determined in My env was created with Generally, without calling Can you check that at least the raw scraper is working (without the subprocess inside pa_scrape.py), e.g. with: |
Okay, I just tested your command and it's indeed calling |
I've started a github actions test (PR #8) and it can reproduce the problem. The wrong executable thing has been reported a while ago
Seemed to be version specific at the time but i tested python 3.6 through 3.10 on github and they all behave equally awful. (of course, the test passes nicely when not using a virtualenv) UPDTE: |
* start ghactions tests (this is very likely not going to work) * fix typo * change the file * install required debian packages * fix apt-get command * remove this strange package * add python 3.8, 3.9, 3.10 to test matrix :thumbsup: github, this works! * move tests into virtual env (because that's how it's usually run on a server) * pa_scrape list command fails with exit-code 1 when list could not be retrieved * just test python 3.6 * use sys.prefix before trying sys.executable to find venv python executable (#3) * try "which python" command before attempting to use the useless sys.prefix/executable (#3) * test against python 3.8 - 3.10
Actually fell back to calling "which python" via subprocess. Very strange! Anyhow. The master branch is ready to be tried again on your server. And we have a git workflow now! (gh actions is f*cking cool. i hope the free access will remain for a long time) |
After setting the project up twice now for testing by only using the README the only issue I encountered is fixed in #15. For the time being I don't see any deal breakers so I think we can close this issue. |
I finally found the time to take a deeper look. I tried to run it on Debian 11 without using Docker (as this is what we run our infrastructure on). These are my findings so far:
libgdal-dev
is needed to run, we maybe should add that to the documentation if Docker is not used (together withlibpq-dev
)postgresql-13-postgis-3-scripts
(or the respective package for other postgresql versions)web/scrapers/builtin/requirements.txt
doesn't seem to exist. According to PyPI, only 3.1.1 and 3.2.0 exist, but not 3.2.1. Is there anything that prevents us from using the latest version (4.3.2)? I tried that and for the things I tested, it worked.The text was updated successfully, but these errors were encountered: