getappmap / getappmap/appmap-python
No module named 'yaml'
Nessuno ha ancora preso questa issue.
- Lingua principale
- Python
- Stelle
- 104
- Fork
- 17
- Metriche di merge delle PR
- Nessuna PR unita negli ultimi 30g
Descrizione
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:
Guida per i contributori
Apri la guida per i contributori
Come iniziare
- Leggi tutta la issue e poi la guida ai contributi del progetto.
- Commenta sulla issue per dire che te ne occupi tu — evita che due persone facciano lo stesso lavoro.
- Fai un fork del repository e lavora su un branch.
- Apri una pull request che faccia riferimento al numero della issue.
Direzione di ricerca
Inizia da .github/workflows/appmap-archive.yml e confronta le esecuzioni del workflow fallite e riuscite collegate nell’issue, concentrandoti sulle opzioni dell’installer AppMap e sull’ambiente Python. Traccia il motivo per cui appmap.configuration non riesce a importare yaml, quindi fai in modo che il workflow fornisca questa dipendenza in modo affidabile e verifica il risultato con un’altra esecuzione.
Scritto dal modello di indicizzazione a partire dal testo della issue.
Valutazione
- Stack tecnologico
- github-actions, python
- Ambito
- ci-cd, devops
- Tipo di issue
- Bug
- Difficoltà
- 4/5
- Tempo stimato
- 3-5 giorni
- Stato di attività
- Ferma
- Chiarezza
- Da chiarire
- Idoneità per principianti
- 35/100