slackapi / slackapi/python-slack-hooks

The "python" runtime executable is not detected on Windows machines

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

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

auto-triage-skip bug
Ngôn ngữ chính
Python
Star
9
Fork
2
Merge trung bình
13 giờ 3 phút
Pull request đã merge (30 ngày)
1

Mô tả

Description

After configuring a virtual environment with the latest Python CLI hooks and running the app it appears that the runtime cannot be found.

Version
Using slack.exe v3.9.0
OS Info
> ver
Microsoft Windows [Version 10.0.22000.2538]
 > pwsh --version
PowerShell 7.5.3
> python --version
Python 3.14.0
Steps to reproduce:

Share the commands to run, source code, and project settings:

  1. Create an app from the Bolt for Python starter template: http://github.com/slack-samples/bolt-python-starter-template
  2. Set up the virtual environment including hooks.
  3. Attempt to install and run a new app with the verbose flag.
Expected result:

The app to begin using the installed "python" runtime.

Actual result:
> slack run --team T02A074M3U3

> If you leave this team, you can no longer manage the installed apps
   Installed apps will belong to the team if you leave the workspace

Check C:\Users\user\.slack\logs\slack-debug-20251031.log for error logs
The hook runtime executable was not found (runtime_not_found)
   The `start` script was not found (sdk_hook_not_found)

> Suggestion
   Make sure the required runtime has been installed to run hook scripts.

From the verbose logs:

starting hook command: python3 -m slack_cli_hooks.hooks.get_hooks
P
ython was not found; run without arguments to install from the Microsoft Store, or disable this shortcut from Settings > Apps > Advanced app settings > App execution aliases.
finished hook command: python3 -m slack_cli_hooks.hooks.get_hooks
failed to initialize hook configurations: Error running 'GetHooks' command: exit status 1 (sdk_hook_invocation_failed)
   Python was not found; run without arguments to install from the Microsoft Store, or disable this shortcut from Settings > Apps > Advanced app settings > App execution aliases.

> Suggestion
   Run `slack.exe doctor` to check that your system dependencies are up-to-date.

Requirements
  • I've read and understood the Contributing guidelines and have done my best effort to follow them.
  • I've read and agree to the Code of Conduct.
  • I've searched for any related issues and avoided creating a duplicate issue.

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 lời gọi hook Windows được hiển thị trong nhật ký chi tiết: python3 -m slack_cli_hooks.hooks.get_hooks, và theo dõi cách CLI chọn tệp thực thi runtime. Xác minh hành vi với các phiên bản Windows, PowerShell và Python được liệt kê; hoàn tất khi tìm thấy runtime python đã cài đặt và cấu hình hook được khởi tạo thành công.

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

Đánh giá

Công nghệ
python
Lĩnh vực
cli
Loại issue
Lỗi
Độ khó
3/5
Thời gian dự kiến
1-2 ngày
Mức độ hoạt động
Đình trệ
Độ rõ ràng
Khá rõ ràng
Mức phù hợp với người mới
45/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.