Skip to content

Strange Python error #4

@WildCard65

Description

@WildCard65

Just encountered an extremely weird issue with v1.1.11 on Python 3.5 for MacOS when using egg builds:

2020-08-19T19:24:34.4315910Z      command: /Users/runner/hostedtoolcache/Python/3.5.9/x64/bin/python -c 'import sys, setuptools, tokenize; sys.argv[0] = '"'"'/private/var/folders/24/8k48jl6d249_n_qfxwsl6xvm0000gn/T/pip-req-build-x1d6tu0o/setup.py'"'"'; __file__='"'"'/private/var/folders/24/8k48jl6d249_n_qfxwsl6xvm0000gn/T/pip-req-build-x1d6tu0o/setup.py'"'"';f=getattr(tokenize, '"'"'open'"'"', open)(__file__);code=f.read().replace('"'"'\r\n'"'"', '"'"'\n'"'"');f.close();exec(compile(code, __file__, '"'"'exec'"'"'))' egg_info --egg-base /private/var/folders/24/8k48jl6d249_n_qfxwsl6xvm0000gn/T/pip-pip-egg-info-ld154gba
2020-08-19T19:24:34.4320760Z          cwd: /private/var/folders/24/8k48jl6d249_n_qfxwsl6xvm0000gn/T/pip-req-build-x1d6tu0o/
2020-08-19T19:24:34.4321620Z     Complete output (35 lines):
2020-08-19T19:24:34.4323290Z     /Users/runner/hostedtoolcache/Python/3.5.9/x64/lib/python3.5/distutils/dist.py:261: UserWarning: Unknown distribution option: 'long_description_content_type'
2020-08-19T19:24:34.4325950Z       warnings.warn(msg)
2020-08-19T19:24:34.4327890Z     warning: no previously-included files matching '__pycache__' found under directory '*'
2020-08-19T19:24:34.4329030Z     warning: no previously-included files matching '*.pyc' found under directory '*'
2020-08-19T19:24:34.4329810Z     warning: no previously-included files matching '*.pyo' found under directory '*'
2020-08-19T19:24:34.4330610Z     warning: no previously-included files matching '*.orig' found under directory '*'
2020-08-19T19:24:34.4330930Z     
2020-08-19T19:24:34.4334660Z     Installed /private/var/folders/24/8k48jl6d249_n_qfxwsl6xvm0000gn/T/pip-req-build-x1d6tu0o/.eggs/setuptools_git_versioning-1.1.11-py3.5.egg
2020-08-19T19:24:34.4336130Z     Traceback (most recent call last):
2020-08-19T19:24:34.4338470Z       File "<string>", line 1, in <module>
2020-08-19T19:24:34.4339660Z       File "/private/var/folders/24/8k48jl6d249_n_qfxwsl6xvm0000gn/T/pip-req-build-x1d6tu0o/setup.py", line 75, in <module>
2020-08-19T19:24:34.4339860Z         zip_safe = False)
2020-08-19T19:24:34.4340070Z       File "/Users/runner/hostedtoolcache/Python/3.5.9/x64/lib/python3.5/distutils/core.py", line 108, in setup
2020-08-19T19:24:34.4340820Z         _setup_distribution = dist = klass(attrs)
2020-08-19T19:24:34.4341820Z       File "/Users/runner/hostedtoolcache/Python/3.5.9/x64/lib/python3.5/site-packages/setuptools/dist.py", line 318, in __init__
2020-08-19T19:24:34.4342020Z         _Distribution.__init__(self, attrs)
2020-08-19T19:24:34.4342230Z       File "/Users/runner/hostedtoolcache/Python/3.5.9/x64/lib/python3.5/distutils/dist.py", line 281, in __init__
2020-08-19T19:24:34.4342410Z         self.finalize_options()
2020-08-19T19:24:34.4343080Z       File "/Users/runner/hostedtoolcache/Python/3.5.9/x64/lib/python3.5/site-packages/setuptools/dist.py", line 376, in finalize_options
2020-08-19T19:24:34.4343240Z         ep.load()(self, ep.name, value)
2020-08-19T19:24:34.4343930Z       File "/private/var/folders/24/8k48jl6d249_n_qfxwsl6xvm0000gn/T/pip-req-build-x1d6tu0o/.eggs/setuptools_git_versioning-1.1.11-py3.5.egg/setuptools_git_versioning.py", line 87, in parse_config
2020-08-19T19:24:34.4344160Z         if not isinstance(value, Mapping):
2020-08-19T19:24:34.4344360Z       File "/Users/runner/hostedtoolcache/Python/3.5.9/x64/lib/python3.5/abc.py", line 191, in __instancecheck__
2020-08-19T19:24:34.4344540Z         return cls.__subclasscheck__(subclass)
2020-08-19T19:24:34.4345290Z       File "/Users/runner/hostedtoolcache/Python/3.5.9/x64/lib/python3.5/abc.py", line 226, in __subclasscheck__
2020-08-19T19:24:34.4345530Z         if issubclass(subclass, scls):
2020-08-19T19:24:34.4345750Z       File "/Users/runner/hostedtoolcache/Python/3.5.9/x64/lib/python3.5/typing.py", line 1175, in __subclasscheck__
2020-08-19T19:24:34.4345920Z         return super().__subclasscheck__(cls)
2020-08-19T19:24:34.4346120Z       File "/Users/runner/hostedtoolcache/Python/3.5.9/x64/lib/python3.5/abc.py", line 207, in __subclasscheck__
2020-08-19T19:24:34.4346280Z         ok = cls.__subclasshook__(subclass)
2020-08-19T19:24:34.4346480Z       File "/Users/runner/hostedtoolcache/Python/3.5.9/x64/lib/python3.5/typing.py", line 907, in __extrahook__
2020-08-19T19:24:34.4346660Z         if issubclass(subclass, scls):
2020-08-19T19:24:34.4346860Z       File "/Users/runner/hostedtoolcache/Python/3.5.9/x64/lib/python3.5/typing.py", line 1169, in __subclasscheck__
2020-08-19T19:24:34.4347090Z         raise TypeError("Parameterized generics cannot be used with class "
2020-08-19T19:24:34.4347250Z     TypeError: Parameterized generics cannot be used with class or instance checks

Error suggests that for whatever reason, "typing.Mapping" is used instead of "collections.abc.Mapping"

Also, you're import checking for "collections.abc" is mispelled as "collections.abs" which always fails.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions