getappmap / getappmap/appmap-python

No module named 'yaml'

Đang mở
#235 0 bình luận 0 reaction 0 người được giao Xem trên GitHub

Chưa có ai nhận issue này.

bug
Ngôn ngữ chính
Python
Star
104
Fork
17
Chỉ số merge pull request
Không có pull request nào được merge trong 30 ngày

Mô tả

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:

Hướng dẫn đóng góp

Mở hướng dẫn đóng góp

Bắt đầu từ đâu

  1. Đọc hết issue, rồi đọc hướng dẫn đóng góp của dự án.
  2. Bình luận trên issue rằng bạn sẽ nhận — tránh hai người làm cùng một việc.
  3. Fork repository và làm thay đổi trên một nhánh.
  4. Mở pull request có tham chiếu số hiệu của issue.

Hướng nghiên cứu

Bắt đầu với .github/workflows/appmap-archive.yml và so sánh các lần chạy workflow thất bại và thành công được liên kết trong issue, tập trung vào các tùy chọn của trình cài đặt AppMap và môi trường Python. Truy tìm lý do appmap.configuration không thể import yaml, sau đó làm cho workflow cung cấp dependency đó một cách đáng tin cậy và xác minh kết quả bằng một lần chạy khác.

Do mô hình lập chỉ mục viết ra từ nội dung của issue.

Đánh giá

Công nghệ
github-actions, python
Lĩnh vực
ci-cd, devops
Loại issue
Lỗi
Độ khó
4/5
Thời gian dự kiến
3-5 ngày
Mức độ hoạt động
Đình trệ
Độ rõ ràng
Cần làm rõ
Mức phù hợp với người mới
35/100

Nhận issue mới trong hộp thư của bạn

Bản tóm tắt ngắn những issue GitHub phù hợp với người mới.