Note: This is a public test instance of Red Hat Bugzilla. The data contained within is a snapshot of the live data so any changes you make will not be reflected in the production Bugzilla. Email is disabled so feel free to test any aspect of the site that you want. File any problems you find or give feedback at bugzilla.redhat.com.
Bug 1931044 - Cannot find 'builtins' module. Typeshed appears broken!
Summary: Cannot find 'builtins' module. Typeshed appears broken!
Keywords:
Status: CLOSED DUPLICATE of bug 1929522
Alias: None
Product: Fedora
Classification: Fedora
Component: python3-mypy
Version: rawhide
Hardware: Unspecified
OS: Unspecified
unspecified
unspecified
Target Milestone: ---
Assignee: Gwyn Ciesla
QA Contact: Fedora Extras Quality Assurance
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2021-02-20 09:07 UTC by Martin Pitt
Modified: 2021-02-20 21:25 UTC (History)
1 user (show)

Fixed In Version:
Doc Type: If docs needed, set a value
Doc Text:
Clone Of:
Environment:
Last Closed: 2021-02-20 21:25:13 UTC
Type: Bug
Embargoed:


Attachments (Terms of Use)

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 ***


Note You need to log in before you can comment on or make changes to this bug.