Coder Social home page Coder Social logo

Comments (14)

kengoon avatar kengoon commented on June 23, 2024 1

I can't access the computer remotely(today is Sunday and in my company, everything is turned off on Sunday). Please I will post the error tomorrow

right now I'm remaking an example code to test it on my phone, I will give feedback when I'm done

from akivymd.

quitegreensky avatar quitegreensky commented on June 23, 2024

I'm not getting any error on Android. Please share a minimal code that generates the error plus some logs.

from akivymd.

kengoon avatar kengoon commented on June 23, 2024

this is the error

File "/home/kengo/PycharmProjects/NOCENSTORES/.buildozer/android/platform/build-armeabi-v7a/build/python-installs/nocenstore/akivymd/uix/dialogs.py", line 118, in __init__
10-25 17:26:09.406  6108  6159 I python  :    File "/home/kengo/PycharmProjects/NOCENSTORES/.buildozer/android/platform/build-armeabi-v7a/build/python-installs/nocenstore/kivymd/theming.py", line 908, in __init__
10-25 17:26:09.408  6108  6159 I python  :    File "/home/kengo/PycharmProjects/NOCENSTORES/.buildozer/android/platform/build-armeabi-v7a/build/python-installs/nocenstore/kivy/uix/modalview.py", line 187, in __init__
10-25 17:26:09.409  6108  6159 I python  :    File "/home/kengo/PycharmProjects/NOCENSTORES/.buildozer/android/platform/build-armeabi-v7a/build/python-installs/nocenstore/kivy/uix/anchorlayout.py", line 68, in __init__
10-25 17:26:09.411  6108  6159 I python  :    File "/home/kengo/PycharmProjects/NOCENSTORES/.buildozer/android/platform/build-armeabi-v7a/build/python-installs/nocenstore/kivy/uix/layout.py", line 76, in __init__
10-25 17:26:09.413  6108  6159 I python  :    File "/home/kengo/PycharmProjects/NOCENSTORES/.buildozer/android/platform/build-armeabi-v7a/build/python-installs/nocenstore/kivy/uix/widget.py", line 361, in __init__
10-25 17:26:09.415  6108  6159 I python  :    File "/home/kengo/PycharmProjects/NOCENSTORES/.buildozer/android/platform/build-armeabi-v7a/build/python-installs/nocenstore/kivy/uix/widget.py", line 465, in apply_class_lang_rules
10-25 17:26:09.417  6108  6159 I python  :    File "/home/kengo/PycharmProjects/NOCENSTORES/.buildozer/android/platform/build-armeabi-v7a/build/python-installs/nocenstore/kivy/lang/builder.py", line 543, in apply
10-25 17:26:09.419  6108  6159 I python  :    File "/home/kengo/PycharmProjects/NOCENSTORES/.buildozer/android/platform/build-armeabi-v7a/build/python-installs/nocenstore/kivy/lang/builder.py", line 597, in _apply_rule
10-25 17:26:09.421  6108  6159 I python  :    File "/home/kengo/PycharmProjects/NOCENSTORES/.buildozer/android/platform/build-armeabi-v7a/build/python-installs/nocenstore/kivy/lang/builder.py", line 931, in _build_canvas
10-25 17:26:09.423  6108  6159 I python  :  kivy.lang.builder.BuilderException: Parser: File "<inline>", line 12:
10-25 17:26:09.423  6108  6159 I python  :  ...
10-25 17:26:09.424  6108  6159 I python  :       10:            pos: self.pos
10-25 17:26:09.425  6108  6159 I python  :       11:            size: self.size
10-25 17:26:09.426  6108  6159 I python  :  >>   12:            radius: root.radius
10-25 17:26:09.427  6108  6159 I python  :       13:        Scale:
10-25 17:26:09.428  6108  6159 I python  :       14:            origin: self.center
10-25 17:26:09.428  6108  6159 I python  :  ...
10-25 17:26:09.429  6108  6159 I python  :  TypeError: 'float' object is not iterable
10-25 17:26:09.430  6108  6159 I python  :    File "/home/kengo/PycharmProjects/NOCENSTORES/.buildozer/android/platform/build-armeabi-v7a/build/python-installs/nocenstore/kivy/lang/builder.py", line 926, in _build_canvas
10-25 17:26:09.431  6108  6159 I python  :    File "kivy/graphics/vertex_instructions.pyx", line 1574, in kivy.graphics.vertex_instructions.RoundedRectangle.radius.__set__
10-25 17:26:09.432  6108  6159 I python  :    File "kivy/graphics/vertex_instructions.pyx", line 1334, in kivy.graphics.vertex_instructions.RoundedRectangle._check_radius
10-25 17:26:09.432  6108  6159 I python  :  
10-25 17:26:09.433  6108  6159 I python  : Python for android ended.

this Is the code that causes the error

       self.dialog = AKAlertDialog(
            header_icon='close-circle-outline',
            header_bg=[1, 0, 0, 1]
        )
        content = Factory.ServerError()
        self.dialog.content_cls = content
        self.dialog.open()

I'm thinking if it is from the kivy version, I'm using the latest pre-release version. I'm currently building with the kivy version on your demo buildozer.spec

from akivymd.

kengoon avatar kengoon commented on June 23, 2024
from kivy.factory import Factory
from kivy.lang import Builder
from kivymd.app import MDApp
from akivymd.uix.dialogs import AKAlertDialog
Builder.load_string(
            """
<ServerError@BoxLayout>:
    orientation: 'vertical'
    spacing: dp(10)
    padding: dp(20)

    MDLabel:
        text: 'Server Down'
        halign: 'center'
        theme_text_color: 'Custom'
        text_color: [0.9, 0, 0, 1]

    MDLabel:
        text: 'Server is Currently Down, We are working So hard to fix it'
        halign: 'center'
        theme_text_color: 'Custom'
        text_color: [0.9, 0, 0, 1]
        font_style: 'Caption'

    MDFillRoundFlatButton:
        id: button
        text: 'Exit App'
        md_bg_color: [0.9, 0, 0, 1]
        pos_hint: {'center_x': .5}
        on_release:
            app.stop()

            """
        )
class TestApp(MDApp):
    def on_start(self):
        self.dialog = AKAlertDialog(
            header_icon='close-circle-outline',
            header_bg=[1, 0, 0, 1]
        )
        content = Factory.ServerError()
        self.dialog.content_cls = content
        self.dialog.open()

TestApp().run()

from akivymd.

kengoon avatar kengoon commented on June 23, 2024

Notice I used the latest i.e kivy==master

from akivymd.

quitegreensky avatar quitegreensky commented on June 23, 2024

I'm currently building with the kivy version on your demo buildozer.spec

did you try this?

from akivymd.

kengoon avatar kengoon commented on June 23, 2024

I'm currently building with the kivy version on your demo buildozer.spec

did you try this?

yes I've, it is giving me the same error

from akivymd.

kengoon avatar kengoon commented on June 23, 2024

here

Traceback (most recent call last):
I/python  ( 7409):    File "/home/kengo/PycharmProjects/NOCENSTORES/.buildozer/android/platform/build-armeabi-v7a/build/python-installs/nocenstore/kivy/lang/builder.py", line 924, in _build_canvas
I/python  ( 7409):    File "kivy/graphics/vertex_instructions.pyx", line 1574, in kivy.graphics.vertex_instructions.RoundedRectangle.radius.__set__
I/python  ( 7409):    File "kivy/graphics/vertex_instructions.pyx", line 1334, in kivy.graphics.vertex_instructions.RoundedRectangle._check_radius
I/python  ( 7409):  TypeError: 'float' object is not iterable
I/python  ( 7409):  
I/python  ( 7409):  During handling of the above exception, another exception occurred:
I/python  ( 7409):  
I/python  ( 7409):  Traceback (most recent call last):
I/python  ( 7409):    File "/home/kengo/PycharmProjects/NOCENSTORES/.buildozer/android/app/main.py", line 919, in <module>
I/python  ( 7409):    File "/home/kengo/PycharmProjects/NOCENSTORES/.buildozer/android/platform/build-armeabi-v7a/build/python-installs/nocenstore/kivy/app.py", line 950, in run
I/python  ( 7409):    File "/home/kengo/PycharmProjects/NOCENSTORES/.buildozer/android/platform/build-armeabi-v7a/build/python-installs/nocenstore/kivy/base.py", line 560, in runTouchApp
I/python  ( 7409):    File "/home/kengo/PycharmProjects/NOCENSTORES/.buildozer/android/platform/build-armeabi-v7a/build/python-installs/nocenstore/kivy/base.py", line 334, in mainloop
I/python  ( 7409):    File "/home/kengo/PycharmProjects/NOCENSTORES/.buildozer/android/platform/build-armeabi-v7a/build/python-installs/nocenstore/kivy/base.py", line 375, in idle
I/python  ( 7409):    File "/home/kengo/PycharmProjects/NOCENSTORES/.buildozer/android/platform/build-armeabi-v7a/build/python-installs/nocenstore/kivy/clock.py", line 648, in tick
I/python  ( 7409):    File "/home/kengo/PycharmProjects/NOCENSTORES/.buildozer/android/platform/build-armeabi-v7a/build/python-installs/nocenstore/kivy/clock.py", line 691, in post_idle
I/python  ( 7409):    File "kivy/_clock.pyx", line 384, in kivy._clock.CyClockBase._process_events
I/python  ( 7409):    File "kivy/_clock.pyx", line 414, in kivy._clock.CyClockBase._process_events
I/python  ( 7409):    File "kivy/_clock.pyx", line 412, in kivy._clock.CyClockBase._process_events
I/python  ( 7409):    File "kivy/_clock.pyx", line 167, in kivy._clock.ClockEvent.tick
I/python  ( 7409):    File "/home/kengo/PycharmProjects/NOCENSTORES/.buildozer/android/platform/build-armeabi-v7a/build/python-installs/nocenstore/kivy/network/urlrequest.py", line 533, in _dispatch_result
I/python  ( 7409):    File "/home/kengo/PycharmProjects/NOCENSTORES/.buildozer/android/app/main.py", line 807, in network_error
I/python  ( 7409):    File "/home/kengo/PycharmProjects/NOCENSTORES/.buildozer/android/platform/build-armeabi-v7a/build/python-installs/nocenstore/akivymd/uix/dialogs.py", line 116, in __init__
I/python  ( 7409):    File "/home/kengo/PycharmProjects/NOCENSTORES/.buildozer/android/platform/build-armeabi-v7a/build/python-installs/nocenstore/kivymd/theming.py", line 908, in __init__
I/python  ( 7409):    File "/home/kengo/PycharmProjects/NOCENSTORES/.buildozer/android/platform/build-armeabi-v7a/build/python-installs/nocenstore/kivy/uix/modalview.py", line 186, in __init__
I/python  ( 7409):    File "/home/kengo/PycharmProjects/NOCENSTORES/.buildozer/android/platform/build-armeabi-v7a/build/python-installs/nocenstore/kivy/uix/anchorlayout.py", line 68, in __init__
I/python  ( 7409):    File "/home/kengo/PycharmProjects/NOCENSTORES/.buildozer/android/platform/build-armeabi-v7a/build/python-installs/nocenstore/kivy/uix/layout.py", line 76, in __init__
I/python  ( 7409):    File "/home/kengo/PycharmProjects/NOCENSTORES/.buildozer/android/platform/build-armeabi-v7a/build/python-installs/nocenstore/kivy/uix/widget.py", line 361, in __init__
I/python  ( 7409):    File "/home/kengo/PycharmProjects/NOCENSTORES/.buildozer/android/platform/build-armeabi-v7a/build/python-installs/nocenstore/kivy/uix/widget.py", line 465, in apply_class_lang_rules
I/python  ( 7409):    File "/home/kengo/PycharmProjects/NOCENSTORES/.buildozer/android/platform/build-armeabi-v7a/build/python-installs/nocenstore/kivy/lang/builder.py", line 541, in apply
I/python  ( 7409):    File "/home/kengo/PycharmProjects/NOCENSTORES/.buildozer/android/platform/build-armeabi-v7a/build/python-installs/nocenstore/kivy/lang/builder.py", line 595, in _apply_rule
I/python  ( 7409):    File "/home/kengo/PycharmProjects/NOCENSTORES/.buildozer/android/platform/build-armeabi-v7a/build/python-installs/nocenstore/kivy/lang/builder.py", line 929, in _build_canvas
I/python  ( 7409):  kivy.lang.builder.BuilderException: Parser: File "<inline>", line 12:
I/python  ( 7409):  ...
I/python  ( 7409):       10:            pos: self.pos
I/python  ( 7409):       11:            size: self.size
I/python  ( 7409):  >>   12:            radius: root.radius
I/python  ( 7409):       13:        Scale:
I/python  ( 7409):       14:            origin: self.center
I/python  ( 7409):  ...
I/python  ( 7409):  TypeError: 'float' object is not iterable
I/python  ( 7409):    File "/home/kengo/PycharmProjects/NOCENSTORES/.buildozer/android/platform/build-armeabi-v7a/build/python-installs/nocenstore/kivy/lang/builder.py", line 924, in _build_canvas
I/python  ( 7409):    File "kivy/graphics/vertex_instructions.pyx", line 1574, in kivy.graphics.vertex_instructions.RoundedRectangle.radius.__set__
I/python  ( 7409):    File "kivy/graphics/vertex_instructions.pyx", line 1334, in kivy.graphics.vertex_instructions.RoundedRectangle._check_radius
I/python  ( 7409):  
I/python  ( 7409): Python for android ended.

from akivymd.

kengoon avatar kengoon commented on June 23, 2024

please can you post the apk link of the demo(can't compile mine now, not enough time)? Maybe I can figure something out

from akivymd.

quitegreensky avatar quitegreensky commented on June 23, 2024

@kengoon https://gofile.io/d/m5wjoT

from akivymd.

kengoon avatar kengoon commented on June 23, 2024

it works fine on your apk. I figured out I'm using the old android p4a(i just love it). changing now..... and checking if the error occurs again

from akivymd.

kengoon avatar kengoon commented on June 23, 2024

also I'm using kivymd 0.104.2.dev0(i would not want to downgrade because there are cool features here)

from akivymd.

kengoon avatar kengoon commented on June 23, 2024

@quitegreensky I'm building the apk without AKDialog(I was forced to use normal MDDialog because the production is today). I will continue digging whenever I'm free. You can close the issue now, I can reopen it when The bug persists.

Also I use python3.7.7 and hostpython3.7.7

from akivymd.

quitegreensky avatar quitegreensky commented on June 23, 2024

@kengoon ok. so let me know

from akivymd.

Related Issues (11)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.