-
Notifications
You must be signed in to change notification settings - Fork 498
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
version problem with split #201
Comments
Our fonction that does version comparison in buildozer (to know if updating of dependencies is needed) doesn't like _rc1, in fact, it doesn't like anything that's not a dot or a number, we need a better function that understand the various ways people express versions, and it's actually quite a complicated problem, we had a look at using LooseVersion from distutils, but it's not able to correctly sort that either (it doesn't crash, but returns the wrong result, that is, My ugly workaround currently involves changing
for reference, python's pep 440 (https://www.python.org/dev/peps/pep-0440/#pre-release-separators) defines valid version schemes in python, and seems to cover this case, the pypa reference implementation (linked at the bottom) should probably be tried first. https://github.com/pypa/packaging/blob/master/packaging/version.py |
Thank you! I changed the android.py line to remove _rc1 and it worked. I appreciate your time and quick response. Thank you for being there to help. |
that way is just a workaround, reopening. It would be nice if you could test with the branch of the PR just over here (#202) i can't test a full build now for various reasons, but it should solve it in a cleaner way. |
I'll be more than glad to test it but I'm not sure how I need to set it https://github.com/pypa/packaging/blob/master/packaging/version.py Sorry, I'm new to this environment and want to make sure I test what you All the best, ------ Original Message ------
|
yeah, you'll need to remove the fix, but you can simply replace the whole file with this version: and add these two files in libs/ https://github.com/kivy/buildozer/blob/fix_201/buildozer/libs/version.py |
I did as you suggested and believe it all works. It took me a while to Thanks! All the best, ------ Original Message ------
|
Thanks a lot for you time testing :) |
Thank you for the quick and successful solution! All the best, ------ Original Message ------
|
great ! ... this solve my day, of couse, I only update to the latest github version and the apk was successfull generated. (Y) regards |
I have been using buildozer for months and it has run perfectly until this morning and I have no idea how anything changed to cause the build to fail. I've tried restoring back to a previous known success date and reinstalled all the python and buildozer library and local build folders. Below are the results that have been consistent since the beginning of the failures. I have searched everywhere online and could not find anyone else experiencing the same problem. I can provide more details but at this point, I don't know what to share since it's all been rebuilt, or so I thought, and I've tested a simple kivy program to build. Any suggestions will be greatly appreciated. Until then, I am dead in the waters, so to speak, and cannot build my apk.
Traceback (most recent call last):
File "/Library/Frameworks/Python.framework/Versions/2.7/bin/buildozer", line 9, in
load_entry_point('buildozer==0.28dev', 'console_scripts', 'buildozer')()
File "/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/site-packages/buildozer-0.28dev-py2.7.egg/buildozer/scripts/client.py", line 13, in main
Buildozer().run_command(sys.argv[1:])
File "/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/site-packages/buildozer-0.28dev-py2.7.egg/buildozer/init.py", line 980, in run_command
self.target.run_commands(args)
File "/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/site-packages/buildozer-0.28dev-py2.7.egg/buildozer/target.py", line 85, in run_commands
func(args)
File "/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/site-packages/buildozer-0.28dev-py2.7.egg/buildozer/target.py", line 95, in cmd_debug
self.buildozer.prepare_for_build()
File "/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/site-packages/buildozer-0.28dev-py2.7.egg/buildozer/init.py", line 161, in prepare_for_build
self.target.install_platform()
File "/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/site-packages/buildozer-0.28dev-py2.7.egg/buildozer/targets/android.py", line 424, in install_platform
self._install_android_packages()
File "/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/site-packages/buildozer-0.28dev-py2.7.egg/buildozer/targets/android.py", line 383, in _install_android_packages
ver = self._find_latest_package(packages, 'build-tools-')
File "/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/site-packages/buildozer-0.28dev-py2.7.egg/buildozer/targets/android.py", line 349, in _find_latest_package
version = self._process_version_string(version_string)
File "/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/site-packages/buildozer-0.28dev-py2.7.egg/buildozer/targets/android.py", line 318, in _process_version_string
version = [int(i) for i in version_string.split(".")]
ValueError: invalid literal for int() with base 10: '0_rc1'
The text was updated successfully, but these errors were encountered: