getappmap / getappmap/appmap-python
No module named 'yaml'
Nadie ha tomado este issue todavía.
- Lenguaje dominante
- Python
- Estrellas
- 104
- Forks
- 17
- Métricas de merge de PR
- Sin PR fusionados en 30 d
Descripción
Error seems to be intermittent?
https://github.com/land-of-apps/Promptify/actions/runs/4723050827/jobs/8378470252
Error processing line 1 of /opt/hostedtoolcache/Python/3.9.16/x64/lib/python3.9/site-packages/appmap.pth:
Traceback (most recent call last):
File "/opt/hostedtoolcache/Python/3.9.16/x64/lib/python3.9/site.py", line 169, in addpackage
exec(line)
File "<string>", line 1, in <module>
File "/opt/hostedtoolcache/Python/3.9.16/x64/lib/python3.9/site-packages/appmap/__init__.py", line 2, in <module>
from _appmap import generation # noqa: F401
File "/opt/hostedtoolcache/Python/3.9.16/x64/lib/python3.9/site-packages/_appmap/__init__.py", line 1, in <module>
from . import configuration
File "/opt/hostedtoolcache/Python/3.9.16/x64/lib/python3.9/site-packages/_appmap/configuration.py", line 13, in <module>
import yaml
ModuleNotFoundError: No module named 'yaml'
Remainder of file ignored
============================= test session starts ==============================
platform linux -- Python 3.9.16, pytest-7.2.2, pluggy-1.0.0
rootdir: /home/runner/work/Promptify/Promptify
plugins: appmap-1.[15](https://github.com/land-of-apps/Promptify/actions/runs/4723050827/jobs/8378470252#step:6:16).0
collected 9 items
This workflow run succeeded and I don't think there are any relevant changes between them:
https://github.com/land-of-apps/Promptify/actions/runs/4723021733
The change does introduce some options to the automated AppMap installer:
diff --git a/.github/workflows/appmap-archive.yml b/.github/workflows/appmap-archive.yml
index 14dab18..02859ed 100644
--- a/.github/workflows/appmap-archive.yml
+++ b/.github/workflows/appmap-archive.yml
@@ -26,6 +26,8 @@ jobs:
uses: getappmap/install-appmap-action@v1-pre.8
with:
github-token: ${{ secrets.GITHUB_TOKEN }}
+ project-type: pip
+ build-file: requirements-dev.txt
verbose: true
Here's the installer log:
/tmp/appmap install --no-interactive --no-overwrite-appmap-config --project-type pip --build-file requirements-dev.txt
Installing AppMap agent for ....
- Installing AppMap...
This project contains multiple Pip requirements files. AppMap should only be
installed during development and testing, not when deploying in a production
environment.
╭─────────────────────────────────────────────────────────────────────╮
│ │
│ Success! AppMap has finished installing. │
│ │
│ NEXT STEP: Record AppMaps │
│ │
│ You can consult the AppMap documentation, or continue with the │
│ instructions provided in the AppMap code editor extension. │
│ │
╰─────────────────────────────────────────────────────────────────────╯
AppMap language library has been installed and configured.
git add -N .
git diff > .appmap/appmap-install.patch
Patch file contents:
Guía de contribución
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.
Línea de trabajo
Comienza con .github/workflows/appmap-archive.yml y compara las ejecuciones del workflow fallidas y exitosas enlazadas en el issue, centrándote en las opciones del instalador de AppMap y en el entorno de Python. Rastrea por qué appmap.configuration no puede importar yaml; después, haz que el workflow proporcione esa dependencia de forma fiable y verifica el resultado con otra ejecución.
Escrito por el modelo de indexación a partir del texto del issue.
Evaluación
- Stack tecnológico
- github-actions, python
- Área
- ci-cd, devops
- Tipo de issue
- Error
- Dificultad
- 4/5
- Tiempo estimado
- 3-5 días
- Estado de actividad
- Estancado
- Claridad
- Necesita aclaración
- Aptitud para principiantes
- 35/100