Bug 1931044

Summary: Cannot find 'builtins' module. Typeshed appears broken!
Product: [Fedora] Fedora Reporter: Martin Pitt <mpitt>
Component: python3-mypyAssignee: Gwyn Ciesla <gwync>
Status: CLOSED DUPLICATE QA Contact: Fedora Extras Quality Assurance <extras-qa>
Severity: unspecified Docs Contact:
Priority: unspecified    
Version: rawhideCC: gwync
Target Milestone: ---   
Target Release: ---   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: Doc Type: If docs needed, set a value
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2021-02-20 21:25:13 UTC Type: Bug
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:

Description Martin Pitt 2021-02-20 09:07:37 UTC
Description of problem: The most recent mypy update in Fedora 35 breaks with
the error message in the subject.

$ git clone https://github.com/martinpitt/python-dbusmock/
$ cd python-dbusmock
$ mypy --verbose setup.py
LOG:  Could not load plugins snapshot: @plugins_snapshot.json

LOG:  Mypy Version:           0.810
LOG:  Config File:            setup.cfg
LOG:  Configured Executable:  /usr/bin/python3
LOG:  Current Executable:     /usr/bin/python3
LOG:  Cache Dir:              .mypy_cache
LOG:  Compiled:               False
LOG:  Exclude:
LOG:  Found source:           BuildSource(path='setup.py', module='setup', has_text=False, base_dir='/source')
LOG:  Could not load cache for setup: setup.meta.json
LOG:  Metadata not found for setup
LOG:  Parsing setup.py (setup)
LOG:  Build finished in 0.007 seconds with 1 modules, and 1 errors
setup.py:1: error: Cannot find 'builtins' module. Typeshed appears broken!
Found 1 error in 1 file (errors prevented further checking)

This isn't particularly sensitive to ./setup.py, it does the same thing on any
other Python file in that project.

I tried to install the current version from PyPy:

$ pip install mypy
mypy              0.812
mypy-extensions   0.4.3

With that it works again. So hopefully all that's required is to update the
Rawhide package to 0.812?

Version-Release number of selected component (if applicable):

python3-mypy_extensions-0.4.3-5.fc34.noarch
python3-mypy-0.810-1.fc35.noarch


How reproducible: Always

Comment 1 Martin Pitt 2021-02-20 09:10:13 UTC
I wanted to compare with upstream with `pip install mypy==0.810`, but that version does not actually exist on https://pypi.org/project/mypy/#history nor http://www.mypy-lang.org/ . It only exists as a tag on https://github.com/python/mypy/releases

Comment 2 Gwyn Ciesla 2021-02-20 21:25:13 UTC

*** This bug has been marked as a duplicate of bug 1929522 ***