No puede seleccionar más de 25 temas Los temas deben comenzar con una letra o número, pueden incluir guiones ('-') y pueden tener hasta 35 caracteres de largo.
 
 
 
 
 

42 líneas
1.6 KiB

  1. # Bag3 / Bag4 Windows exe build (run all commands in this python/ folder)
  2. py -m pip install --upgrade pyinstaller
  3. py -m pip install --upgrade pywin32
  4. py -m pip install --upgrade Pillow "qrcode[pil]" requests pyserial
  5. # --- Bag4 (DataFlex with expiry) ---
  6. py -m PyInstaller --noconfirm --clean Bag4.spec
  7. # Output: dist\Bag4.exe (one-file). Copy Bag4.exe to the client PC.
  8. # Settings are created next to the exe: bag4_settings.json
  9. # Do not overwrite Bag3.exe; Bag3 and Bag4 are separate.
  10. # --- Bag3 (DataFlex without expiry) ---
  11. py -m PyInstaller --noconfirm --clean Bag3.spec
  12. # Output: dist\Bag3.exe
  13. # --- If the client exe flashes and closes ---
  14. 1) On the client PC, open cmd in the folder that contains the exe and run:
  15. Bag4.exe
  16. You should see the error in the console, or open bag4_startup_error.log next to Bag4.exe.
  17. (Bag3: bag3_startup_error.log)
  18. 2) Compare BUILD machines (both should match):
  19. py --version
  20. py -m PyInstaller --version
  21. py -m pip show pyinstaller pywin32 Pillow qrcode requests pyserial
  22. A broken build is often caused by:
  23. - Different Python major version (e.g. 3.13 vs 3.11)
  24. - Incomplete tkinter on that Python (Store Python / partial install)
  25. - Old PyInstaller missing Tcl/Tk files in the bundle
  26. 3) Rebuild on the machine that works, or reinstall Python from python.org (64-bit)
  27. and reinstall deps above, then rebuild.
  28. 4) Spec files disable UPX (upx=False) for stability; do not re-enable unless you test on the client.
  29. 5) Client needs 64-bit Windows and Microsoft VC++ Redistributable (same as your Python installer).
  30. 6) Antivirus may quarantine the exe — whitelist the folder if the log mentions missing DLL.