Thanks for the suggestion. There was no change in pyinstaller results with your suggestion implemented while using any of the aforementioned import strategies. (Your suggested change worked fine with VSCode.)
On Thursday, 9 July 2020 23:26:27 UTC+12, bwoodsend wrote: > > 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/f4a8e9a0-daf3-4d25-b451-b0f0f2d459fbo%40googlegroups.com.
