ChatCrawlersearch across public Telegram Open the app
Q

Qt for Python (PySide/Shiboken)

10 March 2024
2024-03-10×
10 March 2024
I trie to package pyside6 code to apk but I'm encountering error c cannot create executable
I didn't think PySide was easily buildable for android yet.
K
PinePhone has Python packages, and you can use PySide there, but I hadn't heard any successes building and deploying packaged python apps aside from some specialized ones like a python interpreter environment itself for android users to write python on their phones.
Although I am not app developer or android developer, just making random projects with python
I
On pyside Wikipedia page pyside promises that it can run on android this is misleading, I don't know who written this
C
We do have deployment to android, it's not misleading. I have seen a couple of examples working on an Android phone :)
Just out of curiosity, why is there --force at PySide6/scripts/deploy_lib/python_helper.py:184:69?
A
Secondly, why does pyside6-deploy set qml_files and excluded_qml_plugins unless some are specified? Do I need any QML files at all if I use QtWidgets only? I'd expect to have qml_files empty then, but the tool disallows that.
Cristián 🥑without knowing which version, I don't know the content of the line, if it's command=[self.exe, "-m", "pip", "install", "--force", package] I'd say it's for re-install the package. If you believe it should not be there, you can submit a little patch :)
Indeed, that's the line. The argument came here hardly by mistake. So, I suppose, it's there for a reason. I just wonder what the reason is. Maybe, that's to get exactly nuitka==1.8.0, not another version. If so, the patch would be something like from importlib.metadata import version; if version('nuitka') != "1.8": ...
But the lines are already there… I'm a bit confused of why I fall into the branch at all.
A
Guess what? In pysidedeploy.spec, the nuitka version is 1.8.0, but version('nuitka') returns 1.8 without .0 at the end. That's the root of the issue.
I
The patch is already in.
Anton YablokovAs for the topic on the Android deployment, there is not a single word about it at https://doc.qt.io/qtforpython-6/deployment/deployment-pyside6-deploy.html. There is little surprise that the one running pyside6-android-deploy misses wheel-pyside and wheel-shiboken, both of them are nowhere to be fo
Currently you have to cross compile the PySide6 Android wheels yourself for the platform you are targeting. You can find the instructions here, although it is slightly outdated. We are working on releasing official Android wheels and it should be available pretty soon. Once that is ready, we will add proper documentation on how to use the tool.
A
Thank you. I was hoping to find a link to the page in the docs. Please place it somewhere there until the wheels are released.
I
The tool is still in Technical Preview. This is why it's not in the official docs yet. But like I said, it will be available really soon.
A
Not sure if this is a known issue but providing only universal2 wheels on Macos makes impossible to build wheels on Python 3.8 with cibuildwheel (unless I missed something)
Calendar: March 2024
MoTuWeThFrSaSu1213543576789101035112412132141151161781819201321272223242526274283293012318
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