Skip to content
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

Error when building Android Application with Google modules #2530

Closed
Sampleqs opened this issue Dec 8, 2021 · 1 comment
Closed

Error when building Android Application with Google modules #2530

Sampleqs opened this issue Dec 8, 2021 · 1 comment

Comments

@Sampleqs
Copy link

Sampleqs commented Dec 8, 2021

Description

Stuck in the issues with moving working code to Android application. Use buildozer spec file. When launching show an error.

from google.cloud import bigquery
from google.oauth2 import service_account

buildozer.spec

Some modules in spec file: python3,kivy==2.0.0,https://github.com/kivymd/KivyMD/archive/master.zip,pillow,beautifulsoup4,numpy,pandas,requests,urllib3,chardet,idna,google-api-core,google-auth,google-auth-oauthlib,google-cloud-bigquery,google-cloud-core,google-cloud-storage,google-cloud-vision,google-crc32c,google-pasta,google-resumable-media,googleapis-common-protos,pyarrow,proto-plus,protobuf,protobuf_cpp,pyasn1,pyasn1_modules,pycparser,sdl2_ttf==2.0.15,pyparsing,rsa,gcloud,asn1crypto,charset-normalizer,google-cloud,google-cloud-bigquery-storage,google-cloud-language,google,grpcio,packaging,python-dateutil,opentelemetry-instrumentation,opentelemetry-exporter-gcp-trace,opentelemetry-api,opentelemetry-sdk,pandas-gbq,oauth2client,google-api-python-client,google-oauth,google-auth-httplib2,oauthlib,pyrebase,requests-toolbelt,python-jwt,pycryptodome,httplib2,jwcrypto,cryptography,openssl,KivyMD,pyasn1-modules,gspread,pyopenssl,credentials,oauth2,cachetools,requests_oauthlib,google.cloud.bigquery,google.cloud.storage,bigquery,six

Logs

ModuleNotFoundError: No module named 'google.cloud'
ModuleNotFoundError: No module named 'google.oauth2'

Thanks!

@misl6 misl6 transferred this issue from kivy/kivy Dec 8, 2021
@Sampleqs Sampleqs changed the title Eroor when building Android Application with Google modules Error when building Android Application with Google modules Dec 8, 2021
@Sampleqs
Copy link
Author

Sampleqs commented Dec 8, 2021

@misl6
Also some examples:
https://groups.google.com/g/kivy-users/c/c6biPoImT1w (what about some other modules?)
https://stackoverflow.com/questions/64452170/kivy-buildozer-firestore-error-modulenotfounderror-no-module-named-google-cl/70265284#70265284 (how can I do that with Google Colab?)
https://stackoverflow.com/questions/62764550/how-to-correctly-implement-the-google-api-on-a-kivy-application-compiling-with-b/70265412#70265412 (not working)

Guess that more modules can fix "no module" error, also I try with few modules.

Seems, like Google modules launch from some folder. But I don't know how to specify it in buildozer file.

@Sampleqs Sampleqs closed this as completed Dec 9, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant