You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
hi
i am new in coding and i have written a chat app using python. my app works in my pc but when i convert it to a .apk app using buildozer its connect botton doesn't work. part of my buildozer.spec file
Title of your application
title = Eitaa
package.name = eitaa
package.domain = org.test
source.dir = .
source.include_exts = py,png,jpg,kv,atlas
version = 0.1
requirements = python3,kivy,rsa
class NeuralWebChat(App):
def build(self):
return MyRoot()
neuralWebChat = NeuralWebChat()
neuralWebChat.run() some of my error during converting code using buildozer (note that despite these error i get an .apk app)
Compiling '/content/.buildozer/android/platform/build-arm64-v8a_armeabi-v7a/build/other_builds/python3/armeabi-v7a__ndk_target_21/python3/Lib/lib2to3/tests/data/false_encoding.py'...
*** File "/content/.buildozer/android/platform/build-arm64-v8a_armeabi-v7a/build/other_builds/python3/armeabi-v7a__ndk_target_21/python3/Lib/lib2to3/tests/data/false_encoding.py", line 2
print '#coding=0'
^^^^^^^^^^^^^^^^^
SyntaxError: Missing parentheses in call to 'print'. Did you mean print(...)?
Compiling '/content/.buildozer/android/platform/build-arm64-v8a_armeabi-v7a/build/other_builds/python3/armeabi-v7a__ndk_target_21/python3/Lib/test/badsyntax_future10.py'...
*** File "/content/.buildozer/android/platform/build-arm64-v8a_armeabi-v7a/build/other_builds/python3/armeabi-v7a__ndk_target_21/python3/Lib/test/badsyntax_future10.py", line 3
from future import print_function
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
SyntaxError: from future imports must occur at the beginning of the file
Compiling '/content/.buildozer/android/platform/build-arm64-v8a_armeabi-v7a/build/other_builds/python3/armeabi-v7a__ndk_target_21/python3/Lib/test/badsyntax_future3.py'...
*** File "/content/.buildozer/android/platform/build-arm64-v8a_armeabi-v7a/build/other_builds/python3/armeabi-v7a__ndk_target_21/python3/Lib/test/badsyntax_future3.py", line 3
from future import rested_snopes
^
SyntaxError: future feature rested_snopes is not defined
Compiling '/content/.buildozer/android/platform/build-arm64-v8a_armeabi-v7a/build/other_builds/python3/armeabi-v7a__ndk_target_21/python3/Lib/test/badsyntax_future4.py'...
*** File "/content/.buildozer/android/platform/build-arm64-v8a_armeabi-v7a/build/other_builds/python3/armeabi-v7a__ndk_target_21/python3/Lib/test/badsyntax_future4.py", line 3
from future import nested_scopes
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
SyntaxError: from future imports must occur at the beginning of the file
Compiling '/content/.buildozer/android/platform/build-arm64-v8a_armeabi-v7a/build/other_builds/python3/armeabi-v7a__ndk_target_21/python3/Lib/test/badsyntax_future5.py'...
*** File "/content/.buildozer/android/platform/build-arm64-v8a_armeabi-v7a/build/other_builds/python3/armeabi-v7a__ndk_target_21/python3/Lib/test/badsyntax_future5.py", line 4
from future import nested_scopes
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
SyntaxError: from future imports must occur at the beginning of the file
Compiling '/content/.buildozer/android/platform/build-arm64-v8a_armeabi-v7a/build/other_builds/python3/armeabi-v7a__ndk_target_21/python3/Lib/test/badsyntax_future6.py'...
*** File "/content/.buildozer/android/platform/build-arm64-v8a_armeabi-v7a/build/other_builds/python3/armeabi-v7a__ndk_target_21/python3/Lib/test/badsyntax_future6.py", line 3
from future import nested_scopes
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
SyntaxError: from future imports must occur at the beginning of the file
Compiling '/content/.buildozer/android/platform/build-arm64-v8a_armeabi-v7a/build/other_builds/python3/armeabi-v7a__ndk_target_21/python3/Lib/test/badsyntax_future7.py'...
*** File "/content/.buildozer/android/platform/build-arm64-v8a_armeabi-v7a/build/other_builds/python3/armeabi-v7a__ndk_target_21/python3/Lib/test/badsyntax_future7.py", line 3
from future import nested_scopes; import string; from future import
^
SyntaxError: from future imports must occur at the beginning of the file
Compiling '/content/.buildozer/android/platform/build-arm64-v8a_armeabi-v7a/build/other_builds/python3/armeabi-v7a__ndk_target_21/python3/Lib/test/badsyntax_future8.py'...
*** File "/content/.buildozer/android/platform/build-arm64-v8a_armeabi-v7a/build/other_builds/python3/armeabi-v7a__ndk_target_21/python3/Lib/test/badsyntax_future8.py", line 3
from future import *
^
SyntaxError: future feature * is not defined
Compiling '/content/.buildozer/android/platform/build-arm64-v8a_armeabi-v7a/build/other_builds/python3/armeabi-v7a__ndk_target_21/python3/Lib/test/badsyntax_future9.py'...
*** File "/content/.buildozer/android/platform/build-arm64-v8a_armeabi-v7a/build/other_builds/python3/armeabi-v7a__ndk_target_21/python3/Lib/test/badsyntax_future9.py", line 3
from future import nested_scopes, braces
^
SyntaxError: not a chance
Compiling '/content/.buildozer/android/platform/build-arm64-v8a_armeabi-v7a/build/other_builds/python3/armeabi-v7a__ndk_target_21/python3/Lib/test/badsyntax_pep3120.py'...
*** File "/content/.buildozer/android/platform/build-arm64-v8a_armeabi-v7a/build/other_builds/python3/armeabi-v7a__ndk_target_21/python3/Lib/test/badsyntax_pep3120.py", line 1
print("b�se")
^
SyntaxError: (unicode error) 'utf-8' codec can't decode byte 0xf6 in position 1: invalid start byte
The text was updated successfully, but these errors were encountered:
Alikhosravi22
changed the title
kivy/lib/gstplayer/_gstplayer.pyx:418:34: Cannot assign type 'void (void *, int, int, char *, int) except * nogil' to 'appcallback_t' Exception in thread background thread for pid 321555:
my python app doesn't work after converting it to an .apk file using buildozer
Jul 25, 2023
Edit: downgrading system cython to 0.29.x fixed the previous error for me.
Regarding your latest error:
It's just the tests for 2to3 that are not working, they are not required for the functioning of the app.
Does the app launch, ie do you see the kivy loading screen before it crashes, or is there a command line error before that while deploying?
hi
i am new in coding and i have written a chat app using python. my app works in my pc but when i convert it to a .apk app using buildozer its connect botton doesn't work.
part of my buildozer.spec file
Title of your application
title = Eitaa
package.name = eitaa
package.domain = org.test
source.dir = .
source.include_exts = py,png,jpg,kv,atlas
version = 0.1
requirements = python3,kivy,rsa
presplash.filename = %(source.dir)s/loading.png
icon.filename = %(source.dir)s/logo.png
orientation = portrait
osx.python_version = 3
osx.kivy_version = 1.9.1
fullscreen = 0
android.permissions = android.permission.INTERNET, (name=android.permission.WRITE_EXTERNAL_STORAGE;maxSdkVersion=18)
my main.py file
import kivy
import socket
import threading
import rsa
from kivy.app import App
from kivy.uix.boxlayout import BoxLayout
from kivy.clock import mainthread
client = socket.socket(socket.AF_INET, socket.SOCK_STREAM)
public_key, privet_key= rsa.newkeys(1024)
class MyRoot(BoxLayout):
def init(self):
self.server_public_key=None
super(MyRoot, self).init()
class NeuralWebChat(App):
def build(self):
return MyRoot()
neuralWebChat = NeuralWebChat()
neuralWebChat.run()
some of my error during converting code using buildozer (note that despite these error i get an .apk app)
Compiling '/content/.buildozer/android/platform/build-arm64-v8a_armeabi-v7a/build/other_builds/python3/armeabi-v7a__ndk_target_21/python3/Lib/lib2to3/tests/data/false_encoding.py'...
*** File "/content/.buildozer/android/platform/build-arm64-v8a_armeabi-v7a/build/other_builds/python3/armeabi-v7a__ndk_target_21/python3/Lib/lib2to3/tests/data/false_encoding.py", line 2
print '#coding=0'
^^^^^^^^^^^^^^^^^
SyntaxError: Missing parentheses in call to 'print'. Did you mean print(...)?
Compiling '/content/.buildozer/android/platform/build-arm64-v8a_armeabi-v7a/build/other_builds/python3/armeabi-v7a__ndk_target_21/python3/Lib/lib2to3/tests/data/py2_test_grammar.py'...
*** File "/content/.buildozer/android/platform/build-arm64-v8a_armeabi-v7a/build/other_builds/python3/armeabi-v7a__ndk_target_21/python3/Lib/lib2to3/tests/data/py2_test_grammar.py", line 31
self.assertEquals(0377, 255)
^
SyntaxError: unknown encoding: uft-8
Compiling '/content/.buildozer/android/platform/build-arm64-v8a_armeabi-v7a/build/other_builds/python3/armeabi-v7a__ndk_target_21/python3/Lib/test/bad_coding2.py'...
*** File "/content/.buildozer/android/platform/build-arm64-v8a_armeabi-v7a/build/other_builds/python3/armeabi-v7a__ndk_target_21/python3/Lib/test/bad_coding2.py", line 0
SyntaxError: encoding problem: utf8 with BOM
Compiling '/content/.buildozer/android/platform/build-arm64-v8a_armeabi-v7a/build/other_builds/python3/armeabi-v7a__ndk_target_21/python3/Lib/test/bad_getattr.py'...
Compiling '/content/.buildozer/android/platform/build-arm64-v8a_armeabi-v7a/build/other_builds/python3/armeabi-v7a__ndk_target_21/python3/Lib/test/bad_getattr2.py'...
Compiling '/content/.buildozer/android/platform/build-arm64-v8a_armeabi-v7a/build/other_builds/python3/armeabi-v7a__ndk_target_21/python3/Lib/test/bad_getattr3.py'...
Compiling '/content/.buildozer/android/platform/build-arm64-v8a_armeabi-v7a/build/other_builds/python3/armeabi-v7a__ndk_target_21/python3/Lib/test/badsyntax_3131.py'...
*** File "/content/.buildozer/android/platform/build-arm64-v8a_armeabi-v7a/build/other_builds/python3/armeabi-v7a__ndk_target_21/python3/Lib/test/badsyntax_3131.py", line 2
€ = 2
^
SyntaxError: invalid character '€' (U+20AC)
Compiling '/content/.buildozer/android/platform/build-arm64-v8a_armeabi-v7a/build/other_builds/python3/armeabi-v7a__ndk_target_21/python3/Lib/test/badsyntax_future10.py'...
*** File "/content/.buildozer/android/platform/build-arm64-v8a_armeabi-v7a/build/other_builds/python3/armeabi-v7a__ndk_target_21/python3/Lib/test/badsyntax_future10.py", line 3
from future import print_function
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
SyntaxError: from future imports must occur at the beginning of the file
Compiling '/content/.buildozer/android/platform/build-arm64-v8a_armeabi-v7a/build/other_builds/python3/armeabi-v7a__ndk_target_21/python3/Lib/test/badsyntax_future3.py'...
*** File "/content/.buildozer/android/platform/build-arm64-v8a_armeabi-v7a/build/other_builds/python3/armeabi-v7a__ndk_target_21/python3/Lib/test/badsyntax_future3.py", line 3
from future import rested_snopes
^
SyntaxError: future feature rested_snopes is not defined
Compiling '/content/.buildozer/android/platform/build-arm64-v8a_armeabi-v7a/build/other_builds/python3/armeabi-v7a__ndk_target_21/python3/Lib/test/badsyntax_future4.py'...
*** File "/content/.buildozer/android/platform/build-arm64-v8a_armeabi-v7a/build/other_builds/python3/armeabi-v7a__ndk_target_21/python3/Lib/test/badsyntax_future4.py", line 3
from future import nested_scopes
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
SyntaxError: from future imports must occur at the beginning of the file
Compiling '/content/.buildozer/android/platform/build-arm64-v8a_armeabi-v7a/build/other_builds/python3/armeabi-v7a__ndk_target_21/python3/Lib/test/badsyntax_future5.py'...
*** File "/content/.buildozer/android/platform/build-arm64-v8a_armeabi-v7a/build/other_builds/python3/armeabi-v7a__ndk_target_21/python3/Lib/test/badsyntax_future5.py", line 4
from future import nested_scopes
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
SyntaxError: from future imports must occur at the beginning of the file
Compiling '/content/.buildozer/android/platform/build-arm64-v8a_armeabi-v7a/build/other_builds/python3/armeabi-v7a__ndk_target_21/python3/Lib/test/badsyntax_future6.py'...
*** File "/content/.buildozer/android/platform/build-arm64-v8a_armeabi-v7a/build/other_builds/python3/armeabi-v7a__ndk_target_21/python3/Lib/test/badsyntax_future6.py", line 3
from future import nested_scopes
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
SyntaxError: from future imports must occur at the beginning of the file
Compiling '/content/.buildozer/android/platform/build-arm64-v8a_armeabi-v7a/build/other_builds/python3/armeabi-v7a__ndk_target_21/python3/Lib/test/badsyntax_future7.py'...
*** File "/content/.buildozer/android/platform/build-arm64-v8a_armeabi-v7a/build/other_builds/python3/armeabi-v7a__ndk_target_21/python3/Lib/test/badsyntax_future7.py", line 3
from future import nested_scopes; import string; from future import
^
SyntaxError: from future imports must occur at the beginning of the file
Compiling '/content/.buildozer/android/platform/build-arm64-v8a_armeabi-v7a/build/other_builds/python3/armeabi-v7a__ndk_target_21/python3/Lib/test/badsyntax_future8.py'...
*** File "/content/.buildozer/android/platform/build-arm64-v8a_armeabi-v7a/build/other_builds/python3/armeabi-v7a__ndk_target_21/python3/Lib/test/badsyntax_future8.py", line 3
from future import *
^
SyntaxError: future feature * is not defined
Compiling '/content/.buildozer/android/platform/build-arm64-v8a_armeabi-v7a/build/other_builds/python3/armeabi-v7a__ndk_target_21/python3/Lib/test/badsyntax_future9.py'...
*** File "/content/.buildozer/android/platform/build-arm64-v8a_armeabi-v7a/build/other_builds/python3/armeabi-v7a__ndk_target_21/python3/Lib/test/badsyntax_future9.py", line 3
from future import nested_scopes, braces
^
SyntaxError: not a chance
Compiling '/content/.buildozer/android/platform/build-arm64-v8a_armeabi-v7a/build/other_builds/python3/armeabi-v7a__ndk_target_21/python3/Lib/test/badsyntax_pep3120.py'...
*** File "/content/.buildozer/android/platform/build-arm64-v8a_armeabi-v7a/build/other_builds/python3/armeabi-v7a__ndk_target_21/python3/Lib/test/badsyntax_pep3120.py", line 1
print("b�se")
^
SyntaxError: (unicode error) 'utf-8' codec can't decode byte 0xf6 in position 1: invalid start byte
The text was updated successfully, but these errors were encountered: