python-for-android icon indicating copy to clipboard operation
python-for-android copied to clipboard

dlib module not found error

Open abhishekju06 opened this issue 5 years ago • 0 comments

Checklist

  • [ ] the issue is indeed a bug and not a support request
  • [x] issue doesn't already exist: https://github.com/kivy/python-for-android/issues
  • [x] I have a short, runnable example that reproduces the issue
  • [ ] I reproduced the problem with the latest development version (p4a.branch = develop)
  • [ ] I used the grave accent (aka backticks) to format code or logs when appropriated

Versions

  • Python:3.7
  • OS:Ubuntu 20.04
  • Kivy:1.11.1
  • Cython:
  • OpenJDK:

Description

@AndreMiras I am building a face recognition app. I am using import face_recognition as fr. Thus, I put face_recognition in the buildozer spec. My app didn't launch correctly. I traced the logcat and saw this one: ModuleNotFoundError: No module named 'dlib' Python for android ended Please help me to solve this issue. Any alternative library that I can use for face recognition which has no issues with python for android recipe would also solve my problem. I am in dire need of it!

buildozer.spec

Command:

buildozer -v android debug deploy run logcat > my_log.txt

Spec file:

# (str) Title of your application
title = My Application

# (str) Package name
package.name = myapp

# (str) Package domain (needed for android/ios packaging)
package.domain = org.test

# (str) Source code where the main.py live
source.dir = .

# (list) Source files to include (let empty to include all the files)
source.include_exts = py,png,jpg,kv,atlas,csv

# (list) List of inclusions using pattern matching
#source.include_patterns = assets/*,images/*.png

# (list) Source files to exclude (let empty to not exclude anything)
#source.exclude_exts = spec

# (list) List of directory to exclude (let empty to not exclude anything)
#source.exclude_dirs = tests, bin

# (list) List of exclusions using pattern matching
#source.exclude_patterns = license,images/*/*.jpg

# (str) Application versioning (method 1)
version = 0.1

# (str) Application versioning (method 2)
# version.regex = __version__ = ['"](.*)['"]
# version.filename = %(source.dir)s/main.py

# (list) Application requirements
# comma separated e.g. requirements = sqlite3,kivy
requirements = android,python3,kivy,kivymd,kivy_garden.xcamera,pillow,face_recognition

# (str) Custom source folders for requirements
# Sets custom source for any requirements with recipes
# requirements.source.kivy = ../../kivy

# (list) Garden requirements
#garden_requirements =

# (str) Presplash of the application
#presplash.filename = %(source.dir)s/data/presplash.png

# (str) Icon of the application
#icon.filename = %(source.dir)s/data/icon.png

# (str) Supported orientation (one of landscape, sensorLandscape, portrait or all)
orientation = all

# (list) List of service to declare
#services = NAME:ENTRYPOINT_TO_PY,NAME2:ENTRYPOINT2_TO_PY

#
# OSX Specific
#

#
# author = © Copyright Info

# change the major version of python used by the app
osx.python_version = 3

# Kivy version to use
osx.kivy_version = 1.11.1

#
# Android specific
#

# (bool) Indicate if the application should be fullscreen or not
fullscreen = 0

# (string) Presplash background color (for new android toolchain)
# Supported formats are: #RRGGBB #AARRGGBB or one of the following names:
# red, blue, green, black, white, gray, cyan, magenta, yellow, lightgray,
# darkgray, grey, lightgrey, darkgrey, aqua, fuchsia, lime, maroon, navy,
# olive, purple, silver, teal.
#android.presplash_color = #FFFFFF

# (list) Permissions
android.permissions = CAMERA,WRITE_EXTERNAL_STORAGE

# (int) Target Android API, should be as high as possible.
android.api = 28

# (int) Minimum API your APK will support.
#android.minapi = 21

# (int) Android SDK version to use
#android.sdk = 20

# (str) Android NDK version to use
#android.ndk = 19b

# (int) Android NDK API to use. This is the minimum API your app will support, it should usually match android.minapi.
#android.ndk_api = 21

Logs

ModuleNotFoundError: No module named 'dlib'
Python for android ended

abhishekju06 avatar Jan 02 '21 07:01 abhishekju06