moto icon indicating copy to clipboard operation
moto copied to clipboard

Moto 5.0.18 fails to install on windows

Open vishnu-itachi opened this issue 1 year ago • 2 comments

The step functions parser directory is causing a failure with FileNotFoundError because of the MAX_PATH on Windows. The installation fails at this file.

moto/stepfunctions/parser/asl/component/state/exec/state_map/item_reader/eval/resource_output_transformer/transformer_factory.py

I believe this is the longest possible path for all directories. Can it be shortened or refactored to reduce the length?

Thanks

vishnu-itachi avatar Oct 30 '24 11:10 vishnu-itachi

The installation works file using pip but fails using poetry since it appends poetry virtual env path and hence char limit exceeds

vishnu-itachi avatar Oct 31 '24 13:10 vishnu-itachi

Hi @vishnu-itachi, believe it or not, this is actually already the short version! It used to be even longer.

We might be able to shorten it further, but there is only so much we can do before it starts impacting the readability/discoverability of the source code structure. So I can't make any promises that the changes we make will be enough.

bblommers avatar Nov 06 '24 19:11 bblommers