problem importing stubs

Abierto
#711 2 comentarios 0 reacciones 0 asignados Ver en GitHub

Nadie ha tomado este issue todavía.

Evaluación

Dificultad
3/5
Tiempo estimado
1-2 días
Aptitud para principiantes
35/100
Tipo de issue
Error
Claridad
Bastante claro
Estado de actividad
Estancado
Stack tecnológico
python
Área
tooling

Línea de trabajo

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.

Escrito por el modelo de indexación a partir del texto del issue.

Descripción

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?

Lenguaje dominante
Python
Estrellas
2.9k
Forks
218
Métricas de merge de PR
Sin PR fusionados en 30 d

Guía de contribución

No hay ninguna guía de contribución indexada para este repositorio

Primeros pasos

  1. Lee el issue completo y luego la guía de contribución del proyecto.
  2. Comenta en el issue que vas a ocuparte — evita que dos personas hagan lo mismo.
  3. Haz un fork del repositorio y trabaja en una rama.
  4. Abre un pull request que haga referencia al número del issue.

Más de TranscryptOrg/Transcrypt

Todos los issues de TranscryptOrg/Transcrypt

Issues similares

Más issues de Python

Recibe los nuevos issues en tu correo

Un resumen breve de issues de GitHub para principiantes.