python / python/mypy

mypy fails with mypyc, even with empty file

Offen
#7,797 6 Kommentare 0 Reaktionen 1 zugewiesene Person Auf GitHub ansehen

@msullivan arbeitet bereits daran.

Seit 25.10.2019.

bug topic-mypyc
Vorherrschende Sprache
Python
Sterne
20.6k
Forks
3.3k
PR-Merge-Kennzahlen
PR-Kennzahlen ausstehend

Beschreibung

Steps to reproduce:

  • pip install mypy # that's 0.740 here, also same with HEAD on github
  • pip install mypy-mypyc
  • create an empty file foo.py
mypy foo.py
Traceback (most recent call last):
  File "/home/xo/.conda/envs/intel37/bin/mypy", line 6, in <module>
    from mypy.__main__ import console_entry
  File "/home/xo/.conda/envs/intel37/lib/python3.7/site-packages/mypy/__main__.py", line 4, in <module>
    from mypy.main import main
  File "mypy/main.py", line 12, in <module>
  File "/home/xo/.conda/envs/intel37/lib/python3.7/site-packages/mypy/build.py", line 33, in <module>
    from mypy.semanal import SemanticAnalyzer
  File "/home/xo/.conda/envs/intel37/lib/python3.7/site-packages/mypy/semanal.py", line 84, in <module>
    from mypy.messages import best_matches, MessageBuilder, pretty_or
  File "/home/xo/.conda/envs/intel37/lib/python3.7/site-packages/mypy/messages.py", line 28, in <module>
    from mypy.typetraverser import TypeTraverserVisitor
  File "mypy/typetraverser.py", line 14, in <module>
SystemError: null argument to internal routine

This combination may seem weird but the traceback is not helping much when this happens...

Beitragsleitfaden

Beitragsleitfaden öffnen

Erste Schritte

  1. Lies das ganze Issue und danach den Beitragsleitfaden des Projekts.
  2. Schreib ins Issue, dass du es übernimmst — das erspart doppelte Arbeit.
  3. Forke das Repository und arbeite in einem Branch.
  4. Öffne einen Pull Request, der die Issue-Nummer nennt.

Bewertung

Dieses Issue wurde noch nicht bewertet.

Neue Issues direkt in Ihr Postfach

Eine kurze Übersicht über anfängerfreundliche GitHub-Issues.