If you remove the try/except, the cause is fairly standard.
Traceback (most recent call last): File "astroalign.py", line 537, in 
_find_sources File "sep_pjw.pyx", line 21, in init sep_pjw 
ModuleNotFoundError: No module named '_version' During handling of the 
above exception, another exception occurred: Traceback (most recent call 
last): File "simple_align.py", line 25, in <module> transform, footprint = 
aa.find_transform(target_image, ref_image) 
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "astroalign.py", line 314, 
in find_transform TypeError: Input type for source not supported. [PYI-
1439842:ERROR] Failed to execute script 'simple_align' due to unhandled 
exception! 

The fix is just to add --hiddenimport=_version to the build command. (I’d 
call it a bug in sep_pjw that it’s keeping its version in a top level 
module rather than say sep_pjw._version but that’s another matter.)

Please never use blanket exception handling like that. We’d have fixed this 
in about 2 seconds if you hadn’t thrown away the stacktrace.
​

-- 
You received this message because you are subscribed to the Google Groups 
"PyInstaller" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To view this discussion visit 
https://groups.google.com/d/msgid/pyinstaller/e7b80820-9007-4996-bf86-53caf60ebdc5n%40googlegroups.com.

Reply via email to