dbrattli / aioreactive

Async/await reactive tools for Python 3.11+
MIT License
350 stars 24 forks source link

ImportError: cannot import name 'match' from 'expression.core' #40

Closed DurandA closed 6 months ago

DurandA commented 1 year ago

When using aioreactive, I get an ImportError: cannot import name 'match' from 'expression.core'. This is due to the match module having been removed from Expression.

Trace:

  File "/home/duranda/devel/aioreactive-test/venv/lib/python3.11/site-packages/aioreactive/__init__.py", line 545, in filter
    from .filtering import filter as _filter
  File "/home/duranda/devel/aioreactive-test/venv/lib/python3.11/site-packages/aioreactive/filtering.py", line 4, in <module>
    from expression.core import (
ImportError: cannot import name 'match' from 'expression.core' (/home/duranda/devel/healthme-api/venv/lib/python3.11/site-packages/expression/core/__init__.py)
rafalkrupinski commented 9 months ago

How did you get this error? Expression removed match in 4.x but aioreactive depends on 3.x