No module named 'yaml'
Ninguém assumiu esta issue ainda.
Avaliação
- Dificuldade
- 4/5
- Tempo estimado
- 3-5 dias
- Facilidade para iniciantes
- 35/100
Direção de pesquisa
Comece com .github/workflows/appmap-archive.yml e compare as execuções do workflow que falharam e que tiveram sucesso, vinculadas na issue, concentrando-se nas opções do instalador do AppMap e no ambiente Python. Rastreie por que appmap.configuration não consegue importar yaml; em seguida, faça o workflow fornecer essa dependência de forma confiável e verifique o resultado com outra execução.
Escrita pelo modelo de indexação a partir do texto da issue.
Descrição
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:
- Linguagem predominante
- Python
- Estrelas
- 104
- Forks
- 17
- Métricas de merge de PRs
- Nenhum PR com merge em 30d
Guia de contribuição
Primeiros passos
- Leia a issue inteira e depois o guia de contribuição do projeto.
- Comente na issue dizendo que vai assumir — evita que duas pessoas façam o mesmo trabalho.
- Faça um fork do repositório e trabalhe em uma branch.
- Abra um pull request que referencie o número da issue.
Mais de getappmap/appmap-python
-
getappmap/appmap-python#381 · 1 responsável ·
-
Dificuldade 3/5 1-2 dias Facilidade para iniciantes 35/100
getappmap/appmap-python#376 ·
-
Dificuldade 4/5 3-5 dias Facilidade para iniciantes 35/100
getappmap/appmap-python#371 ·
-
enhancement navie-plan
getappmap/appmap-python#366 · 1 comentário · 1 responsável ·
-
navie-plan
Dificuldade 4/5 3-5 dias Facilidade para iniciantes 35/100
getappmap/appmap-python#365 · 1 comentário ·
Todas as issues de getappmap/appmap-python
Issues semelhantes
-
Dificuldade 1/5 Menos de uma hora Facilidade para iniciantes 90/100
-
bug
Dificuldade 2/5 1-3 horas Facilidade para iniciantes 86/100
zostera/django-bootstrap4#894 ·
-
Dificuldade 2/5 1-3 horas Facilidade para iniciantes 78/100
use-agent-os/agent-os#3276 ·
-
Dificuldade 2/5 1-3 horas Facilidade para iniciantes 88/100
zephyrproject-rtos/zephyr#119726 ·
-
area/auth bug comp/agent P3 platform/discord type/security
Dificuldade 2/5 1-3 horas Facilidade para iniciantes 88/100
NousResearch/hermes-agent#117848 ·