Skip to content
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

Build error on python 3.10 #52

Open
antwal opened this issue Jan 2, 2025 · 0 comments
Open

Build error on python 3.10 #52

antwal opened this issue Jan 2, 2025 · 0 comments

Comments

@antwal
Copy link

antwal commented Jan 2, 2025

/var/tmp/pdf-extract-api on main > python3.10 -m venv .venv                                                                                                                                                            at 12:44:16
/var/tmp/pdf-extract-api on main > source .venv/bin/activate                                                                                                                                                   took 3s at 12:44:42

/var/tmp/pdf-extract-api on main > pip install -r app/requirements.txt                                                                                                                              py pdf-extract-api at 12:44:53
Collecting fastapi
  Downloading fastapi-0.115.6-py3-none-any.whl (94 kB)
     ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 94.8/94.8 KB 1.7 MB/s eta 0:00:00
Collecting celery
  Downloading celery-5.4.0-py3-none-any.whl (425 kB)
     ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 426.0/426.0 KB 5.5 MB/s eta 0:00:00
Collecting redis
  Downloading redis-5.2.1-py3-none-any.whl (261 kB)
     ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 261.5/261.5 KB 6.3 MB/s eta 0:00:00
Collecting pytesseract
  Downloading pytesseract-0.3.13-py3-none-any.whl (14 kB)
Collecting opencv-python-headless
  Downloading opencv-python-headless-4.10.0.84.tar.gz (95.1 MB)
     ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 95.1/95.1 MB 20.3 MB/s eta 0:00:00
  Installing build dependencies ... done
  Getting requirements to build wheel ... done
  Preparing metadata (pyproject.toml) ... done
Collecting pdf2image
  Downloading pdf2image-1.17.0-py3-none-any.whl (11 kB)
Collecting ollama
  Downloading ollama-0.4.5-py3-none-any.whl (13 kB)
Collecting uvicorn[standard]
  Downloading uvicorn-0.34.0-py3-none-any.whl (62 kB)
     ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 62.3/62.3 KB 3.4 MB/s eta 0:00:00
Collecting requests
  Downloading requests-2.32.3-py3-none-any.whl (64 kB)
     ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 64.9/64.9 KB 3.4 MB/s eta 0:00:00
Collecting python-multipart
  Downloading python_multipart-0.0.20-py3-none-any.whl (24 kB)
Collecting pdftext==0.3.7
  Downloading pdftext-0.3.7-py3-none-any.whl (24 kB)
Collecting argparse
  Downloading argparse-1.4.0-py2.py3-none-any.whl (23 kB)
Collecting google-api-python-client
  Downloading google_api_python_client-2.156.0-py2.py3-none-any.whl (12.7 MB)
     ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 12.7/12.7 MB 50.7 MB/s eta 0:00:00
Collecting google-auth-httplib2
  Downloading google_auth_httplib2-0.2.0-py2.py3-none-any.whl (9.3 kB)
Collecting google-auth-oauthlib
  Downloading google_auth_oauthlib-1.2.1-py2.py3-none-any.whl (24 kB)
Collecting transformers==4.45.2
  Downloading transformers-4.45.2-py3-none-any.whl (9.9 MB)
     ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 9.9/9.9 MB 54.8 MB/s eta 0:00:00
Collecting surya-ocr==0.4.14
  Downloading surya_ocr-0.4.14-py3-none-any.whl (94 kB)
     ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 94.5/94.5 KB 4.3 MB/s eta 0:00:00
Collecting marker-pdf==0.2.6
  Downloading marker_pdf-0.2.6-py3-none-any.whl (61 kB)
     ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 61.9/61.9 KB 3.8 MB/s eta 0:00:00
Collecting boto3
  Downloading boto3-1.35.90-py3-none-any.whl (139 kB)
     ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 139.2/139.2 KB 8.6 MB/s eta 0:00:00
Collecting pydantic<3.0.0,>=2.7.1
  Downloading pydantic-2.10.4-py3-none-any.whl (431 kB)
     ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 431.8/431.8 KB 19.9 MB/s eta 0:00:00
Collecting pydantic-settings<3.0.0,>=2.2.1
  Downloading pydantic_settings-2.7.1-py3-none-any.whl (29 kB)
Collecting pypdfium2<5.0.0,>=4.29.0
  Downloading pypdfium2-4.30.1-py3-none-macosx_10_13_x86_64.whl (2.9 MB)
     ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 2.9/2.9 MB 44.3 MB/s eta 0:00:00
Collecting scikit-learn<2.0.0,>=1.4.2
  Downloading scikit_learn-1.6.0-cp310-cp310-macosx_10_9_x86_64.whl (12.1 MB)
     ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 12.1/12.1 MB 48.1 MB/s eta 0:00:00
Collecting huggingface-hub<1.0,>=0.23.2
  Downloading huggingface_hub-0.27.0-py3-none-any.whl (450 kB)
     ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 450.5/450.5 KB 21.3 MB/s eta 0:00:00
Collecting regex!=2019.12.17
  Downloading regex-2024.11.6-cp310-cp310-macosx_10_9_x86_64.whl (287 kB)
     ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 287.7/287.7 KB 14.0 MB/s eta 0:00:00
Collecting pyyaml>=5.1
  Downloading PyYAML-6.0.2-cp310-cp310-macosx_10_9_x86_64.whl (184 kB)
     ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 184.2/184.2 KB 9.5 MB/s eta 0:00:00
Collecting packaging>=20.0
  Using cached packaging-24.2-py3-none-any.whl (65 kB)
Collecting filelock
  Downloading filelock-3.16.1-py3-none-any.whl (16 kB)
Collecting safetensors>=0.4.1
  Downloading safetensors-0.4.5-cp310-cp310-macosx_10_12_x86_64.whl (392 kB)
     ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 392.3/392.3 KB 18.6 MB/s eta 0:00:00
Collecting numpy>=1.17
  Using cached numpy-2.2.1-cp310-cp310-macosx_10_9_x86_64.whl (21.2 MB)
Collecting tqdm>=4.27
  Downloading tqdm-4.67.1-py3-none-any.whl (78 kB)
     ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 78.5/78.5 KB 4.2 MB/s eta 0:00:00
Collecting tokenizers<0.21,>=0.20
  Downloading tokenizers-0.20.3-cp310-cp310-macosx_10_12_x86_64.whl (2.7 MB)
     ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 2.7/2.7 MB 18.3 MB/s eta 0:00:00
Collecting opencv-python<5.0.0.0,>=4.9.0.80
  Downloading opencv-python-4.10.0.84.tar.gz (95.1 MB)
     ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 95.1/95.1 MB 20.0 MB/s eta 0:00:00
  Installing build dependencies ... done
  Getting requirements to build wheel ... done
  Preparing metadata (pyproject.toml) ... done
Collecting tabulate<0.10.0,>=0.9.0
  Downloading tabulate-0.9.0-py3-none-any.whl (35 kB)
Collecting pillow<11.0.0,>=10.2.0
  Downloading pillow-10.4.0-cp310-cp310-macosx_10_10_x86_64.whl (3.5 MB)
     ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 3.5/3.5 MB 10.1 MB/s eta 0:00:00
Collecting ftfy<7.0.0,>=6.1.3
  Downloading ftfy-6.3.1-py3-none-any.whl (44 kB)
     ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 44.8/44.8 KB 2.6 MB/s eta 0:00:00
Collecting filetype<2.0.0,>=1.2.0
  Downloading filetype-1.2.0-py2.py3-none-any.whl (19 kB)
Collecting python-dotenv<2.0.0,>=1.0.0
  Downloading python_dotenv-1.0.1-py3-none-any.whl (19 kB)
INFO: pip is looking at multiple versions of transformers to determine which version is compatible with other requirements. This could take a while.
INFO: pip is looking at multiple versions of <Python from Requires-Python> to determine which version is compatible with other requirements. This could take a while.
INFO: pip is looking at multiple versions of pdftext to determine which version is compatible with other requirements. This could take a while.
ERROR: Could not find a version that satisfies the requirement torch<3.0.0,>=2.3.0 (from surya-ocr) (from versions: 1.11.0, 1.12.0, 1.12.1, 1.13.0, 1.13.1, 2.0.0, 2.0.1, 2.1.0, 2.1.1, 2.1.2, 2.2.0, 2.2.1, 2.2.2)
ERROR: No matching distribution found for torch<3.0.0,>=2.3.0
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant