Closed esaumell closed 9 months ago
We also tried the instructions on a fresh Debian 11 but when running poetry install .
we got:
The currently activated Python version 3.9.2 is not supported by the project (^3.10).
Trying to find and use a compatible version.
Poetry was unable to find a compatible version. If you have one, you can explicitly use it via the "env use" command.
Searching for a solution, I found that Ubuntu 22.04 comes with python 3.10 preinstalled, so I gave it a try. After installing python3-dev
the command poetry install --with dev
works without errors.
Hey @esaumell, thank for opening an issue! I'm working on improving setup notes to be more beginner friendly so thanks for the feedback and this should be addressed in the next few commits :)
Documentation and project files have been improved to address these issues :+1:
~$ rm -fr scrapfly-scrapers
~$ git clone https://github.com/scrapfly/scrapfly-scrapers.git
Cloning into 'scrapfly-scrapers'...
remote: Enumerating objects: 618, done.
remote: Counting objects: 100% (236/236), done.
remote: Compressing objects: 100% (167/167), done.
remote: Total 618 (delta 136), reused 143 (delta 65), pack-reused 382
Receiving objects: 100% (618/618), 951.42 KiB | 8.06 MiB/s, done.
Resolving deltas: 100% (324/324), done.
~$ cd scrapfly-scrapers/bookingcom-scraper
~/scrapfly-scrapers/bookingcom-scraper$ poetry install .
No arguments expected for "install" command, got "."
On step 3
~/scrapfly-scrapers/bookingcom-scraper$ poetry run python run.py
and ~/scrapfly-scrapers/bookingcom-scraper$ poetry install --with dev
work fine.
On step 4
~/scrapfly-scrapers/bookingcom-scraper$ poetry run pytest test.py
gives 4 deprecation warnings about invalid escape sequences. But I guess that's ok.
$ poetry run pytest test.py -k test_hotel_scraping
$ poetry run pytest test.py -k test_search_scraping
Are also ok, but would be nice to know what does that run test do.
Hi there,
I'm having trouble following instructions from https://github.com/scrapfly/scrapfly-scrapers/tree/main/bookingcom-scraper At point 2 when trying
git clone git@github.com:scrapfly/scrapfly-scrapers.git
I got:
As a workaround I did
git clone https://github.com/scrapfly/scrapfly-scrapers.git
Next step is
poetry install .
I got:-bash: poetry: command not found
I go to https://scrapfly.io/blog/how-to-scrape-bookingcom/ and as stated, I try
pip install "httpx[http2,brotli]" parsel
I got:-bash: pip: command not found
As a workaround I did
sudo apt install python3-pip
and thenpip install "httpx[http2,brotli]" parsel
I got:
After searching how to install poetry I did:
curl -sSL https://install.python-poetry.org | python3 -
, added Poetry's bin directory in my PATH environment and tried againpoetry install .
I got:I decided to go for step 3:
poetry run python run.py
I got:
So brave and I went for step 4:
poetry install --with dev
I got:As stated on the output I tried
pip wheel --use-pep517 "cchardet (==2.1.7)"
I got:This is running on a fresh Debian 12 setup and I have installed poetry 1.6.1 Searching for the problem I'm suggested to try to downgrade poetry, so I try
poetry self update 1.4
butpoetry install --with dev
fails again on cchardetI also tried installing
python3-dev
without success. I don't know where to go from here. Any help would be appreciated.