problem importing stubs

Aperta
#711 2 commenti 0 reazioni 0 assegnatari Vedi su GitHub

Nessuno ha ancora preso questa issue.

Valutazione

Difficoltà
3/5
Tempo stimato
1-2 giorni
Idoneità per principianti
35/100
Tipo di issue
Bug
Chiarezza
Abbastanza chiara
Stato di attività
Ferma
Stack tecnologico
python
Ambito
tooling

Direzione di ricerca

Reproduce the reported commands in a fresh virtualenv, including import transcrypt and both stubs imports. Inspect the installed package contents and import paths to determine why the stubs are unavailable after pip installation; done means the documented stubs import succeeds when running the test environment.

Scritto dal modello di indicizzazione a partire dal testo della issue.

Descrizione

IS: bug? IS: workaround

I would like to import the stubs use py.test (with which I am running the tests). Unfortunately that is not working for me.

(transcrypt_venv) $ python -c "import transcrypt"

(transcrypt_venv) $ python -c "import org.transcrypt.stubs.browser"
Traceback (most recent call last):
  File "<string>", line 1, in <module>
ModuleNotFoundError: No module named 'org'

(transcrypt_venv) $ python -c "import transcrypt.stubs.browser"
Traceback (most recent call last):
  File "<string>", line 1, in <module>
ModuleNotFoundError: No module named 'transcrypt.stubs'

(transcrypt_venv) $ python -c "import transcrypt; print(dir(transcrypt))"
['__doc__', '__file__', '__loader__', '__name__', '__package__', '__path__', '__spec__']
(transcrypt_venv) $ transcrypt 

Transcrypt (TM) Python to JavaScript Small Sane Subset Transpiler Version 3.7.16
Copyright (C) Geatec Engineering. License: Apache 2.0

I installed transcrypt with pip in a virtualenv (as it might be clear from the prompt). What am I missing?

Lingua principale
Python
Stelle
2.9k
Fork
218
Metriche di merge delle PR
Nessuna PR unita negli ultimi 30g

Guida per i contributori

Nessuna guida per i contributori indicizzata per questo repository

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.

Altre issue di TranscryptOrg/Transcrypt

Tutte le issue di TranscryptOrg/Transcrypt

Issue simili

Altre issue su Python

Ricevi le nuove issue nella tua casella

Un breve riepilogo di issue GitHub adatte ai principianti.