parser_avito icon indicating copy to clipboard operation
parser_avito copied to clipboard

Парсер с Bat не запускается

Open Stavr90 opened this issue 3 months ago • 1 comments

При попытке запустить bat выдает сообщение Script finished. See run.log for details. Для продолжения нажмите любую клавишу . . .

Image

В файле лога следующее :

=== RUN STARTED at 06.11.2025 22:15:51,56 === Virtual environment already exists. Activated virtual environment: C:\parser_avito-master.venv\Scripts\python.exe C:\Users\Admin\AppData\Local\Programs\Python\Python315\python.exe Package Version


pip 25.3 Installing dependencies from requirements.txt... Requirement already satisfied: pip in c:\parser_avito-master.venv\lib\site-packages (25.3) Collecting beautifulsoup4==4.13.4 (from -r requirements.txt (line 1)) Using cached beautifulsoup4-4.13.4-py3-none-any.whl.metadata (3.8 kB) Collecting curl_cffi (from -r requirements.txt (line 2)) Using cached curl_cffi-0.13.0-cp39-abi3-win_amd64.whl.metadata (13 kB) Collecting loguru==0.7.0 (from -r requirements.txt (line 3)) Using cached loguru-0.7.0-py3-none-any.whl.metadata (22 kB) Collecting openpyxl==3.1.5 (from -r requirements.txt (line 4)) Using cached openpyxl-3.1.5-py2.py3-none-any.whl.metadata (2.5 kB) Collecting playwright==1.52.0 (from -r requirements.txt (line 5)) Using cached playwright-1.52.0-py3-none-win_amd64.whl.metadata (3.5 kB) Collecting playwright-stealth==2.0.0 (from -r requirements.txt (line 6)) Using cached playwright_stealth-2.0.0-py3-none-any.whl.metadata (4.0 kB) Collecting pydantic==2.9.2 (from -r requirements.txt (line 7)) Using cached pydantic-2.9.2-py3-none-any.whl.metadata (149 kB) Collecting pyexcel==0.7.1 (from -r requirements.txt (line 8)) Using cached pyexcel-0.7.1-py2.py3-none-any.whl.metadata (63 kB) Collecting pyexcel-io==0.6.7 (from -r requirements.txt (line 9)) Using cached pyexcel_io-0.6.7-py2.py3-none-any.whl.metadata (26 kB) Collecting pyexcel-xlsx==0.6.0 (from -r requirements.txt (line 10)) Using cached pyexcel_xlsx-0.6.0-py2.py3-none-any.whl.metadata (16 kB) Collecting PyYAML==6.0.2 (from -r requirements.txt (line 11)) Using cached pyyaml-6.0.2.tar.gz (130 kB) Installing build dependencies: started Installing build dependencies: finished with status 'done' Getting requirements to build wheel: started Getting requirements to build wheel: finished with status 'done' Preparing metadata (pyproject.toml): started Preparing metadata (pyproject.toml): finished with status 'done' Collecting requests==2.32.3 (from -r requirements.txt (line 12)) Using cached requests-2.32.3-py3-none-any.whl.metadata (4.6 kB) Collecting tomli_w==1.2.0 (from -r requirements.txt (line 13)) Using cached tomli_w-1.2.0-py3-none-any.whl.metadata (5.7 kB) Collecting tzdata==2025.2 (from -r requirements.txt (line 14)) Using cached tzdata-2025.2-py2.py3-none-any.whl.metadata (1.4 kB) Collecting tzlocal==5.3.1 (from -r requirements.txt (line 15)) Using cached tzlocal-5.3.1-py3-none-any.whl.metadata (7.6 kB) Collecting flet==0.24.1 (from -r requirements.txt (line 16)) Using cached flet-0.24.1-py3-none-win_amd64.whl.metadata (3.2 kB) Collecting httpx (from -r requirements.txt (line 17)) Using cached httpx-0.28.1-py3-none-any.whl.metadata (7.1 kB) Collecting soupsieve>1.2 (from beautifulsoup4==4.13.4->-r requirements.txt (line 1)) Using cached soupsieve-2.8-py3-none-any.whl.metadata (4.6 kB) Collecting typing-extensions>=4.0.0 (from beautifulsoup4==4.13.4->-r requirements.txt (line 1)) Using cached typing_extensions-4.15.0-py3-none-any.whl.metadata (3.3 kB) Collecting colorama>=0.3.4 (from loguru==0.7.0->-r requirements.txt (line 3)) Using cached colorama-0.4.6-py2.py3-none-any.whl.metadata (17 kB) Collecting win32-setctime>=1.0.0 (from loguru==0.7.0->-r requirements.txt (line 3)) Using cached win32_setctime-1.2.0-py3-none-any.whl.metadata (2.4 kB) Collecting et-xmlfile (from openpyxl==3.1.5->-r requirements.txt (line 4)) Using cached et_xmlfile-2.0.0-py3-none-any.whl.metadata (2.7 kB) Collecting pyee<14,>=13 (from playwright==1.52.0->-r requirements.txt (line 5)) Using cached pyee-13.0.0-py3-none-any.whl.metadata (2.9 kB) Collecting greenlet<4.0.0,>=3.1.1 (from playwright==1.52.0->-r requirements.txt (line 5)) Using cached greenlet-3.2.4.tar.gz (188 kB) Installing build dependencies: started Installing build dependencies: finished with status 'done' Getting requirements to build wheel: started Getting requirements to build wheel: finished with status 'done' Preparing metadata (pyproject.toml): started Preparing metadata (pyproject.toml): finished with status 'done' Collecting annotated-types>=0.6.0 (from pydantic==2.9.2->-r requirements.txt (line 7)) Using cached annotated_types-0.7.0-py3-none-any.whl.metadata (15 kB) Collecting pydantic-core==2.23.4 (from pydantic==2.9.2->-r requirements.txt (line 7)) Using cached pydantic_core-2.23.4.tar.gz (402 kB) Installing build dependencies: started Installing build dependencies: finished with status 'done' Getting requirements to build wheel: started Getting requirements to build wheel: finished with status 'done' Installing backend dependencies: started Installing backend dependencies: finished with status 'done' Preparing metadata (pyproject.toml): started Preparing metadata (pyproject.toml): finished with status 'error' error: subprocess-exited-with-error

× Preparing metadata (pyproject.toml) did not run successfully. │ exit code: 1 ╰─> [23 lines of output] Python reports SOABI: cp315-win_amd64 Computed rustc target triple: x86_64-pc-windows-msvc Installation directory: C:\Users\Admin\AppData\Local\puccinialin\puccinialin\Cache Rustup already downloaded Installing rust to C:\Users\Admin\AppData\Local\puccinialin\puccinialin\Cache\rustup warn: It looks like you have an existing rustup settings file at: warn: C:\Users\Admin.rustup\settings.toml warn: Rustup will install the default toolchain as specified in the settings file, warn: instead of the one inferred from the default host triple. warn: installing msvc toolchain without its prerequisites info: profile set to 'minimal' info: default host triple is x86_64-pc-windows-msvc warn: Updating existing toolchain, profile choice will be ignored info: syncing channel updates for 'stable-x86_64-pc-windows-msvc' info: default toolchain set to 'stable-x86_64-pc-windows-msvc' Checking if cargo is installed

  Cargo, the Rust package manager, is not installed or is not on PATH.
  This package requires Rust and Cargo to compile extensions. Install it through
  the system's package manager or via https://rustup.rs/
  
  Checking for Rust toolchain....
  Rust not found, installing into a temporary directory
  [end of output]

note: This error originates from a subprocess, and is likely not a problem with pip. error: metadata-generation-failed

× Encountered error while generating package metadata. ╰─> pydantic-core

note: This is an issue with the package mentioned above, not pip. hint: See above for details. Running AvitoParser.py... Traceback (most recent call last): File "C:\parser_avito-master\AvitoParser.py", line 5, in import flet as ft ModuleNotFoundError: No module named 'flet' AvitoParser.py finished.

=== RUN ENDED at 06.11.2025 22:16:16,28 ===

Image

Stavr90 avatar Nov 06 '25 19:11 Stavr90

Попробуйте запустить через exe. Скачать можно в релизах

Duff89 avatar Nov 06 '25 21:11 Duff89