Hmm, that is pretty odd. It certainly doesn’t normally matter if classes 
are defined in __init__.pyfiles. 

I’ve tried PyInstallering formulas and it’s working normally on my machine. 
Looking at the source code however there is some rather unconventional 
stuff happening in the top level *init*.py 
<https://github.com/vinci1it2000/formulas/blob/master/formulas/__init__.py> 
where it uses __getattr__() to load its submodules. Maybe could you try 
removing/commenting out the *getattr*() 
<https://github.com/vinci1it2000/formulas/blob/2f097d2362da4d8b508ff65f9ee9126259468869/formulas/__init__.py#L65>
 
function and changing the if statement 
<https://github.com/vinci1it2000/formulas/blob/2f097d2362da4d8b508ff65f9ee9126259468869/formulas/__init__.py#L74>
 
so that it’s always true (if True or sys.version_info[:2] < (3, 7) or 
os.environ.get('IMPORT_ALL') == 'True': would do it) in the 
formulas.__init__.py installed on your machine.

Other than that it looks pretty vanilla so I don’t see what else could be 
the issue.

Brénainn

-- 
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 on the web visit 
https://groups.google.com/d/msgid/pyinstaller/95c8edf1-067a-4189-b156-aee54da72d7cn%40googlegroups.com.

Reply via email to