Third-party module classes not detected when setting PYTHONPATH in a shell file
Nadie ha tomado este issue todavía.
Evaluación
- Dificultad
- 4/5
- Tiempo estimado
- 3-5 días
- Aptitud para principiantes
- 25/100
- Tipo de issue
- Error
- Claridad
- Necesita aclaración
- Estado de actividad
- Estancado
- Stack tecnológico
- bash, javascript, python
- Área
- tooling
Línea de trabajo
Empieza reproduciendo la detección faltante de la clase GAMS con el run.sh proporcionado y compara las versiones del paquete 1.9.3 y 1.9.4. Rastrea cómo el paquete invoca la ruta de Python configurada y lee PYTHONPATH. Se considera terminado cuando las clases dentro del módulo gams vuelvan a detectarse al usar run.sh.
Escrito por el modelo de indexación a partir del texto del issue.
Descripción
I've defined a shell script inside the root of my project, called run.sh. What it does is, adds two paths relating to a third-party module (GAMS Python API), to PYTHONPATH environment variable, and then calls python with all arguments given to the script:
#!/bin/bash
export PYTHONPATH=/opt/gams/gams34.3_linux_x64_64_sfx/apifiles/Python/api_39/:"$PYTHONPATH"
export PYTHONPATH=/opt/gams/gams34.3_linux_x64_64_sfx/apifiles/Python/gams/:"$PYTHONPATH"
export PYTHONPATH="$(pwd)":"$PYTHONPATH"
python3 $@
In the package settings, I've configured the python path to ./run.sh, for the script to be called and the module being detected by the package.
However, after updating the package version to 1.9.4, it no longer detects the classes inside the gams module:

Note that, the script works perfectly with 1.9.3. I downgraded the package and then upgraded it, and it seems it is reproducable for me.
(I don't think the system specs are needed, as I just mentioned, the issue is new in 1.9.4, with exact set of packages and Atom version)
- Lenguaje dominante
- JavaScript
- Estrellas
- 238
- Forks
- 41
- Métricas de merge de PR
- Sin PR fusionados en 30 d
Preparar el entorno
Primeros pasos
- Lee el issue completo y luego la guía de contribución del proyecto.
- Comenta en el issue que vas a ocuparte — evita que dos personas hagan lo mismo.
- Haz un fork del repositorio y trabaja en una rama.
- Abre un pull request que haga referencia al número del issue.
Más de atom-community/ide-python
-
Dificultad 4/5 3-5 días Aptitud para principiantes 25/100
atom-community/ide-python#575 · 5 reacciones ·
-
Dificultad 3/5 1-2 días Aptitud para principiantes 25/100
atom-community/ide-python#570 · 2 comentarios · 1 reacción ·
-
Dificultad 3/5 1-2 días Aptitud para principiantes 25/100
atom-community/ide-python#568 · 1 comentario ·
-
Dificultad 4/5 3-5 días Aptitud para principiantes 25/100
atom-community/ide-python#567 · 1 comentario ·
-
Dificultad 4/5 3-5 días Aptitud para principiantes 25/100
atom-community/ide-python#566 ·
Todos los issues de atom-community/ide-python
Issues similares
-
curriculum documentation quality
Dificultad 2/5 1-3 horas Aptitud para principiantes 78/100
githubnext/gh-aw-workshop#3897 ·
Los mantenedores suelen responder en 2 días
-
agent/quality hive/hosted-available-lke648397-260827-5n31 quality testing
Dificultad 2/5 1-3 horas Aptitud para principiantes 91/100
Los mantenedores suelen responder en 1 día
-
Add: RSV Honduras FeedAbiertocheck:failed feeds:add
Dificultad 2/5 1-3 horas Aptitud para principiantes 70/100
iptv-org/database#36179 · 1 comentario ·
Los mantenedores suelen responder en 1 día
-
[Bug] : Main navigation "Upcoming Events" link navigates to /events/ without query parameterAbiertobug
Dificultad 2/5 1-3 horas Aptitud para principiantes 88/100
Los mantenedores suelen responder en 1 día
-
Dificultad 2/5 1-3 horas Aptitud para principiantes 84/100
Los mantenedores suelen responder en 1 día