python / python/mypy

mypy fails with mypyc, even with empty file

Aperta
#7,797 6 commenti 0 reazioni 1 assegnatario Vedi su GitHub

@msullivan ci sta già lavorando.

Dal 25/10/2019.

bug topic-mypyc
Lingua principale
Python
Stelle
20.6k
Fork
3.3k
Metriche di merge delle PR
Metriche PR in attesa

Descrizione

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

Guida per i contributori

Apri la guida per i contributori

Come iniziare

  1. Leggi tutta la issue e poi la guida ai contributi del progetto.
  2. Commenta sulla issue per dire che te ne occupi tu — evita che due persone facciano lo stesso lavoro.
  3. Fai un fork del repository e lavora su un branch.
  4. Apri una pull request che faccia riferimento al numero della issue.

Valutazione

Questa issue non è ancora stata valutata.

Ricevi le nuove issue nella tua casella

Un breve riepilogo di issue GitHub adatte ai principianti.