-
Notifications
You must be signed in to change notification settings - Fork 1.9k
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
Issue with Android example #1816
Comments
@anantasty have you tried adding pil to the application requirements line in the buildozer.spec file?
|
Pip fails to install it instead of installing the recipe On Tue, Mar 29, 2016, 16:56 Drew A. notifications@github.com wrote:
|
Alright, making sure I understand the problem.
|
Yes that is absolutely true. It does not look live pil gets installed since On Wed, Mar 30, 2016, 10:13 Drew A. notifications@github.com wrote:
|
Starting to run out of ideas on this one. Because for some reason it builds fine with |
Sure I'll do that. Thanks a lot On Thu, Mar 31, 2016, 12:14 Drew A. notifications@github.com wrote:
|
Hey there! We're automatically closing this issue since the original poster (or another commenter) hasn't yet responded to the question or request made to them 14 days ago. We therefore assume that the user has lost interest or resolved the problem on their own. Closed issues that remain inactive for a long period may get automatically locked. Don't worry though; if this is in error, let us know with a comment and we'll be happy to reopen the issue. Thanks! (Please note that this is an automated comment.) |
I would appreciate that you re-open this issue. The way forward was to use pygame instead of PIL to resize images, however this is not satisfactory solution. |
Have pil in my spec file, did "from PIL import Image" on my py file, and still get the error: Traceback (most recent call last): @inclement that's the reason I need pillow so badly hahaha |
Hey guys.. I have the same issue when try to use opencv in android application.. Here is the error message logged to android adb logcat: ImportError: dlopen failed: "/data/data/org.test.myapp/files/app/lib/python2.7/site-packages/cv2/cv2.so" is 64-bit instead of 32-bit If anyone knows how to fix this error please comment below.. |
I have the exact same problem here. And I have to specify that I was correctly working few days ago (I used it for only for generating image file, and it worked as intended). my logcat display:
|
Would be nice to have the issue marked as Open again, since the problem still exists for multiple users and crashes the apps |
You should NOT put |
Hi @VajiraPrabuddhaka I got the same issue when I tried to put opencv as requirement in the buildozer.spec. Did you manage to fix this on your own ?
|
@NicoLivesey am also running on same issue... you found a fix? |
This issue has been automatically closed because there has been no response to our request for more information from the original author. With only the information that is currently in the issue, we don't have the means to take action. Please reach out if you have or find the answers we need so that we can investigate further. |
That doesn't seem like very good bot behaviour. |
i have the same problem i can't create any file on the device. Wen i try the app crash |
Bump. Please resolve this |
@anyone is this resolved? w.r.t. original issue with Pillow it gets imported with import PIL but is installed with pip install Pillow. The latter format is what should be dropped into buildspec reqs But I get same "is 64-bit instead of 32-bit" error with opencv, same as multiple users above. Am I to understand this error as apk installing 64 bit during build, but Android requiring 32-bit when deployed? |
Wait guys the pillow recipe should be working to me |
Apologies, lost the actual file due to cloning error on my VM -- but I'm 100% sure the requirements line was as follows I've switched to opencv for my image processing task, but I'm getting the same 64-bit error. Now my requirements line is |
PS -- since I'm on a VM, maybe specifying a 32-bit machine will compile openCV appropriately for android mobile. I'll let you know how it goes |
looks like the p4a recipe already builds for 32 buit, I just had to specify that instead of the PyPi download
|
Solution: python -m pip install pillow |
Same here |
+1 |
Same here but with opencv, if someone has a fix would be nice to know.
|
Did you find a solution to this @mabrao ? |
The example in examples/android/takepicture
Has some issues with PIL
I know python-for-android has a recipe for PIL using the original PIL but I am unsure how to triger that through buildozer.
The text was updated successfully, but these errors were encountered: