-
-
Notifications
You must be signed in to change notification settings - Fork 2
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Bug: cannot add more py files and non-python files to the package read by the pdt #41
Comments
There is something tricky around python packages and Android filesystem that I have not fully understood yet. There is work in progress in the background to get this to function fine, but focus at the moment is on this issue (with a single file). The workaround (for now) is to create all extra python package files from a unique python script. Not ideal, but I'll get back to this issue. Thanks for your contribution. |
Unfortunately, there are too many files to fit everything into one script 😢 The same problem exists with resources like images, icons, etc. I think this is also related to the Android file system. I will also do some research and provide you with any information I have. |
No worries, there might be something we have missed. Interestingly enough, I was looking at the issue I mentioned and I managed to access resources from within the built "pyqt5 android" package. There is an example here (the whole |
I have created a very basic package that can be read by the pdt -> Link. At the moment, it is only composed of a config file and a python module, but it works on Android through I'll update into a more comprehensive package, but you can give it a try and get the inspiration for your own package. |
Servus @achille-martin I'm trying to load images into an application based on your externalpy example project.
So, I expected it to work, but unfortunately it didn't. Android application logs are given below:
The resource directory looks like this: I have no idea what's wrong |
Therefore, the file is only accessible within the So I would suggest that you move your condition checks Let me know if that does the trick! |
Hi @achille-martin
When I am trying to deploy an application created with more than one .py file, the .apk isn't running on Android.
For the example you can see the followig structure:
And of course, the config.ptd file:
I think that the files are not collecting correct by the building tool, can you try by yourself and come with a feedback?
The text was updated successfully, but these errors were encountered: