Résolue

Dossier target

# Résolution d'erreurs # Ligne de commande # Système d'exploitation

Bonjour,

Je possède windows 11 et lorsque je lance la commande dans le cmd fbs freeze, j'obtient l'erreur suivante :

FileNotFoundError: Could not find api-ms-win-crt-multibyte-l1-1-0.dll on your PATH. If you are on Windows 10, you may have to install the Windows 10 SDK from https://dev.windows.com/en-us/downloads/windows-10-sdk. Otherwise, try installing KB2999226 from https://support.microsoft.com/en-us/kb/2999226. In both cases, add the directory containing api-ms-win-crt-multibyte-l1-1-0.dll to your PATH environment variable afterwards. If there are 32 and 64 bit versions of the DLL, use the 64 bit one (because that's the bitness of your current Python interpreter).


Le dossier target est bien crée avec warmup.exe mais quand j'essaye de l'ouvrir rien ne se passe.

Merci pour votre aide.

salut hdcasedi,

il te dit d'intasler :: the Windows 10 SDK

https://dev.windows.com/en-us/downloads/windows-10-sdk


c'est sur cette page :: Windows App SDK


https://learn.microsoft.com/en-us/windows/apps/windows-app-sdk/


Salut,


Jai installé Windows SDK for Windows 11 (10.0.22621.1) Released as part of Windows 11, version 22H2

et toujours le même problème.


FileNotFoundError: Could not find api-ms-win-crt-multibyte-l1-1-0.dll on your PATH. If you are on Windows 10, you may have to install the Windows 10 SDK from https://dev.windows.com/en-us/downloads/windows-10-sdk. Otherwise, try installing KB2999226 from https://support.microsoft.com/en-us/kb/2999226. In both cases, add the directory containing api-ms-win-crt-multibyte-l1-1-0.dll to your PATH environment variable afterwards. If there are 32 and 64 bit versions of the DLL, use the 64 bit one (because that's the bitness of your current Python interpreter).



Thibault houdon

Mentor

Salut Mohamed,


Est-il possible de voir ton script ?


As-tu bien installé la bonne version (32 bits ou 64 bits du DLL) et également as-tu redémarré ton ordinateur avant de relancer la création du .exe ?

Salut Thibault


voici mon script :



from fbs_runtime.application_context.PySide2 import ApplicationContext


import sys


from package.main_window import MainWindow


if __name__ == '__main__':

    appctxt = ApplicationContext()       # 1. Instantiate ApplicationContext

    window = MainWindow()

    window.resize(250, 150)

    window.show()

    exit_code = appctxt.app.exec_()      # 2. Invoke appctxt.app.exec_()

    sys.exit(exit_code)


oui j'ai installer la version 64 bits et j'ai bien redémarré mon ordi


Thibault houdon

Mentor

Bonjour Mohamed, je reviens avec quelques éléments de réponses après avoir cherché plus en profondeur sur le net.


Je te conseille de regarder les instructions ici :

https://www.pythonguis.com/faq/fbs-error-python-3-8/


Dans la deuxième partie de la page, il indique avoir résolu le problème en ajoutant le chemin d'installation du SDK dans la variable PATH.


Je te laisse regarder ça, n'hésite pas si tu as des difficultés à modifier les variables d'environnement on pourra t'aider sur le sujet (il a mis des captures d'écrans dans son post donc c'est assez clair normalement).

Salut Mohamed est ce que la réponse de Thibault a résolu ton problème ? Merci

Inscris-toi

(c'est gratuit !)

Inscris-toi

Tu dois créer un compte pour participer aux discussions.

Créer un compte

Rechercher sur le site

Formulaire de contact

Inscris-toi à Docstring

Pour commencer ton apprentissage.

Tu as déjà un compte ? Connecte-toi.