-
Notifications
You must be signed in to change notification settings - Fork 241
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
toolchain.py build kivy fail #322
Comments
I am getting the same error. I should add that when I look at the code for toolchain.py it calls for python3:
I switched it to 2.7:
And it seems to start but I get the following:
I am pausing for a moment, but I think the solution may be here: |
FYI pypi buildozer did not help. |
I'm getting the same error. When I use the command as suggested in the error message like this
|
Hello: I'm reinstall python, dependencis and then kivy and all work fine now. Thanks a lot. |
I have no idea if this is the right fix (or why it is appearing suddenly), but I can't see how the code in python-future is right here. Here's a potential workaround: PythonCharmers/python-future#423 |
@yanlb @ozc @tzujan : Can you try the referenced #332 to see if this fixes your issue? Note, this workaround will require you install the |
Also getting the same error as @ozc: AttributeError: '_fileobject' object has no attribute 'readinto' |
So after finding that the .zip files "downloaded" were zero bytes it became evident why i would get a BadZipFile Error. Seems like the download fails. I've just used wget to manually download the zip files that fail. so far have had to do this for kivy,pyobjus,plyer I already had requests installed so i think that would rule that out |
Having requests installed is not the fix (there's no code to use it by default). Can you try applying #332? You shoud not receive the I had a fix for the zipfile issue in my tree. The problem is exactly that - a 0 byte zipfile is left hanging around. Let me dig it out and make a PR for it... |
for anyone finding this issue an easy fix is to use miniconda or anaconda and create a conda environment. The issue is that the module inside the requirements.txt file, namely a fix is to create a conda environment, then activate that environment and run all building within that environment Assuming you have miniconda installed. environment.yml file
then
the version for cython and python should be changed if creating a python2 environment. |
@ssolari Thanks for that! It's not a complete workaround, however. Many of the recipe builds will fail, as they also require downloads (and will use the That said, I do have a cookiecutter I use for starting a kivy project, whose template is a superset of what you have done above. I'll think you've encouraged me to clean it up and share it on github. |
Thanks a lot |
Same thing happened to me, fixed it by specifying python2: |
I´m follow this tutorial https://kivy.org/doc/stable/guide/packaging-ios.html and
when:
$ git clone git://github.com/kivy/kivy-ios
$ cd kivy-ios
$ ./toolchain.py build kivy
give me this error:
ERROR: pbxproj requirements is missing
To install: pip install -r requirements.txt
When run: pip install -r requirements.txt all Requirements already satisfied
and re run: ./toolchain.py build kivy and giveme the same error.
Thanks a lot
The text was updated successfully, but these errors were encountered: