-
Notifications
You must be signed in to change notification settings - Fork 94
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
Is it possible to use pysmb with kivy on android platform? #225
Comments
@thmsts88 |
Not that I'm aware of. Anyway, just for sake of completion the app opens and closes right away. I had similar behavior when permissions weren't set. |
Without the error/crash logs, it will be a challenge to pinpoint what cause the app to crash. It might be due to an import issue. Can you write a short code snippet to just Another option is to copy python3/smb and python3/nmb folders to your app, and ignore pysmb folder structure. The presence of both python2 and python3 folders may confuse the builder, and cause the built app to have problems. |
Thanks for the heads up. I'll try the snippet. As soon as I try I'll report back. Thanks again |
Hi,
I've been trying to build a android app that connect to a Samba Server and copy into it some files.
Using kivy and buildzer I've been able build the app that succesfully locate all wanted files (using os), and it works fine.
However, as soon as I add reference to pysmb app stop working (as it was missing android permissions)
buildozer.spec
# (list) Application requirements
requirements = python3,kivy,android,pysmb
# (list) Permissions
android.permissions = android.permission.INTERNET, android.permission.WRITE_EXTERNAL_STORAGE, android.permission.READ_EXTERNAL_STORAGE, android.permission.MANAGE_EXTERNAL_STORAGE
main.py
from smb.SMBConnection import SMBConnection
def on_button3_press(self, instance):
try:
conn = SMBConnection(self.username_input.text, self.password_input.text, use_ntlm_v2=True)
conn.connect(self.server_input.text, 139)
self.status_label.text = 'Connected!'
except Exception as e:
self.status_label.text = f'Error: {str(e)}'
I've also made the recipe for buildozer
from pythonforandroid.recipe import PythonRecipe
class PySMBRecipe(PythonRecipe):
version = '1.2.10'
url = 'https://files.pythonhosted.org/packages/source/p/pysmb/pysmb-{version}.tar.gz'
depends = ['python3', 'pyasn1', 'tqdm']
site_packages_name = 'pysmb'
recipe = PySMBRecipe()
Is there any known issues when pysmb is used with kivy on android?
Thanks for the support
The text was updated successfully, but these errors were encountered: