ChatCrawlersearch across public Telegram Open the app
Q

Qt for Python (PySide/Shiboken)

17 October 2022
2022-10-17×
17 October 2022
anyone know how to get a as small as possible software using pyinstaller?
I
it seems very large after using pyside
same as with "how do I make my code faster" really: There's no "one-size-fits-all" answer, you'll need to measure (i.e. find what the biggest files in your bundle are, in this case), and then find out if you can e.g. avoid using those modules, or if there is something PyInstaller outputs which isn't actually needed (it shouldn't be)
F
or I suppose you could rebuild your Qt to make it more lightweight, but that seems hardly worth it
I
does any deep insight exist when we use pyinstaller?
I
just curious about why so big even for a hello world...
F
as I said, look at the files in your output
C
if you are using QtWidgets, QtGui and QtCore, you need to check the size of the binaries. You cannot get lower than that
F
I can take a look if you share what you have, apparently it's not just a hello world after all
should i remove all the useless “import ppp” and “from zzz import...”?(i import some module but i don’t actually use it
I
is this helpful for reducing the final program size?
I
You mean pyinstaller will pack all the modules appearing in import sentence?
and as I said, check your virtual environment. There you will find all the binaries (.so, .dynlib, .dll) for both pyside and Qt, so you get an estimate
C
many people (if not most) are not native speakers as well, so don't worry :)
I
Hi all, The Qt5Compat.GraphicalEffects Module was supposed to return with PySide 6.4.0. It has been in the one of the development versions but I can't find it within the version released last week. Does someone knows more about this?
so we enable the CI, and that was included in the "old wheel creation process"
C
the new one, requires add to explicitly include files. We might have another release before 6.4.1, so hopefully next week we will have more news. Mainly due to a Python version issue we mistakenly included in the release.
I
Okay, that should help. I also encountered an error with PyInstaller and PySide 6.4.0 where it is still looking for the deprecated Qml2ImportsPath. I know that PyInstaller != PySide, but do you know where should I report that issue?
K
Oh and @cmaureir , I'll take a look at the example you're requesting. I'll set aside some time to work on it.
pretty sure that it won't bundle the modules you don't import
F
Yes, as the first sentence under that link says
Calendar: October 2022
Archive by month
Open in Telegram Каталог площадок Искать в ChatCrawler

A snapshot of an open public feed from the search index ChatCrawler — “Google for public Telegram”; refreshed as the venue is crawled. Times are UTC.

Public content only, official Telegram API. About · FAQ · What we do not do · Remove a page · Catalog