omkarcloud / botasaurus

The All in One Framework to build Awesome Scrapers.
https://www.omkar.cloud/botasaurus/
MIT License
1.16k stars 104 forks source link

Docker build error #52

Closed Amatefinde closed 4 months ago

Amatefinde commented 5 months ago

Hello. When i try to build project with botasaurus into docker image i get this error.

45.73   ChefBuildError
45.73
45.73   Backend subprocess exited when trying to invoke get_requires_for_build_wheel
45.73
45.73   You do not have node installed on your system, Kindly install it by visiting https://nodejs.org/
45.73
45.73
45.73   at /usr/local/lib/python3.11/site-packages/poetry/installation/chef.py:164 in _prepare
45.74       160│
45.74       161│                 error = ChefBuildError("\n\n".join(message_parts))
45.74       162│
45.74       163│             if error is not None:
45.74     → 164│                 raise error from None
45.74       165│
45.74       166│             return path
45.74       167│
45.74       168│     def _prepare_sdist(self, archive: Path, destination: Path | None = None) -> Path:
45.74
45.74 Note: This error originates from the build backend, and is likely not a problem with poetry but with botasaurus-proxy-authentication (1.0.8) not supporting PEP 517 builds. You 
can verify this by running 'pip wheel --no-cache-dir --use-pep517 "botasaurus-proxy-authentication (==1.0.8)"'.

is this okay? can i just use pip wheel --no-cache-dir --use-pep517 "botasaurus-proxy-authentication (==1.0.8) ??

Chetan11-dev commented 4 months ago

I recommend using https://github.com/omkarcloud/botasaurus-starter, it comes with docker image that can successfully build botasaurus.