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

Package versions mismatch #183

Open
aphilas opened this issue Feb 6, 2024 · 0 comments
Open

Package versions mismatch #183

aphilas opened this issue Feb 6, 2024 · 0 comments

Comments

@aphilas
Copy link

aphilas commented Feb 6, 2024

Can't get started on main.

pip install fails. After manual resolutions, I still get ImportError

Possibly related: #177

$ rtx local python 3.8.18 # or 3.9.18 or 3.10.13

$ python -m venv venv

$ source venv/bin/activate

$ pip install --upgrade pip

$ pip install -r requirements.txt

ERROR: Cannot install rasa==3.1.0 and sqlalchemy~=1.3.22 because these package versions have conflicting dependencies.

The conflict is caused by:
    The user requested sqlalchemy~=1.3.22
    rasa 3.1.0 depends on SQLAlchemy<1.5.0 and >=1.4.0

actions/requirements-actions.txt:

- sqlalchemy~=1.3.22
+ sqlalchemy<1.5.0,>=1.4.0
$ pip install -r requirements.txt

ERROR: Cannot install rasa-sdk==3.1.0 and rasa==3.1.0 because these package versions have conflicting dependencies.

The conflict is caused by:
    The user requested rasa-sdk==3.1.0
    rasa 3.1.0 depends on rasa-sdk<3.2.0 and >=3.1.1

requirements.txt:

- rasa-sdk==3.1.0
$ pip install -r requirements.txt
# success
$ rasa train
$ rasa train
Traceback (most recent call last):
  File "/home/aphilas/src/financial-demo/venv/bin/rasa", line 5, in <module>
    from rasa.__main__ import main
  File "/home/aphilas/src/financial-demo/venv/lib/python3.9/site-packages/rasa/__main__.py", line 14, in <module>
    from rasa.cli import (
  File "/home/aphilas/src/financial-demo/venv/lib/python3.9/site-packages/rasa/cli/export.py", line 9, in <module>
    import rasa.core.utils
  File "/home/aphilas/src/financial-demo/venv/lib/python3.9/site-packages/rasa/core/utils.py", line 14, in <module>
    from rasa.core.lock_store import LockStore, RedisLockStore, InMemoryLockStore
  File "/home/aphilas/src/financial-demo/venv/lib/python3.9/site-packages/rasa/core/lock_store.py", line 13, in <module>
    from rasa.utils.endpoints import EndpointConfig
  File "/home/aphilas/src/financial-demo/venv/lib/python3.9/site-packages/rasa/utils/endpoints.py", line 7, in <module>
    from sanic.request import Request
  File "/home/aphilas/src/financial-demo/venv/lib/python3.9/site-packages/sanic/__init__.py", line 2, in <module>
    from sanic.app import Sanic
  File "/home/aphilas/src/financial-demo/venv/lib/python3.9/site-packages/sanic/app.py", line 102, in <module>
    from sanic.server.protocols.websocket_protocol import WebSocketProtocol
  File "/home/aphilas/src/financial-demo/venv/lib/python3.9/site-packages/sanic/server/protocols/websocket_protocol.py", line 3, in <module>
    from websockets.connection import CLOSED, CLOSING, OPEN
ImportError: cannot import name 'CLOSED' from 'websockets.connection' (/home/aphilas/src/financial-demo/venv/lib/python3.9/site-packages/websockets/connection.py)
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