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

Abierto
#2,152 1 comentario 0 reacciones 0 asignados Ver en GitHub

Los mantenedores suelen responder en 1 día

Nadie ha tomado este issue todavía.

Evaluación

Dificultad
5/5
Tiempo estimado
Más de una semana
Aptitud para principiantes
8/100
Tipo de issue
Error
Claridad
Bastante claro
Estado de actividad
Activo
Stack tecnológico
cpp, python

Línea de trabajo

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.

Escrito por el modelo de indexación a partir del texto del issue.

Descripción

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.

Lenguaje dominante
C++
Estrellas
4.8k
Forks
557
Merge medio
1 d 6 h
PR fusionados (30 d)
24

Preparar el entorno

Primeros pasos

  1. Lee el issue completo y luego la guía de contribución del proyecto.
  2. Comenta en el issue que vas a ocuparte — evita que dos personas hagan lo mismo.
  3. Haz un fork del repositorio y trabaja en una rama.
  4. Abre un pull request que haga referencia al número del issue.

Más de OpenNMT/CTranslate2

Todos los issues de OpenNMT/CTranslate2

Issues similares

Más issues de C++

Recibe los nuevos issues en tu correo

Un resumen breve de issues de GitHub para principiantes.