jaredks / rumps

Ridiculously Uncomplicated macOS Python Statusbar apps
BSD 3-Clause "New" or "Revised" License
3.06k stars 177 forks source link

cannot import name mapping from collections Python 3.10 (Fix) #172

Open jbflow opened 2 years ago

jbflow commented 2 years ago

When installing on Python 3.10 There is an issue when importing Mapping from collections.

I've fixed it locally for my project, you just need to change line 30 in rumps.py from:

from collections import Mapping, Iterable

To

from collections.abc import Mapping, Iterable
lexygon commented 2 years ago

Actually the problem is already fixed on latest version but it is not on the pypi. See https://github.com/jaredks/rumps/issues/173