I can't install SQLAlchemy via the package manager

When I try to install SQLAlchemy using Replit’s package manager, the following error shows up on the console (and the package is not added).

Replit: Updating package configuration

--> poetry add 'SQLAlchemy 2.0.15'

Updating dependencies
Resolving dependencies...

  SolverProblemError

  Because no versions of replit match >3.2.4,<3.2.5 || >3.2.5,<3.2.6 || >3.2.6,<3.2.7 || >3.2.7,<3.2.8 || >3.2.8,<3.3.0 || >3.3.0,<4.0.0
   and replit (3.2.4) depends on typing_extensions (>=3.7.4,<4.0.0), replit (>=3.2.4,<3.2.5 || >3.2.5,<3.2.6 || >3.2.6,<3.2.7 || >3.2.7,<3.2.8 || >3.2.8,<3.3.0 || >3.3.0,<4.0.0) requires typing_extensions (>=3.7.4,<4.0.0).
  And because replit (3.2.6) depends on typing_extensions (>=3.7.4,<4.0.0)
   and replit (3.2.7) depends on typing_extensions (>=3.7.4,<4.0.0), replit (>=3.2.4,<3.2.5 || >3.2.5,<3.2.8 || >3.2.8,<3.3.0 || >3.3.0,<4.0.0) requires typing_extensions (>=3.7.4,<4.0.0).
  And because replit (3.2.8) depends on typing_extensions (>=3.7.4,<4.0.0)
   and replit (3.3.0) depends on typing_extensions (>=3.7.4,<4.0.0), replit (>=3.2.4,<3.2.5 || >3.2.5,<4.0.0) requires typing_extensions (>=3.7.4,<4.0.0).
  And because replit (3.2.5) depends on typing_extensions (>=3.7.4,<4.0.0)
   and sqlalchemy (2.0.15) depends on typing-extensions (>=4.2.0), sqlalchemy (2.0.15) is incompatible with replit (>=3.2.4,<4.0.0).
  So, because python-template depends on both replit (^3.2.4) and SQLAlchemy (2.0.15), version solving failed.

  at venv/lib/python3.10/site-packages/poetry/puzzle/solver.py:241 in _solve
      237│             packages = result.packages
      238│         except OverrideNeeded as e:
      239│             return self.solve_in_compatibility_mode(e.overrides, use_latest=use_latest)
      240│         except SolveFailure as e:
    → 241│             raise SolverProblemError(e)
      242│ 
      243│         results = dict(
      244│             depth_first_search(
      245│                 PackageNode(self._package, packages), aggregate_package_nodes
exit status 1

Is there a way I can get around this issue, and should it be reported as a bug?

Replit should really update their package, but in the meantime you can follow this:

1 Like

That gives me an error too:

~/Flask-basic$ poetry add git+https://github.com/noneofyourbusiness1415252/replit-py

  CalledProcessError

  Command '['git', 'config', '-l']' returned non-zero exit status 1.

  at venv/lib/python3.10/site-packages/poetry/utils/_compat.py:217 in run
      213│                 process.wait()
      214│                 raise
      215│             retcode = process.poll()
      216│             if check and retcode:
    → 217│                 raise CalledProcessError(
      218│                     retcode, process.args, output=stdout, stderr=stderr
      219│                 )
      220│         finally:
      221│             # None because our context manager __exit__ does not use them.

Sorry for ping, but do you have any ideas @UMARismyname?

:face_with_spiral_eyes: Try running kill 1 in Shell. If not, try pip install -U poetry. Still no? Send the output when you run in Shell:

poetry add -vv git+https://github.com/noneofyourbusiness1415252/replit-py

If you don’t use the replit package anyhow, you could instead run in Shell

poetry remove replit
pip install requests
2 Likes

Your first option (kill 1 + pip) seems to have worked! Thanks!

2 Likes

This topic was automatically closed 7 days after the last reply. New replies are no longer allowed.