Skip to content

lbmpy 0.4.0 not working with pystenicls 0.3.4

I am getting

Traceback (most recent call last):
  File "<string>", line 1, in <module>
  File "/home/thoennes/.local/lib/python3.8/site-packages/lbmpy/__init__.py", line 1, in <module>
    from .creationfunctions import create_lb_ast, create_lb_collision_rule, create_lb_function,\
  File "/home/thoennes/.local/lib/python3.8/site-packages/lbmpy/creationfunctions.py", line 225, in <module>
    from lbmpy.simplificationfactory import create_simplification_strategy
  File "/home/thoennes/.local/lib/python3.8/site-packages/lbmpy/simplificationfactory.py", line 9, in <module>
    from pystencils.simp import (
ImportError: cannot import name 'insert_aliases' from 'pystencils.simp' (/home/thoennes/.local/lib/python3.8/site-packages/pystencils/simp/__init__.py)

when using lbmpy 0.4.0 and pystenicls 0.3.4. After updating to pystenicls 0.4.0 everything works again.

I guess lbmpy 0.4.0 needs to have pystencils 0.4.0 as a dependency and not just any pystencils.

Currently, the setup.py just says pystencils