zillow / ctds

Python DB-API 2.0 library for MS SQL Server
MIT License
83 stars 12 forks source link

ctds __init__.py failed if used from executable built with pyinstaller #98

Open umnyaga opened 1 year ago

umnyaga commented 1 year ago

I have a python script which works perfectly. I wanted to make an executable out of it using PyInstaller. Once I tried to execute it, I got following error: $ dist/main Traceback (most recent call last): File "main.py", line 2, in import ctds File "PyInstaller/loader/pyimod02_importers.py", line 493, in exec_module File "ctds/init.py", line 8, in ModuleNotFoundError: No module named 'uuid' [203506] Failed to execute script 'main' due to unhandled exception!

joshuahlang commented 1 year ago

The uuid module is part of the python standard library. Are you using some non-standard build of python which wasn't compiled with uuid support by chance?