Open stone-cloud opened 1 month ago
Hi @stone-cloud, Thank you for your persistence (and for opening a new issue).
I am not exactly sure that I understand your problem.
Can you send me a very minimal example of your app so that I can test on my end (reproduce the error)?
Can you explain as well:
Ok, I am building an app, the repo address is classdemo. It can select a picture and perform classification prediction, then return and print the classification results. The program will use Python packages opencv onnxruntime numpy pyqt5
. When I run my program, I get the error.
@stone-cloud, thank you for sharing.
I had a look at the code: do you have an issue with PyQt5 or any python dependency then? (that means you don't have an issue with pyqtdeploy
or PyQt-CroM
right?)
If that is the case, then I will set the priority as low and come back later if I can!
Besides, a little warning: I am still trying to figure out how to "cleanly" add non-standard python packages (like numpy
) into the Android app (reference: https://github.com/achille-martin/pyqt-crom/issues/32). This means that for now you might not be able to port your app to Android just yet. Unless you figure things out before I do!
I am not exactly sure that I understand what you mean. I am confused because my demo and the demo in PyQt-CroM both include the Python packagePyQt5
, but it is not working in my demo.
Ok, let's take a step back then because there is mutual confusion there.
I suppose that you are trying to create a custom app based on the demo app.
1) Have you tried running the demo app first? (this one -> https://github.com/achille-martin/pyqt-crom/tree/main/examples/demo/demo_project/demo_pkg)
If no -> try it If yes -> great
2) Does the demo app run on Linux?
If no -> let's see what is going on If yes -> great
3) Does the demo app run on Android?
If no -> let's see what is going on If yes -> great
4) Does your custom app run on Linux?
If no -> you'll have to debug that first If yes -> great
5) Does your custom app run on Android?
According to the initial message, it does not.
To narrow the problem down:
6) Which module is the source of the problem?
I suggest that you remove the "imported modules" (and associated functions) one by one until you figure out which one is the problem.
For instance, run your app with only PyQt5
, then PyQt5
+ numpy
, and so on, until the problem appears.
I will try it and am excited for the next version. Thank you.
Hi @achille-martin, It's me! Opening a new issue is for the convenience of others who encounter the same problem to query. Thank you so much again. pyqt-crom is very simple and user-friendly.
Description
When I run my own app, python package file copying failed. I found the reason is that some folder names contain
" . "
, such as"Models.2"
. But when copying, it will be replaced with" / "
. TO BE HONEST, I feel strange. Because the demo ran successfully and also included the pyqt5 package. If you know how to solve it, please let me know.Issues