jaredks / rumps

Ridiculously Uncomplicated macOS Python Statusbar apps

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

cannot import name mapping from collections Python 3.10 (Fix)

jbflow opened this issue · comments

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

Actually the problem is already fixed on latest version but it is not on the pypi.
See #173