marcelinohermida / PRIMO_WatchDog

Automation of simulations with the Monte Carlo software PRIMO
Apache License 2.0
1 stars 0 forks source link

Compilation error #3

Open aruizbueno opened 2 months ago

aruizbueno commented 2 months ago

Hi Marcelino,

I get an error when I run this command to compile Primo_WatachDog:

pyinstaller -F -i PRIMO_WATCHDOG.ico --splash PRIMO_WATCHDOG_splash.png --collect-all pyfiglet --add-data=”dog-bark.wav;.” PRIMO_WatchDog.py

Error_compilación

Can you help me please?

Thanks in advance,

Antonio Ruiz

marcelinohermida commented 2 months ago

Hola Antonio:

Ante todo, muchas gracias por tu interés en PRIMO Watchdog script!

Intento ayudarte a resolver el error que tienes en la compilación. El error parece que sale porque tienes instalados dos paquetes de Python que se usan para hacer interfaces gráficas: Pyside6 y PyQt5. La solución más sencilla sería desinstalar uno de ellos, y volver a probar la compilación, pero si tienes los dos seguramente los necesites para otros programas.

Lo que puedes probar es indicarle a Pyinstaller que ignore a uno de ellos, poniendo "--exclude-module PySide6" en el comando de compilación (o bien--exclude-module PyQt5).

Entiendo que lo quieres compilar porque has hecho alguna modificación al código. Si no es así, te sugiero usar el script ya compilado, que puedes encontrar en

https://github.com/marcelinohermida/PRIMO_WatchDog/releases/tag/v1.10_PRIMO_1814_release [https://opengraph.githubassets.com/c0e5f863fc058d6d995dce2ad52052a29cfab8328992dd0508fb09a5650f13fb/marcelinohermida/PRIMO_WatchDog/releases/tag/v1.10_PRIMO_1814_release]https://github.com/marcelinohermida/PRIMO_WatchDog/releases/tag/v1.10_PRIMO_1814_release Release PRIMO WatchDog v1.10 for PRIMO 0.3.64.1814 · marcelinohermida/PRIMO_WatchDoghttps://github.com/marcelinohermida/PRIMO_WatchDog/releases/tag/v1.10_PRIMO_1814_release PRIMO WatchDog v1.10 for PRIMO 0.3.64.1814. First version released. The distributed package includes a .zip file containing the following files: • PRIMO_WatchDog.exe: Windows executable file. • CON... github.com

En el archivo zip que te puedes bajar se incluye un manual detallando cómo configurarlo.

Espero que con esto te funcione. Si no, por favor, házmelo saber.

Un saludo,

Marcelino

Dr. Marcelino Hermida López

Medical physicist | Servei de Fisica i Protecció Radiològica

Hospital Universitari Vall d’Hebron

Vall d’Hebron Barcelona Hospital Campus

Passeig de la Vall d’Hebron, 119-129 | 08035 Barcelona | Tel. +34 93 274 6129

@.**@.> | www.vallhebron.comhttps://www.vallhebron.com/ca

Aquest missatge s’adreça exclusivament a la persona destinatària i pot contenir informació privilegiada o confidencial. Si no sou la persona destinatària indicada, us recordem que la utilització, divulgació i/o còpia sense autorització està prohibida en virtut de la legislació vigent. Si heu rebut aquest missatge per error, us demanem que ens ho feu saber immediatament per aquesta via i que el destruïu. Abans d’imprimir aquest correu, assegureu-vos que és realment necessari. Vall d’Hebron Barcelona Hospital Campus és un centre totalment lliure de fum.

Prohibit fumar a tot el recinte.


De: aruizbueno @.> Enviado: miércoles, 26 de junio de 2024 12:42 Para: marcelinohermida/PRIMO_WatchDog @.> Cc: Subscribed @.***> Asunto: [marcelinohermida/PRIMO_WatchDog] Compilation error (Issue #3)

Hi Marcelino,

I get an error when I run this command to compile Primo_WatachDog:

pyinstaller -F -i PRIMO_WATCHDOG.ico --splash PRIMO_WATCHDOG_splash.png --collect-all pyfiglet --add-data=”dog-bark.wav;.” PRIMO_WatchDog.py

Error_compilacion.png (view on web)https://github.com/marcelinohermida/PRIMO_WatchDog/assets/115100038/603c4053-520a-44ab-af0f-c401a136d9e3

Can you help me please?

Thanks in advance,

Antonio Ruiz

— Reply to this email directly, view it on GitHubhttps://github.com/marcelinohermida/PRIMO_WatchDog/issues/3, or unsubscribehttps://github.com/notifications/unsubscribe-auth/AEISHBL3IQI2EPNE5CVYVFDZJKLJRAVCNFSM6AAAAABJ5TTN6KVHI2DSMVQWIX3LMV43ASLTON2WKOZSGM3TIOJZGM3DINY. You are receiving this because you are subscribed to this thread.