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
when i call launch_webbrowser() in kv
on_press:
root.launch_webbrowser(root.url)
i get this error in log:
webbrowser.register('android', AndroidBrowser, None, -1)
TypeError: register() takes from 2 to 3 positional arguments but 4 were given
maybe i think it's a bug of python3.7
please help ths!
buildozer.spec
Command:
// REPLACE ME: buildozer command ran? e.g. buildozer android debug
Spec file:
// REPLACE ME: Paste your buildozer.spec file here
Logs
The text was updated successfully, but these errors were encountered:
webbrowser.register has changed in Python 3.7: a keyword-only paramater was added (preferred, whose default value is False). It appears in Python documentation.
In summary, to date, register() takes a total of 4 arguments:
👋 We use the issue tracker exclusively for bug reports and feature requests. However, this issue appears to be a support request. Please use our support channels to get help with the project.
If you're having trouble installing or using python-for-android, maybe you could be interested in our quickstart guide.
Let us know if this comment was made in error, and we'll be happy to reopen the issue.
Versions
Description
it's my code:
url = 'http://****' #it's a valid url
def launch_webbrowser(self, url):
import webbrowser
if platform == 'android':
from jnius import autoclass, cast
def open_url(url):
PythonActivity = autoclass('org.kivy.android.PythonActivity')
activity = PythonActivity.mActivity
Intent = autoclass('android.content.Intent')
Uri = autoclass('android.net.Uri')
browserIntent = Intent()
browserIntent.setAction(Intent.ACTION_VIEW)
browserIntent.setData(Uri.parse(url))
currentActivity = cast('android.app.Activity', activity)
currentActivity.startActivity(browserIntent)
when i call launch_webbrowser() in kv
on_press:
root.launch_webbrowser(root.url)
i get this error in log:
webbrowser.register('android', AndroidBrowser, None, -1)
TypeError: register() takes from 2 to 3 positional arguments but 4 were given
maybe i think it's a bug of python3.7
please help ths!
buildozer.spec
Command:
Spec file:
Logs
The text was updated successfully, but these errors were encountered: