Comments (14)
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.
I'm not getting any error on Android. Please share a minimal code that generates the error plus some logs.
from akivymd.
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.
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.
Notice I used the latest i.e kivy==master
from akivymd.
I'm currently building with the kivy version on your demo buildozer.spec
did you try this?
from akivymd.
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.
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.
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.
@kengoon https://gofile.io/d/m5wjoT
from akivymd.
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.
also I'm using kivymd 0.104.2.dev0(i would not want to downgrade because there are cool features here)
from akivymd.
@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.
@kengoon ok. so let me know
from akivymd.
Related Issues (11)
- Demo Error HOT 1
- Please Update AKBottomNavigation2 HOT 1
- kivy.factory.FactoryException: Unknown class <AKBottomNavigation2> error HOT 2
- Can't run demo HOT 1
- Dialog Error HOT 2
- I have some youtube tutorials i would like to show you HOT 2
- Problem with datepicker HOT 3
- Speedometer example? HOT 5
- No module named 'akivymd.uix.progresswidget' error HOT 2
- Merge with kivymd HOT 2
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from akivymd.