Alguem pode me ajudar por favor? Can someone please help me?

105 views
Skip to first unread message

Lurious Silveirous

unread,
Aug 14, 2021, 4:12:18 PM8/14/21
to Kivy users support
Traceback (most recent call last):
   File "/home/lmx/PycharmProjects/login/main.py", line 79, in <module>
     Login().run()
   File "/home/lmx/PycharmProjects/login/lib/python3.8/site-packages/kivy/app.py", line 950, in run
     runTouchApp()
   File "/home/lmx/PycharmProjects/login/lib/python3.8/site-packages/kivy/base.py", line 582, in runTouchApp
     EventLoop.mainloop()
   File "/home/lmx/PycharmProjects/login/lib/python3.8/site-packages/kivy/base.py", line 347, in mainloop
     self.idle()
   File "/home/lmx/PycharmProjects/login/lib/python3.8/site-packages/kivy/base.py", line 391, in idle
     self.dispatch_input()
   File "/home/lmx/PycharmProjects/login/lib/python3.8/site-packages/kivy/base.py", line 342, in dispatch_input
     post_dispatch_input(*pop(0))
   File "/home/lmx/PycharmProjects/login/lib/python3.8/site-packages/kivy/base.py", line 248, in post_dispatch_input
     listener.dispatch('on_motion', etype, me)
   File "kivy/_event.pyx", line 709, in kivy._event.EventDispatcher.dispatch
   File "/home/lmx/PycharmProjects/login/lib/python3.8/site-packages/kivy/core/window/__init__.py", line 1412, in on_motion
     self.dispatch('on_touch_down', me)
   File "kivy/_event.pyx", line 709, in kivy._event.EventDispatcher.dispatch
   File "/home/lmx/PycharmProjects/login/lib/python3.8/site-packages/kivy/core/window/__init__.py", line 1428, in on_touch_down
     if w.dispatch('on_touch_down', touch):
   File "kivy/_event.pyx", line 709, in kivy._event.EventDispatcher.dispatch
   File "/home/lmx/PycharmProjects/login/lib/python3.8/site-packages/kivy/uix/screenmanager.py", line 1198, in on_touch_down
     return super(ScreenManager, self).on_touch_down(touch)
   File "/home/lmx/PycharmProjects/login/lib/python3.8/site-packages/kivy/uix/widget.py", line 545, in on_touch_down
     if child.dispatch('on_touch_down', touch):
   File "kivy/_event.pyx", line 709, in kivy._event.EventDispatcher.dispatch
   File "/home/lmx/PycharmProjects/login/lib/python3.8/site-packages/kivy/uix/relativelayout.py", line 297, in on_touch_down
     ret = super(RelativeLayout, self).on_touch_down(touch)
   File "/home/lmx/PycharmProjects/login/lib/python3.8/site-packages/kivy/uix/widget.py", line 545, in on_touch_down
     if child.dispatch('on_touch_down', touch):
   File "kivy/_event.pyx", line 709, in kivy._event.EventDispatcher.dispatch
   File "/home/lmx/PycharmProjects/login/lib/python3.8/site-packages/kivymd/uix/behaviors/ripple_behavior.py", line 255, in on_touch_down
     super().on_touch_down(touch)
   File "/home/lmx/PycharmProjects/login/lib/python3.8/site-packages/kivy/uix/behaviors/button.py", line 138, in on_touch_down
     if super(ButtonBehavior, self).on_touch_down(touch):
   File "/home/lmx/PycharmProjects/login/lib/python3.8/site-packages/kivy/uix/widget.py", line 545, in on_touch_down
     if child.dispatch('on_touch_down', touch):
   File "kivy/_event.pyx", line 709, in kivy._event.EventDispatcher.dispatch
   File "/home/lmx/PycharmProjects/login/lib/python3.8/site-packages/kivy/uix/behaviors/button.py", line 151, in on_touch_down
     self.dispatch('on_press')
   File "kivy/_event.pyx", line 705, in kivy._event.EventDispatcher.dispatch
   File "kivy/_event.pyx", line 1248, in kivy._event.EventObservers.dispatch
   File "kivy/_event.pyx", line 1132, in kivy._event.EventObservers._dispatch
   File "/home/lmx/PycharmProjects/login/lib/python3.8/site-packages/kivy/lang/builder.py", line 57, in custom_callback
     exec(__kvlang__.co_value, idmap)
   File "/home/lmx/PycharmProjects/login/login.kv", line 128, in <module>
     on_press: app.on_save()
   File "/home/lmx/PycharmProjects/login/main.py", line 54, in on_save
     if self.root.ids.nome.text != "":
   File "kivy/properties.pyx", line 864, in kivy.properties.ObservableDict.__getattr__
 AttributeError: 'super' object has no attribute '__getattr__'

Process finished with exit code 1

----------The error------------------------------------

-----------The py file----------------------------------

import json
import requests

from kivy.lang import Builder
from kivymd.app import MDApp
from kivy.uix.screenmanager import ScreenManager, Screen
from kivy.core.window import Window


Window.size = (800, 600)


class PrimeiraJanela(Screen):
pass


class SegundaJanela(Screen):
pass


class WindowManager(ScreenManager):
pass


class Login(MDApp):
firebase_url = 'https://logintest-a0b05-default-rtdb.firebaseio.com/'

def build(self):
self.theme_cls.theme_style = "Dark"
# self.theme_cls.primary_palette = "Orange"
kv = Builder.load_file('login.kv')
return kv

def search_key(self, **kwargs):
# recover record
# -MejGIx9r-oF0RskYMle
if self.root.ids.ausweis.text != "":
firebase_path = self.firebase_url + self.root.ids.ausweis.text + ".json"
res = requests.get(url=firebase_path)
self.load_fields(**res.json())
self.root.ids.status_label.text = "Localizado!"
else:
self.root.ids.status_label.text = "Insira o Id"
return

def load_fields(self, idade, nome):
self.root.ids.idade.text = idade
self.root.ids.nome.text = nome
# change button salvar to "atualizar"
self.root.ids.bt_save.text = "Atualizar"
return

def on_save(self):
if self.root.ids.nome.text != "":
# preparing data
json_data = '{"nome" :"' + self.root.ids.nome.text + '" , "idade" :"' + self.root.ids.idade.text + '"}'
# checking if create = post or update = put
if self.root.ids.ausweis.text == "":
# creating data
firebase_path = self.firebase_url + '.json'
res = requests.post(url=firebase_path, json=json.loads(json_data))
else:
# updating data
firebase_path = self.firebase_url + '/' + self.root.ids.ausweis.text + '.json'
res = requests.put(url=firebase_path, json=json.loads(json_data))
# cleaning fields
self.root.ids.idade.text = ""
self.root.ids.nome.text = ""
self.root.ids.ausweis.text = ""
# messaging
self.root.ids.bt_save.text = "Salvar"
self.root.ids.status_label.text = "Salvo!"
else:
# alert message
self.root.ids.status_label.text = "O campo NOME é obrigatório!"
return


Login().run()

-----------The py file-------------------------------

-----------The kv file-------------------------------

WindowManager:
PrimeiraJanela:
SegundaJanela:


<PrimeiraJanela>:
name: "Welcome"
MDFloatLayout:
md_bg_color: 1, 1, 1, 0
line_color: rgba(228, 0, 35, 255)
Image:
source: "thelyon.png"
size_hint: .8, .8
pos_hint: {"center_x": .5, "center_y": .65}


Button:
text: "Entrar"
size_hint: .8, .075
pos_hint: {"center_x": .5, "center_y": .29}
background_color: 1, 1, 1, 0
canvas.before:
Color:
rgb: rgba(228, 0, 35, 255)
RoundedRectangle:
size: self.size
pos: self.pos
radius: [23]
on_press:
app.root.current ="Login"
root.manager.transition.direction = "left"

Button:
text: "Sair"
size_hint: .8, .075
pos_hint: {"center_x": .5, "center_y": .195}
background_color: 1, 1, 1, 0
color: rgba(228, 0, 35, 255)
canvas.before:
Color:
rgb: rgba(228, 0, 35, 255)
Line:
width: 1
rounded_rectangle: self.x, self.y, self.width, self.height, 23, 23, 23, 23, 100


<SegundaJanela>:
name: "Login"

MDCard:
size_hint: None, None
size: 800,600
pos_hint: {"center_x": 0.5, "center_y": 0.5}
elevation: 10
padding: 25
spacing: 25
orientation: 'vertical'

MDLabel:
id: status_label
text: "Aguardando ..."
font_size: 10
halign: 'center'
size_hint_y: None
height: self.texture_size[1]
padding_y: 15

MDTextField:
id: ausweis
mode: "rectangle"
hint_text: "Id"
size_hint_x: None
width: 300
font_size: 12
pos_hint: {"center_x": 0.5}


MDTextField:
id: nome
mode: "rectangle"
hint_text: "Nome"
size_hint_x: None
width: 300
font_size: 12
required: True
helper_text: "Campo obrigatório!"
pos_hint: {"center_x": 0.5}

MDTextField:
id: idade
mode: "rectangle"
hint_text: "Idade"
size_hint_x: None
width: 300
font_size: 12
pos_hint: {"center_x": 0.5}

Button:
id: bt_search
text: "Localizar"
font_size: 12
size_hint: .8, .075
pos_hint: {"center_x": 0.5}
background_color: 1, 1, 1, 0
color: rgba(228, 0, 35, 255)
canvas.before:
Color:
rgb: rgba(228, 0, 35, 255)
Line:
width: 1
rounded_rectangle: self.x, self.y, self.width, self.height, 23, 23, 23, 23, 100
on_press: app.search_key()

Button:
id: bt_save
text: "Salvar"
font_size: 12
size_hint: .8, .075
pos_hint: {"center_x": 0.5}
background_color: 1, 1, 1, 0
color: rgba(228, 0, 35, 255)
canvas.before:
Color:
rgb: rgba(228, 0, 35, 255)
Line:
width: 1
rounded_rectangle: self.x, self.y, self.width, self.height, 23, 23, 23, 23, 100
on_press: app.on_save()

Button:
text: "Sair"
size_hint: .8, .075
pos_hint: {"center_x": .5, "center_y": .195}
background_color: 1, 1, 1, 0
color: rgba(228, 0, 35, 255)
canvas.before:
Color:
rgb: rgba(228, 0, 35, 255)
Line:
width: 1
rounded_rectangle: self.x, self.y, self.width, self.height, 23, 23, 23, 23, 100
on_press:
app.root.current ="Welcome"
root.manager.transition.direction = "right"

Widget:
size_hint_y: None
height: 10


-----------The kv file-------------------------------

Elliot Garbus

unread,
Aug 14, 2021, 4:59:49 PM8/14/21
to kivy-...@googlegroups.com

When you paste your code into the website, right-click and select paste as plain text.  This will preserve the indentation.

 

-Elliot

--
You received this message because you are subscribed to the Google Groups "Kivy users support" group.
To unsubscribe from this group and stop receiving emails from it, send an email to kivy-users+...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/kivy-users/6bc94b4a-14c1-487c-854b-22870ad196f8n%40googlegroups.com.

 

Elliot Garbus

unread,
Aug 14, 2021, 5:08:08 PM8/14/21
to kivy-...@googlegroups.com

Looking at the unformatted code….

To access ids on the screens you would need to use:

self.root.get_screen(‘Login’).ids.nome.text

 

Instead of:

   File "/home/lmx/PycharmProjects/login/main.py", line 54, in on_save

     if self.root.ids.nome.text != "":

 

 

 


Sent: Saturday, August 14, 2021 1:12 PM
To: Kivy users support
Subject: [kivy-users] Alguem pode me ajudar por favor? Can someone please help me?

 

Traceback (most recent call last):

--

Lurious Silveirous

unread,
Aug 16, 2021, 2:40:38 AM8/16/21
to Kivy users support
IMG_20210816_072345_1.jpg

Elliot Garbus

unread,
Aug 16, 2021, 9:34:30 AM8/16/21
to kivy-...@googlegroups.com

Please post executable code.

IMG_20210816_072345_1.jpg

Lurious Silveirous

unread,
Aug 16, 2021, 1:48:32 PM8/16/21
to Kivy users support
Main.py


import json
import requests

from kivy.lang import Builder
from kivymd.app import MDApp
from kivy.uix.screenmanager import ScreenManager, Screen
from kivy.core.window import Window


Window.size = (600, 600)


class PrimeiraJanela(Screen):
    pass


class SegundaJanela(Screen):
    pass


class WindowManager(ScreenManager):
    pass


class Login(MDApp):

    def build(self):
        self.theme_cls.theme_style = "Light"
        #self.theme_cls.primary_palette = "Orange"
        kv = Builder.load_file('login.kv')
        return kv

    def search_key(self, **kwargs):
        # recover record
        # -MejGIx9r-oF0RskYMle
        if self.root.get_screen('Login').ids.ausweis.text != "":
            firebase_path = self.firebase_url + self.root.ids.ausweis.text + ".json"
            res = requests.get(url=firebase_path)
            self.load_fields(**res.json())
            self.root.ids.status_label.text = "Localizado!"
        else:
            self.root.get_screen('Login').ids.status_label.text = "Insira o Id"
        return

    def load_fields(self, idade, nome):
        self.root.ids.idade.text = idade
        self.root.ids.nome.text = nome
        # change button salvar to "atualizar"
        self.root.ids.bt_save.text = "Atualizar"
        return

    def on_save(self):
        if self.root.get_screen('Login').ids.nome.text != "":
            # preparing data
            json_data = '{"nome" :"' + self.root.ids.nome.text + '" , "idade" :"' + self.root.ids.idade.text + '"}'
            # checking if create = post or update = put
            if self.root.ids.ausweis.text == "":
                # creating data
                firebase_path = self.firebase_url + '.json'
                res = requests.post(url=firebase_path, json=json.loads(json_data))
            else:
                # updating data
                firebase_path = self.firebase_url + '/' + self.root.ids.ausweis.text + '.json'
                res = requests.put(url=firebase_path, json=json.loads(json_data))
            # cleaning fields
            self.root.ids.idade.text = ""
            self.root.ids.nome.text = ""
            self.root.ids.ausweis.text = ""
            # messaging
            self.root.ids.bt_save.text = "Salvar"
            self.root.ids.status_label.text = "Salvo!"
        else:
            # alert message
            self.root.get_screen('Login').ids.status_label.text = "O campo NOME é obrigatório!"
        return


Login().run()


KV




WindowManager:
    PrimeiraJanela:
    SegundaJanela:


<PrimeiraJanela>:
    name: "Welcome"
    MDFloatLayout:
        md_bg_color: 1, 1, 1, 0
        line_color: rgba(228, 0, 35, 255)
        Image:
            source: "thelyon.png"
            size_hint: .6, .6
            pos_hint: {"center_x": 0.5, "center_y": 0.65}


        Button:
            text: "Entrar"
            size_hint: .8, .075
            pos_hint: {"center_x": 0.5, "center_y": 0.29}
        size: 600,600
            icon: 'magnify'

Elliot Garbus

unread,
Aug 16, 2021, 3:00:51 PM8/16/21
to kivy-...@googlegroups.com

If you look in your log, this prints when the app starts up, you will see the following error:

[WARNING] [Lang        ] The file C:\Users\ellio\PycharmProjects\KivyHelp200\Lurious Silveirous\login.kv is loaded multiples times, you might have unwanted behaviors.

 

By default kivy looks for a kv file with same name as the app.  You can change the name of the app, change the name of the kv file, or let build automatically load the kv file.

To let build automatically load the kv file:

 

def build(self):
   
self.theme_cls.theme_style = "Light"
   
#self.theme_cls.primary_palette = "Orange"
    # kv = Builder.load_file('login.kv')
    # return kv

Lurious Silveirous

unread,
Aug 17, 2021, 8:11:15 AM8/17/21
to Kivy users support
Thanks it worked but when i click on save button it gives a error. 

File "C:\Users\Haryf\PycharmProjects\login\main.py", line 55, in on_save
     json_data = '{"nome" :"' + self.root.ids.nome.text + '" , "idade" :"' + self.root.ids.idade.text + '"}'
   File "kivy\properties.pyx", line 864, in kivy.properties.ObservableDict.__getattr__
 AttributeError: 'super' object has no attribute '__getattr__'

--------------py----------------------------

```

import json
import requests

#from kivy.lang import Builder
from kivymd.app import MDApp
from kivy.uix.screenmanager import ScreenManager, Screen
from kivy.core.window import Window

Window.size = (600, 600)


class PrimeiraJanela(Screen):
    pass


class SegundaJanela(Screen):
    pass


class WindowManager(ScreenManager):
    pass


class Login(MDApp):

    def build(self):
        self.theme_cls.theme_style = "Light"
        # self.theme_cls.primary_palette = "Orange"
        #kv = Builder.load_file('login.kv')
        #return kv

```

---------------------kv-----------------------------------

```

            text: "Voltar"
            size_hint: .8, .075
            pos_hint: {"center_x": .5, "center_y": .195}
            background_color: 1, 1, 1, 0
            color: rgba(228, 0, 35, 255)
            canvas.before:
                Color:
                    rgb: rgba(228, 0, 35, 255)
                Line:
                    width: 1
                    rounded_rectangle: self.x, self.y, self.width, self.height, 23, 23, 23, 23, 100
            on_press:
                app.root.current ="Welcome"
                root.manager.transition.direction = "right"

        Widget:
            size_hint_y: None
            height: 10
```

Elliot Garbus

unread,
Aug 17, 2021, 10:26:20 AM8/17/21
to kivy-...@googlegroups.com

Looks very similar to your earlier problem.

 

json_data = '{"nome" :"' + self.root.ids.nome.text + '" , "idade" :"' + self.root.ids.idade.text + '"}'

 

the id nome and idade are not in the self.root.ids, they are each on a screen, so you will need to use get_screen.

Print out self.root.ids to see the ids dictionary.

Print out self.root.get_screen(‘Login’).ids to see the dict on the Login screen.

Lurious Silveirous

unread,
Aug 17, 2021, 2:13:09 PM8/17/21
to Kivy users support

Thanks. And how can I build a apk file from this program? Because everyone time I try the app compiles but when I try to  open on Android it crash every time. How can I solve this issue? I will send the Buildozer.spec text. 

Lurious Silveirous

unread,
Aug 17, 2021, 3:28:21 PM8/17/21
to Kivy users support
And now i got this error. I'm pretty sure that i put everything on a kv file and wrote "get_screen('Login')". Can't check the issue.

File "C:\Users\Haryf\PycharmProjects\login\main.py", line 39, in search_key
     self.load_fields(**res.json())
 TypeError: __main__.Login.load_fields() argument after ** must be a mapping, not NoneType


Elliot Garbus

unread,
Aug 17, 2021, 5:24:08 PM8/17/21
to kivy-...@googlegroups.com

Robert is the Android expert on the forum. Create a new thread to address your apk issues.  You may find this helpful: https://github.com/Android-for-Python/Android-for-Python-Users

Elliot Garbus

unread,
Aug 17, 2021, 6:57:34 PM8/17/21
to kivy-...@googlegroups.com

The error suggest that res.json() is returning None, this suggests your web request has failed.

   

 self.load_fields(**res.json())

Robert

unread,
Aug 17, 2021, 7:21:55 PM8/17/21
to Kivy users support
Two most common reasons for Android internet connection issues
1) No INTERNET permission in buildozer.spec
2) The network request is in the UI thread.

Lurious Silveirous

unread,
Aug 18, 2021, 9:58:15 AM8/18/21
to Kivy users support
I imported this modules

import json
import requests

#from kivy.lang import Builder
from kivymd.app import MDApp
from kivy.uix.screenmanager import ScreenManager, Screen
from kivy.core.window import Window


There are some pip3 packages that are added automatically, no need to put these in requirements: libffi, openssl, sqlite3, setuptools, six, pyjnius, android, certifi.


What packages should i import for this imports? 

And i'm using firebase realtime database as database.

Robert

unread,
Aug 18, 2021, 1:26:45 PM8/18/21
to Kivy users support

Lurious Silveirous

unread,
Aug 20, 2021, 7:43:02 AM8/20/21
to Kivy users support
I have got this error what should i do or import?

--------- beginning of system
--------- beginning of crash
--------- beginning of main
08-20 13:39:53.546 10241 10589 I python  : Initializing Python for Android
08-20 13:39:53.546 10241 10589 I python  : Setting additional env vars from p4a_env_vars.txt
08-20 13:39:53.558 10241 10589 I python  : Changing directory to the one provided by ANDROID_ARGUMENT
08-20 13:39:53.558 10241 10589 I python  : /data/user/0/org.test.my87app/files/app
08-20 13:39:53.579 10241 10589 I python  : Preparing to initialize python
08-20 13:39:53.579 10241 10589 I python  : _python_bundle dir exists
08-20 13:39:53.579 10241 10589 I python  : calculated paths to be...
08-20 13:39:53.579 10241 10589 I python  : /data/user/0/org.test.my87app/files/app/_python_bundle/stdlib.zip:/data/user/0/org.test.my87app/files/app/_python_bundle/modules
08-20 13:39:53.635 10241 10589 I python  : set wchar paths...
08-20 13:39:53.977 10241 10589 I python  : Initialized python
08-20 13:39:53.977 10241 10589 I python  : AND: Init threads
08-20 13:39:53.978 10241 10589 I python  : testing python print redirection
08-20 13:39:53.980 10241 10589 I python  : Android path ['.', '/data/user/0/org.test.my87app/files/app/_python_bundle/stdlib.zip', '/data/user/0/org.test.my87app/files/app/_python_bundle/modules', '/data/user/0/org.test.my87app/files/app/_python_bundle/site-packages']
08-20 13:39:53.981 10241 10589 I python  : os.environ is environ({'PATH': '/sbin:/system/sbin:/product/bin:/apex/com.android.runtime/bin:/system/bin:/system/xbin:/odm/bin:/vendor/bin:/vendor/xbin', 'ANDROID_BOOTLOGO': '1', 'ANDROID_ROOT': '/system', 'ANDROID_ASSETS': '/system/app', 'ANDROID_DATA': '/data', 'ANDROID_STORAGE': '/storage', 'ANDROID_RUNTIME_ROOT': '/apex/com.android.runtime', 'ANDROID_TZDATA_ROOT': '/apex/com.android.tzdata', 'EXTERNAL_STORAGE': '/sdcard', 'ASEC_MOUNTPOINT': '/mnt/asec', 'BOOTCLASSPATH': '/apex/com.android.runtime/javalib/core-oj.jar:/apex/com.android.runtime/javalib/core-libart.jar:/apex/com.android.runtime/javalib/okhttp.jar:/apex/com.android.runtime/javalib/bouncycastle.jar:/apex/com.android.runtime/javalib/apache-xml.jar:/system/framework/QPerformance.jar:/system/framework/UxPerformance.jar:/system/framework/framework.jar:/system/framework/ext.jar:/system/framework/telephony-common.jar:/system/framework/voip-common.jar:/system/framework/ims-common.jar:/system/framework/miu...@boot.jar:/system/framework/miuisy...@boot.jar:/system/framework/android.test.base.jar:/system/framework/tcmiface.jar:/system/framework/telephony-ext.jar:/system/framework/WfdCommon.jar:/system/framework/qcom.fmradio.jar:/apex/com.android.conscrypt/javalib/conscrypt.jar:/apex/com.android.media/javalib/updatable-media.jar', 'DEX2OATBOOTCLASSPATH': '/apex/com.android.runtime/javalib/core-oj.jar:/apex/com.android.runtime/javalib/core-libart.jar:/apex/com.android.runtime/javalib/okhttp.jar:/apex/com.android.runtime/javalib/bouncycastle.jar:/apex/com.android.runtime/javalib/apache-xml.jar:/system/framework/QPerformance.jar:/system/framework/UxPerformance.jar:/system/framework/framework.jar:/system/framework/ext.jar:/system/framework/telephony-common.jar:/system/framework/voip-common.jar:/system/framework/ims-common.jar:/system/framework/miu...@boot.jar:/system/framework/miuisy...@boot.jar:/system/framework/android.test.base.jar:/system/framework/tcmiface.jar:/system/framework/telephony-ext.jar:/system/framework/WfdCommon.jar:/system/framework/qcom.fmradio.jar', 'SYSTEMSERVERCLASSPATH': '/system/framework/services.jar:/system/framework/ethernet-service.jar:/system/framework/wifi-service.jar:/system/framework/com.android.location.provider.jar', 'DOWNLOAD_CACHE': '/data/cache', 'ANDROID_SOCKET_zygote_secondary': '20', 'ANDROID_SOCKET_usap_pool_secondary': '21', 'ANDROID_ENTRYPOINT': 'main.pyc', 'ANDROID_ARGUMENT': '/data/user/0/org.test.my87app/files/app', 'ANDROID_APP_PATH': '/data/user/0/org.test.my87app/files/app', 'ANDROID_PRIVATE': '/data/user/0/org.test.my87app/files', 'ANDROID_UNPACK': '/data/user/0/org.test.my87app/files/app', 'PYTHONHOME': '/data/user/0/org.test.my87app/files/app', 'PYTHONPATH': '/data/user/0/org.test.my87app/files/app:/data/user/0/org.test.my87app/files/app/lib', 'PYTHONOPTIMIZE': '2', 'P4A_BOOTSTRAP': 'SDL2', 'PYTHON_NAME': 'python', 'P4A_IS_WINDOWED': 'True', 'P4A_ORIENTATION': 'portrait', 'P4A_NUMERIC_VERSION': 'None', 'P4A_MINSDK': '21', 'LC_CTYPE': 'C.UTF-8'})
08-20 13:39:53.981 10241 10589 I python  : Android kivy bootstrap done. __name__ is __main__
08-20 13:39:53.981 10241 10589 I python  : AND: Ran string
08-20 13:39:53.981 10241 10589 I python  : Run user program, change dir and execute entrypoint
08-20 13:39:54.385 10241 10589 I python  : Traceback (most recent call last):
08-20 13:39:54.385 10241 10589 I python  :   File "/home/lmx/Contrucao/login/.buildozer/android/app/main.py", line 2, in <module>
08-20 13:39:54.385 10241 10589 I python  :   File "/home/lmx/Contrucao/login/.buildozer/android/platform/build-armeabi-v7a/build/python-installs/my87app/requests/__init__.py", line 100, in <module>
08-20 13:39:54.385 10241 10589 I python  :   File "/home/lmx/Contrucao/login/.buildozer/android/platform/build-armeabi-v7a/build/python-installs/my87app/requests/__init__.py", line 85, in check_compatibility
08-20 13:39:54.385 10241 10589 I python  : Exception: You need either charset_normalizer or chardet installed
08-20 13:39:54.385 10241 10589 I python  : Python for android ended.


Robert

unread,
Aug 20, 2021, 12:25:54 PM8/20/21
to Kivy users support
Never seen this before, but look at the first example here:
Reply all
Reply to author
Forward
0 new messages