constant-flow / raspberry-pack

Setup your Raspberry Pi headlessly with all scripts, packages and tools you need
MIT License
6 stars 1 forks source link

ImportError: cannot import name 'Mapping' from 'collections' #29

Open constant-flow opened 1 year ago

constant-flow commented 1 year ago

Fix for Python 3.10

https://github.com/CITGuru/PyInquirer/issues/181#issuecomment-1164706118

For Python 3.10.5, change line in file: ...\.venv\Lib\site-packages\prompt_toolkit\styles\from_dict.py from: from collections import Mapping to from collections.abc import Mapping