Windows Smart App Control blocks the official CTranslate2 4.9.0 DLL (WinError 4551)

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

Maintainer thường phản hồi trong vòng 1 ngày

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

Đánh giá

Độ khó
5/5
Thời gian dự kiến
Hơn một tuần
Mức phù hợp với người mới
8/100
Loại issue
Lỗi
Độ rõ ràng
Khá rõ ràng
Mức độ hoạt động
Sôi nổi
Công nghệ
cpp, python
Lĩnh vực
distributed-systems

Hướng nghiên cứu

The problem is a Windows Smart App Control block on the unsigned native ctranslate2.dll in the 4.9.0 wheel, not a code defect. A newcomer would first confirm how the wheel is built and packaged in the release pipeline, then check whether any signing step exists. Done means a documented answer or a signing plan, which needs maintainer and certificate decisions.

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

Mô tả

Hello CTranslate2 maintainers,

I'm trying to use Faster Whisper on Windows 11 with Smart App Control enabled.

Importing Faster Whisper fails because Windows blocks the CTranslate2 native DLL:

OSError: [WinError 4551] An Application Control policy has blocked this file

Environment

  • Windows PowerShell 5.1
  • Python 3.12.10 (64-bit)
  • faster-whisper 1.2.1
  • ctranslate2 4.9.0
  • pip 26.3
  • Visual C++ Redistributable x64 installed

Investigation results

  1. Downloaded the official CTranslate2 4.9.0 Windows wheel from PyPI.
  2. Extracted ctranslate2/ctranslate2.dll from the wheel.
  3. Compared the extracted DLL with the installed DLL.
  4. Both SHA256 hashes match exactly:

A9009AD682A2C5A11F6942C3B8DAC68189D629685EF02FBC3E1AB6E4C6082AB8

  1. Get-AuthenticodeSignature reports NotSigned for both DLLs.
  2. Windows Code Integrity logs show events 3077, 3033 and 3118 associated with the blocked DLL.

Questions

  1. Is an Authenticode-signed Windows DLL or wheel available?
  2. Are there plans to sign the native Windows binaries in future releases?
  3. Is there an officially supported solution for users who need to keep Windows Smart App Control enabled?

I would prefer to keep Smart App Control enabled rather than disable Windows security protections.

Thank you for your help.

Ngôn ngữ chính
C++
Star
4.8k
Fork
557
Merge trung bình
1 ngày 6 giờ
Pull request đã merge (30 ngày)
24

Chuẩn bị môi trường

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.

Issue khác của OpenNMT/CTranslate2

Tất cả issue của OpenNMT/CTranslate2

Issue tương tự

Thêm issue về C++

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.