--
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 pyinstaller...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/pyinstaller/7052d4a3-3cf6-4c12-99bc-ad0cf1b97b34%40googlegroups.com.
I looked into that but there are too many packages that needs to be in the exclude list.
That is going to be an overhead, is there some way to just point which packages to import.
On Friday, March 27, 2020 at 12:50:07 AM UTC+5:30, Amir Rossert wrote:Hi, try to look at —hidden-import and —exclude-module flags
https://pythonhosted.org/PyInstaller/usage.html#what-to-bundle-where-to-search
--
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 pyinstaller...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/pyinstaller/7052d4a3-3cf6-4c12-99bc-ad0cf1b97b34%40googlegroups.com.
My favourite technique to identify which dependencies I need is to create a clean venv and then try testing my code with it active. If I get an import error I can either look at why I need that import or, if it really is needed, simply pip install within the venv.
Of course running pylint and addressing any unneeded/unused imports helps a lot as well.
Steve Barnes
To view this discussion on the web visit https://groups.google.com/d/msgid/pyinstaller/CALGmxE%2BKtD5z29pxk2ncf2OLW4g9XAt19iCuM5UF9whmfnpOVQ%40mail.gmail.com.
Abhishek,
Creating a venv and installing the packages that you list in the example below I found that SciPy was not installed in the process, so it is not a declared dependency of any of them! However, running `grin scipy` in the venvs library directory I found a number of conditional imports of scipy – so basically if you have it available it will be considered a, possibly conditional, import and so will be included by pyinstaller and most similar packages but if it is missing it almost certainly will not cause an issue.
You can see why I like venv for building my code into executables/deliverables.
Steve
--
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
pyinstaller...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/pyinstaller/551c94ee-d187-47f8-8127-06e4273c3080%40googlegroups.com.
On Mar 28, 2020, at 8:36 AM, Steve Barnes <Gadge...@live.co.uk> wrote:
To view this discussion on the web visit https://groups.google.com/d/msgid/pyinstaller/VI1PR03MB4479FA5E85CDC5A4E5F55CB69BCD0%40VI1PR03MB4479.eurprd03.prod.outlook.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/pyinstaller/CAP2Qz%2BVruN_ekZUOkSpCMOkO_Og6Xw8rFhc6z6286n__%2BzKXMA%40mail.gmail.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/pyinstaller/CALGmxEK-b-rJprJ%2B8jOWj53JG3tUgB0_FzR%2BcVxtn2pO60T6Nw%40mail.gmail.com.