getappmap / getappmap/appmap-python

No module named 'yaml'

Ouverte
#235 0 commentaires 0 réactions 0 personnes assignées Voir sur GitHub

Personne n'a encore pris cette issue.

bug
Langage dominant
Python
Étoiles
104
Forks
17
Métriques de merge des PR
Aucune PR mergée en 30 j

Description

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:

Guide de contribution

Ouvrir le guide de contribution

Par où commencer

  1. Lisez l'issue en entier, puis le guide de contribution du projet.
  2. Signalez en commentaire que vous la prenez — cela évite que deux personnes fassent le même travail.
  3. Forkez le dépôt et travaillez sur une branche.
  4. Ouvrez une pull request qui référence le numéro de l'issue.

Piste de recherche

Commencez par .github/workflows/appmap-archive.yml et comparez les exécutions du workflow ayant échoué et ayant réussi, liées dans l’issue, en vous concentrant sur les options de l’installateur AppMap et sur l’environnement Python. Déterminez pourquoi appmap.configuration ne peut pas importer yaml, puis faites en sorte que le workflow fournisse cette dépendance de manière fiable et vérifiez le résultat avec une autre exécution.

Rédigé par le modèle d'indexation à partir du texte de l'issue.

Évaluation

Stack technique
github-actions, python
Domaine
ci-cd, devops
Type d'issue
Bug
Difficulté
4/5
Temps estimé
3-5 jours
Activité
À l'abandon
Clarté
À clarifier
Accessibilité débutants
35/100

Recevez les nouvelles issues par e-mail

Un résumé court des issues GitHub adaptées aux débutants.