Cannot import pytz in python3.9
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
pytz |
Fix Released
|
High
|
Unassigned |
Bug Description
In what's new for Python3.9, they mentioned that collections will not import collections.abc base classes by default : https:/
As such, when trying to import pytz in Python3.9 will give the following error:
>>> import pytz
Traceback (most recent call last):
File "/home/
from UserDict import DictMixin
ModuleNotFoundE
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File "<stdin>", line 1, in <module>
File "/home/
from pytz.lazy import LazyDict, LazyList, LazySet
File "/home/
from collections import Mapping as DictMixin
ImportError: cannot import name 'Mapping' from 'collections' (/home/
>>>
Changed in pytz: | |
status: | New → Triaged |
importance: | Undecided → High |
Changed in pytz: | |
status: | Triaged → Fix Released |