replit 与 pyrebase 不兼容?诗歌

replit not compatible with pyrebase? poetry

我正在 replit 上制作一个 discord 机器人,我正在尝试使用 firebase 数据库(实时数据库)。我 运行 遇到一个问题,诗歌说它与 replit 不兼容。这是错误。


--> python3 -m poetry add pyrebase
Using version ^3.0.27 for Pyrebase

Updating dependencies
Resolving dependencies...

  SolverProblemError

  Because no versions of pyrebase match >3.0.27,<4.0.0
   and pyrebase (3.0.27) depends on requests (2.11.1), pyrebase (>=3.0.27,<4.0.0) requires requests (2.11.1).
  And because replit (3.2.4) depends on requests (>=2.25.1,<3.0.0)
   and no versions of replit match >3.2.4,<4.0.0, pyrebase (>=3.0.27,<4.0.0) is incompatible with replit (>=3.2.4,<4.0.0).
  So, because repl-python3-jerry-bot depends on both replit (^3.2.4) and Pyrebase (^3.0.27), version solving failed.

  at /opt/virtualenvs/python3/lib/python3.8/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


Replit: Package operation failed.

我知道有人说 pyrebase 与 replit 不兼容,但有什么办法可以解决这个问题吗?

我去了侧边栏​​,去打包了。然后我下载了最新的pyrebase“pyrebase4”然后replit没有抛出错误。