Forums

pip install -r requirements.txt fails with wheel trying to build something related to SQLite

My app now lives locallly, developed with VS Code IDE. Local and gitub repos I attempted to deploy on a pythonanywhere instance. My local code is running under python 3.12.13 Pythonanwhere is at 3.13.1 (which may be part of the problem

From a BASH console:

  • I did a github clone
  • Set up a virtual environment.
  • went to the app main directory
  • ran pip install -r requirements.txt

All ideas gratefully accepted.

Here's the detailed error message:

Looking in links: /usr/share/pip-wheels Collecting appdirs==1.4.4 (from -r requirements.txt (line 1)) Using cached appdirs-1.4.4-py2.py3-none-any.whl.metadata (9.0 kB) Collecting apsw==3.43.0.0 (from -r requirements.txt (line 2)) Using cached apsw-3.43.0.0.tar.gz (386 kB) Installing build dependencies ... done Getting requirements to build wheel ... error error: subprocess-exited-with-error

× Getting requirements to build wheel did not run successfully. │ exit code: 1 ╰─> [45 lines of output] /tmp/pip-build-env-200j3yb6/overlay/lib/python3.13/site-packages/setuptools/dist.py:759: SetuptoolsDeprecationWarning: License classifiers are deprecated. !!

          ********************************************************************************
          Please consider removing the following classifiers in favor of a SPDX license expression:

          License :: OSI Approved

          See https://packaging.python.org/en/latest/guides/writing-pyproject-toml/#license for details.
          ********************************************************************************

  !!
    self._finalize_license_expression()
  running egg_info
  writing apsw.egg-info/PKG-INFO
  writing dependency_links to apsw.egg-info/dependency_links.txt
  writing top-level names to apsw.egg-info/top_level.txt
    Getting the SQLite amalgamation
      Fetching https://sqlite.org/2023/sqlite-autoconf-3430000.tar.gz
         Error  <urlopen error Tunnel connection failed: 403 Forbidden>
          Try # 2
         Error  <urlopen error Tunnel connection failed: 403 Forbidden>
          Try # 3
         Error  <urlopen error Tunnel connection failed: 403 Forbidden>
          Try # 4
         Error  <urlopen error Tunnel connection failed: 403 Forbidden>
          Try # 5
          [Python has https issues? - using http instead]
         Error  HTTP Error 403: Forbidden
          Try # 6
          [Python has https issues? - using http instead]
         Error  HTTP Error 403: Forbidden
          Try # 7
          [Python has https issues? - using http instead]
         Error  HTTP Error 403: Forbidden
          Try # 8
          [Python has https issues? - using http instead]
         Error  HTTP Error 403: Forbidden
          Try # 9
          [Python has https issues? - using http instead]
         Error  HTTP Error 403: Forbidden
          Try # 10
          [Python has https issues? - using http instead]
         Error  HTTP Error 403: Forbidden
  error: HTTP Error 403: Forbidden
  [end of output]