Python Forum
Pyinstaller and a custom python script
Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Pyinstaller and a custom python script
#1
Good day. this is my first time posting. I have a python app that we are using for autonomous guided vehicles obstacle detection. I am trying to get it into a .exe using pyinstaller but am not having any luck. its pretty custom but i feel like its doable to make it easier for deployments. I was looking for some help on trouble shooting whats going wrong. Claude AI has helped some but i keep getting stuck when deploying it and giving. here is the error. Keep in mind that this work fine when deploying with python but we are trying to dumb it down for the non techies when deploying in the field.


Traceback (most recent call last):
File "deploy.py", line 14, in <module>
File "PyInstaller\loader\pyimod02_importers.py", line 378, in exec_module
File "ovp_docker_utils\__init__.py", line 1, in <module>
File "PyInstaller\loader\pyimod02_importers.py", line 378, in exec_module
File "ovp_docker_utils\ovp_docker_utils.py", line 33, in <module>
File "PyInstaller\loader\pyimod02_importers.py", line 378, in exec_module
File "ovp_docker_utils\ssh_key_gen.py", line 18, in <module>
ImportError: generic_type: type "Awaitable" is already registered!
[PYI-22584:ERROR] Failed to execute script 'deploy' due to unhandled exception!
Reply


Possibly Related Threads…
Thread Author Replies Views Last Post
  Python - pyinstaller Hyster 0 337 Mar-05-2025, 07:11 PM
Last Post: Hyster
  I want to create custom charts in Python. js1152410 1 1,193 Nov-13-2023, 05:45 PM
Last Post: gulshan212
  Is there a *.bat DOS batch script to *.py Python Script converter? pstein 3 8,209 Jun-29-2023, 11:57 AM
Last Post: gologica
  Make console show after script was built with Pyinstaller --NOCONSOLE? H84Gabor 0 1,842 May-05-2022, 12:32 PM
Last Post: H84Gabor
  Pyinstaller 3 Python 2 mckymntl 0 1,833 Feb-07-2022, 06:28 AM
Last Post: mckymntl
  Python 3.7, Windows 10, pyinstaller, winsound, no sound in executable kmarien 3 5,098 Nov-30-2020, 04:10 PM
Last Post: buran
  How to kill a bash script running as root from a python script? jc_lafleur 4 8,089 Jun-26-2020, 10:50 PM
Last Post: jc_lafleur
  crontab on RHEL7 not calling python script wrapped in shell script benthomson 1 3,009 May-28-2020, 05:27 PM
Last Post: micseydel
  importing same python library in multiple custom module escape_freedom13 6 5,237 May-10-2020, 07:01 PM
Last Post: escape_freedom13
  Cannot Change Python script to exe using Pyinstaller omar_mohsen 3 3,333 Dec-19-2019, 01:05 PM
Last Post: buran

Forum Jump:

User Panel Messages

Announcements
Announcement #1 8/1/2020
Announcement #2 8/2/2020
Announcement #3 8/6/2020