Skip to content

cannot import name 'OrderedDict' from 'typing' #1300

Closed
@ghost

Description

Hello, something about recent changes broke our CI.

cannot import name 'OrderedDict' from 'typing' (/usr/lib64/python3.7/typing.py)

I'm not sure what the issue is exactly but there seems to be some condition to determine where OrderedDict comes from in config.py

We have Python 3.7.1

Python 3.7.1 (default, Oct 22 2018, 10:41:28) 
[GCC 8.2.1 20180831] on linux
Type "help", "copyright", "credits" or "license" for more information.
>>> from typing import OrderedDict
Traceback (most recent call last):
  File "<stdin>", line 1, in <module>
ImportError: cannot import name 'OrderedDict' from 'typing' (/usr/lib/python3.7/typing.py)
>>> from collections import OrderedDict
>>> 

We have this problem with gitpython-3.1.20 from pypi

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions