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

オープン
#2,152 コメント 1 件 リアクション 0 件 担当者 0 名 GitHub で見る

メンテナーはふだん 1 日以内に返信

まだ誰も着手していません。

評価

難易度
5/5
見積もり時間
1週間以上
初心者へのやさしさ
8/100
issue の種類
バグ
明瞭さ
おおむね明確
活発さ
活発
技術スタック
cpp, python

調査の方向性

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.

索引モデルが issue の本文から書いたものです。

説明

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.

主要言語
C++
スター
4.8k
フォーク
557
平均マージ
1日 6時間
マージ済み PR(30日)
24

環境構築

はじめの一歩

  1. issue を最後まで読み、次にプロジェクトのコントリビューションガイドを読みます。
  2. 着手することを issue にコメントします — 二人が同じ作業をするのを防げます。
  3. リポジトリをフォークし、ブランチを切って変更します。
  4. issue 番号を参照したプルリクエストを送ります。

OpenNMT/CTranslate2 のほかの issue

OpenNMT/CTranslate2 の issue をすべて見る

似ている issue

C++ の issue をもっと見る

新しい issue をメールで受け取る

初心者向けの GitHub issue を短くまとめたダイジェスト。