Time-Series-Library icon indicating copy to clipboard operation
Time-Series-Library copied to clipboard

einops 0.4.0 cause the error: ImportError: cannot import name 'einsum' from 'einops'

Open ipe-zhangyz opened this issue 9 months ago • 4 comments

after setting up the environment by "pip install -r requirements.txt" and executing "bash ./scripts/long_term_forecast/ETT_script/TimesNet_ETTh1.sh", there is an error: ImportError: cannot import name 'einsum' from 'einops' requirements.txt requires to install einops 0.4.0, while there is no module named einsum in that version of einops. Update einops to 0.5.0 solves this problem. Maybe the requirements.txt file need to be updated.

ipe-zhangyz avatar May 11 '24 01:05 ipe-zhangyz

BUT when i install einops=0.5.0, it cause mamba_ssm error ,there will be no mamba_ssm error

tibeler avatar May 13 '24 03:05 tibeler

I think so,

after setting up the environment by "pip install -r requirements.txt" and executing "bash ./scripts/long_term_forecast/ETT_script/TimesNet_ETTh1.sh", there is an error: ImportError: cannot import name 'einsum' from 'einops' requirements.txt requires to install einops 0.4.0, while there is no module named einsum in that version of einops. Update einops to 0.5.0 solves this problem. Maybe the requirements.txt file need to be updated.

stone-cloud avatar May 14 '24 07:05 stone-cloud

0.5.0有 No module named 'mamba_ssm'

fleetingg avatar May 15 '24 10:05 fleetingg

according to the README, mamba_ssm need to be installed manually: News (2024.04) Many thanks for the great work from https://github.com/thuml/Time-Series-Library/pull/378. The famous sequenctial model Mamba has been included in our library. See this file, where you need to install mamba_ssm with pip at first.

ipe-zhangyz avatar May 15 '24 10:05 ipe-zhangyz

@ipe-zhangyz Many thanks for your answer~

wuhaixu2016 avatar May 16 '24 13:05 wuhaixu2016

Can you change to tagging without running the mamba module?

woshiliyue avatar May 20 '24 09:05 woshiliyue

@ipe-zhangyz can you show me the way to install mamba_ssm manually. I tried by: pip install mamba-ssm. But built wheel fail by output: ModuleNotFoundError: No module named 'packaging'. Inspite I have install the packaging: pip list Package Version


packaging 24.0 pip 24.0 setuptools 70.0.0

Duykhongkhoc avatar Jun 03 '24 16:06 Duykhongkhoc

@ipe-zhangyz can you show me the way to install mamba_ssm manually. I tried by: pip install mamba-ssm. But built wheel fail by output: ModuleNotFoundError: No module named 'packaging'. Inspite I have install the packaging: pip list Package Version

packaging 24.0 pip 24.0 setuptools 70.0.0

Sorry for the late reply. I didn't install mamba-ssm myself. I just learnt from the Readme of this repo that it need to be installed manually.

ipe-zhangyz avatar Aug 11 '24 02:08 ipe-zhangyz

I think so,

after setting up the environment by "pip install -r requirements.txt" and executing "bash ./scripts/long_term_forecast/ETT_script/TimesNet_ETTh1.sh", there is an error: ImportError: cannot import name 'einsum' from 'einops' requirements.txt requires to install einops 0.4.0, while there is no module named einsum in that version of einops. Update einops to 0.5.0 solves this problem. Maybe the requirements.txt file need to be updated.

quite useful

liurambler avatar Aug 14 '24 05:08 liurambler