Forum
>>
Programmazione Python
>>
IDE ed Editor
>>
Passaggio eseguibile creato in Python
Pagina: 1
Esegui il login per scrivere una risposta.
Pagina: 1
Scritto da Donato993 ![]() |
2024-03-28 13:16:25 - Passaggio eseguibile creato in Python
|
Buongiorno a tutti,
mi chiamo Donato e sono un programmatore PLC ed esperienza pari a zero con Python ![]() Fin qui tutto ok, ma quando passo l'exe sul PC del cliente (Windows 11 x64, IDE PyCharm Community Edition (2023.1.4), Python 3.10.7) mi ritrovo il codice che gira benissimo in IDE ma l'eseguibile non funziona, come mai? Utilizzo all'interno dello script (In Allegato) le librerie snap7.dll e HID. Grazie in anticipo. |
|
Scritto da Ujdiks ![]() |
2025-01-22 09:42:32 - Re: Passaggio eseguibile creato in Python
|
Scritto da williamclark ![]() |
2025-05-07 07:28:02 - Re: Passaggio eseguibile creato in Python
|
It appears that the problem you're facing is dependency-related, with snap7.dll and HID libraries. When you run your Python script through PyInstaller to convert it into an executable, it bundles your code but in some cases does not include all required dynamic libraries or dependencies automatically. This can result in problems if running the .exe on another machine, particularly if such libraries are not installed in the same location or are not being bundled properly. To avoid this, ensure that the necessary DLL files (such as snap7.dll) and any dependencies are specifically mentioned in the PyInstaller spec file or are stored in the same directory as the executable. Also, make sure that the system of the customer has the same version of Python and required libraries installed. You may also consider looking at the PyInstaller documentation for how you can include such external libraries at build time.
--- Ultima modifica di williamclark in data 2025-05-07 07:28:26 --- |
Pagina: 1
Esegui il login per scrivere una risposta.