I am a Mac user and I am currently trying to run bulldozer in debug mode:
buildozer -v android debug
And it works so far, until it tries to download numpy from an URL. I am getting the error at the end of this thread. In fact if I try wget in the corresponding url it would not download numpy. However, it works if I try to get it from the browser. How can I solve this issue?
The error I get:
[INFO]: Downloading numpy from https://pypi.python.org/packages/source/n/numpy/numpy-1.26.4.zip
Traceback (most recent call last):
File "/Library/Developer/CommandLineTools/Library/Frameworks/Python3.framework/Versions/3.9/lib/python3.9/runpy.py", line 197, in _run_module_as_main
return _run_code(code, main_globals, None,
File "/Library/Developer/CommandLineTools/Library/Frameworks/Python3.framework/Versions/3.9/lib/python3.9/runpy.py", line 87, in _run_code
exec(code, run_globals)
File "/Users/agus/repositories/chatgpt_app/.buildozer/android/platform/python-for-android/pythonforandroid/toolchain.py", line 1256, in
main()
File "/Users/agus/repositories/chatgpt_app/.buildozer/android/platform/python-for-android/pythonforandroid/entrypoints.py", line 18, in main
ToolchainCL()
File "/Users/agus/repositories/chatgpt_app/.buildozer/android/platform/python-for-android/pythonforandroid/toolchain.py", line 685, in init
getattr(self, command)(args)
File "/Users/agus/repositories/chatgpt_app/.buildozer/android/platform/python-for-android/pythonforandroid/toolchain.py", line 104, in wrapper_func
build_dist_from_args(ctx, dist, args)
File "/Users/agus/repositories/chatgpt_app/.buildozer/android/platform/python-for-android/pythonforandroid/toolchain.py", line 163, in build_dist_from_args
build_recipes(build_order, python_modules, ctx,
File "/Users/agus/repositories/chatgpt_app/.buildozer/android/platform/python-for-android/pythonforandroid/build.py", line 482, in build_recipes
recipe.download_if_necessary()
File "/Users/agus/repositories/chatgpt_app/.buildozer/android/platform/python-for-android/pythonforandroid/recipe.py", line 352, in download_if_necessary
self.download()
File "/Users/agus/repositories/chatgpt_app/.buildozer/android/platform/python-for-android/pythonforandroid/recipe.py", line 402, in download
self.download_file(self.versioned_url, filename)
File "/Users/agus/repositories/chatgpt_app/.buildozer/android/platform/python-for-android/pythonforandroid/recipe.py", line 206, in download_file
urlretrieve(url, target, report_hook)
File "/Library/Developer/CommandLineTools/Library/Frameworks/Python3.framework/Versions/3.9/lib/python3.9/urllib/request.py", line 239, in urlretrieve
with contextlib.closing(urlopen(url, data)) as fp:
File "/Library/Developer/CommandLineTools/Library/Frameworks/Python3.framework/Versions/3.9/lib/python3.9/urllib/request.py", line 214, in urlopen
return opener.open(url, data, timeout)
File "/Library/Developer/CommandLineTools/Library/Frameworks/Python3.framework/Versions/3.9/lib/python3.9/urllib/request.py", line 523, in open
response = meth(req, response)
File "/Library/Developer/CommandLineTools/Library/Frameworks/Python3.framework/Versions/3.9/lib/python3.9/urllib/request.py", line 632, in http_response
response = self.parent.error(
File "/Library/Developer/CommandLineTools/Library/Frameworks/Python3.framework/Versions/3.9/lib/python3.9/urllib/request.py", line 555, in error
result = self._call_chain(args)
File "/Library/Developer/CommandLineTools/Library/Frameworks/Python3.framework/Versions/3.9/lib/python3.9/urllib/request.py", line 494, in _call_chain
result = func(args)
File "/Library/Developer/CommandLineTools/Library/Frameworks/Python3.framework/Versions/3.9/lib/python3.9/urllib/request.py", line 747, in http_error_302
return self.parent.open(new, timeout=req.timeout)
File "/Library/Developer/CommandLineTools/Library/Frameworks/Python3.framework/Versions/3.9/lib/python3.9/urllib/request.py", line 523, in open
response = meth(req, response)
File "/Library/Developer/CommandLineTools/Library/Frameworks/Python3.framework/Versions/3.9/lib/python3.9/urllib/request.py", line 632, in http_response
response = self.parent.error(
File "/Library/Developer/CommandLineTools/Library/Frameworks/Python3.framework/Versions/3.9/lib/python3.9/urllib/request.py", line 555, in error
result = self._call_chain(args)
File "/Library/Developer/CommandLineTools/Library/Frameworks/Python3.framework/Versions/3.9/lib/python3.9/urllib/request.py", line 494, in _call_chain
result = func(args)
File "/Library/Developer/CommandLineTools/Library/Frameworks/Python3.framework/Versions/3.9/lib/python3.9/urllib/request.py", line 747, in http_error_302
return self.parent.open(new, timeout=req.timeout)
File "/Library/Developer/CommandLineTools/Library/Frameworks/Python3.framework/Versions/3.9/lib/python3.9/urllib/request.py", line 523, in open
response = meth(req, response)
File "/Library/Developer/CommandLineTools/Library/Frameworks/Python3.framework/Versions/3.9/lib/python3.9/urllib/request.py", line 632, in http_response
response = self.parent.error(
File "/Library/Developer/CommandLineTools/Library/Frameworks/Python3.framework/Versions/3.9/lib/python3.9/urllib/request.py", line 561, in error
return self._call_chain(args)
File "/Library/Developer/CommandLineTools/Library/Frameworks/Python3.framework/Versions/3.9/lib/python3.9/urllib/request.py", line 494, in _call_chain
result = func(args)
File "/Library/Developer/CommandLineTools/Library/Frameworks/Python3.framework/Versions/3.9/lib/python3.9/urllib/request.py", line 641, in http_error_default
raise HTTPError(req.full_url, code, msg, hdrs, fp)
urllib.error.HTTPError: HTTP Error 404: Not Found
Download failed: HTTP Error 404: Not Found; retrying in 1 second(s)...Download failed: HTTP Error 404: Not Found; retrying in 2 second(s)...Download failed: HTTP Error 404: Not Found; retrying in 4 second(s)...Download failed: HTTP Error 404: Not Found; retrying in 8 second(s)...# Command failed: ['/Users/agus/repositories/chatgpt_app/venv/bin/python3', '-m', 'pythonforandroid.toolchain', 'create', '--dist_name=moviechat', '--bootstrap=sdl2', '--requirements=annotated-types==0.6.0,anyio==4.3.0,audioread==3.0.1,buildozer==1.5.0,certifi==2024.2.2,cffi==1.16.0,charset-normalizer==3.3.2,click==8.1.7,contourpy==1.1.1,cycler==0.12.1,decorator==5.1.1,distlib==0.3.8,distro==1.9.0,docutils==0.20.1,exceptiongroup==1.2.0,filelock==3.13.1,fonttools==4.49.0,fsspec==2024.2.0,gTTS==2.5.1,h11==0.14.0,httpcore==1.0.4,httpx==0.27.0,idna==3.6,importlib-metadata==7.0.1,importlib-resources==6.1.1,Jinja2==3.1.3,joblib==1.3.2,Kivy==2.3.0,Kivy-Garden==0.1.5,kiwisolver==1.4.5,lazy_loader==0.3,librosa==0.10.1,llvmlite==0.41.1,MarkupSafe==2.1.5,matplotlib==3.7.5,mpmath==1.3.0,msgpack==1.0.7,networkx==3.1,noisereduce==3.0.0,numba==0.58.1,numpy==1.26.4,openai==1.12.0,packaging==23.2,pexpect==4.9.0,pillow==10.2.0,platformdirs==4.2.0,playsound==1.3.0,pooch==1.8.1,ptyprocess==0.7.0,PyAudio==0.2.14,pycparser==2.21,pydantic==2.6.2,pydantic_core==2.16.3,Pygments==2.17.2,pyparsing==3.1.1,python-dateutil==2.8.2,requests==2.31.0,scikit-learn==1.3.2,scipy==1.10.1,sh==2.0.6,six==1.16.0,sniffio==1.3.0,soundfile==0.12.1,soxr==0.3.7,SpeechRecognition==3.10.1,sympy==1.12,threadpoolctl==3.3.0,torch==2.2.1,tqdm==4.66.2,typing_extensions==4.9.0,urllib3==2.2.1,virtualenv==20.25.1,whisper==1.1.10,zipp==3.17.0', '--arch=arm64-v8a', '--arch=armeabi-v7a', '--copy-libs', '--color=always', '--storage-dir=/Users/agus/repositories/chatgpt_app/.buildozer/android/platform/build-arm64-v8a_armeabi-v7a', '--ndk-api=21', '--ignore-setup-py', '--debug']
Buildozer failed to execute the last command
The error might be hidden in the log above this error
Please read the full log, and search for it before
raising an issue with buildozer itself.
In case of a bug report, please add a full log with log_level = 2
I am a Mac user and I am currently trying to run bulldozer in debug mode:
buildozer -v android debug
And it works so far, until it tries to download numpy from an URL. I am getting the error at the end of this thread. In fact if I try wget in the corresponding url it would not download numpy. However, it works if I try to get it from the browser. How can I solve this issue?
The error I get:
[INFO]: Downloading numpy from https://pypi.python.org/packages/source/n/numpy/numpy-1.26.4.zip Traceback (most recent call last): File "/Library/Developer/CommandLineTools/Library/Frameworks/Python3.framework/Versions/3.9/lib/python3.9/runpy.py", line 197, in _run_module_as_main return _run_code(code, main_globals, None, File "/Library/Developer/CommandLineTools/Library/Frameworks/Python3.framework/Versions/3.9/lib/python3.9/runpy.py", line 87, in _run_code exec(code, run_globals) File "/Users/agus/repositories/chatgpt_app/.buildozer/android/platform/python-for-android/pythonforandroid/toolchain.py", line 1256, in
main()
File "/Users/agus/repositories/chatgpt_app/.buildozer/android/platform/python-for-android/pythonforandroid/entrypoints.py", line 18, in main
ToolchainCL()
File "/Users/agus/repositories/chatgpt_app/.buildozer/android/platform/python-for-android/pythonforandroid/toolchain.py", line 685, in init
getattr(self, command)(args)
File "/Users/agus/repositories/chatgpt_app/.buildozer/android/platform/python-for-android/pythonforandroid/toolchain.py", line 104, in wrapper_func
build_dist_from_args(ctx, dist, args)
File "/Users/agus/repositories/chatgpt_app/.buildozer/android/platform/python-for-android/pythonforandroid/toolchain.py", line 163, in build_dist_from_args
build_recipes(build_order, python_modules, ctx,
File "/Users/agus/repositories/chatgpt_app/.buildozer/android/platform/python-for-android/pythonforandroid/build.py", line 482, in build_recipes
recipe.download_if_necessary()
File "/Users/agus/repositories/chatgpt_app/.buildozer/android/platform/python-for-android/pythonforandroid/recipe.py", line 352, in download_if_necessary
self.download()
File "/Users/agus/repositories/chatgpt_app/.buildozer/android/platform/python-for-android/pythonforandroid/recipe.py", line 402, in download
self.download_file(self.versioned_url, filename)
File "/Users/agus/repositories/chatgpt_app/.buildozer/android/platform/python-for-android/pythonforandroid/recipe.py", line 206, in download_file
urlretrieve(url, target, report_hook)
File "/Library/Developer/CommandLineTools/Library/Frameworks/Python3.framework/Versions/3.9/lib/python3.9/urllib/request.py", line 239, in urlretrieve
with contextlib.closing(urlopen(url, data)) as fp:
File "/Library/Developer/CommandLineTools/Library/Frameworks/Python3.framework/Versions/3.9/lib/python3.9/urllib/request.py", line 214, in urlopen
return opener.open(url, data, timeout)
File "/Library/Developer/CommandLineTools/Library/Frameworks/Python3.framework/Versions/3.9/lib/python3.9/urllib/request.py", line 523, in open
response = meth(req, response)
File "/Library/Developer/CommandLineTools/Library/Frameworks/Python3.framework/Versions/3.9/lib/python3.9/urllib/request.py", line 632, in http_response
response = self.parent.error(
File "/Library/Developer/CommandLineTools/Library/Frameworks/Python3.framework/Versions/3.9/lib/python3.9/urllib/request.py", line 555, in error
result = self._call_chain(args)
File "/Library/Developer/CommandLineTools/Library/Frameworks/Python3.framework/Versions/3.9/lib/python3.9/urllib/request.py", line 494, in _call_chain
result = func(args)
File "/Library/Developer/CommandLineTools/Library/Frameworks/Python3.framework/Versions/3.9/lib/python3.9/urllib/request.py", line 747, in http_error_302
return self.parent.open(new, timeout=req.timeout)
File "/Library/Developer/CommandLineTools/Library/Frameworks/Python3.framework/Versions/3.9/lib/python3.9/urllib/request.py", line 523, in open
response = meth(req, response)
File "/Library/Developer/CommandLineTools/Library/Frameworks/Python3.framework/Versions/3.9/lib/python3.9/urllib/request.py", line 632, in http_response
response = self.parent.error(
File "/Library/Developer/CommandLineTools/Library/Frameworks/Python3.framework/Versions/3.9/lib/python3.9/urllib/request.py", line 555, in error
result = self._call_chain(args)
File "/Library/Developer/CommandLineTools/Library/Frameworks/Python3.framework/Versions/3.9/lib/python3.9/urllib/request.py", line 494, in _call_chain
result = func(args)
File "/Library/Developer/CommandLineTools/Library/Frameworks/Python3.framework/Versions/3.9/lib/python3.9/urllib/request.py", line 747, in http_error_302
return self.parent.open(new, timeout=req.timeout)
File "/Library/Developer/CommandLineTools/Library/Frameworks/Python3.framework/Versions/3.9/lib/python3.9/urllib/request.py", line 523, in open
response = meth(req, response)
File "/Library/Developer/CommandLineTools/Library/Frameworks/Python3.framework/Versions/3.9/lib/python3.9/urllib/request.py", line 632, in http_response
response = self.parent.error(
File "/Library/Developer/CommandLineTools/Library/Frameworks/Python3.framework/Versions/3.9/lib/python3.9/urllib/request.py", line 561, in error
return self._call_chain(args)
File "/Library/Developer/CommandLineTools/Library/Frameworks/Python3.framework/Versions/3.9/lib/python3.9/urllib/request.py", line 494, in _call_chain
result = func(args)
File "/Library/Developer/CommandLineTools/Library/Frameworks/Python3.framework/Versions/3.9/lib/python3.9/urllib/request.py", line 641, in http_error_default
raise HTTPError(req.full_url, code, msg, hdrs, fp)
urllib.error.HTTPError: HTTP Error 404: Not Found
Download failed: HTTP Error 404: Not Found; retrying in 1 second(s)...Download failed: HTTP Error 404: Not Found; retrying in 2 second(s)...Download failed: HTTP Error 404: Not Found; retrying in 4 second(s)...Download failed: HTTP Error 404: Not Found; retrying in 8 second(s)...# Command failed: ['/Users/agus/repositories/chatgpt_app/venv/bin/python3', '-m', 'pythonforandroid.toolchain', 'create', '--dist_name=moviechat', '--bootstrap=sdl2', '--requirements=annotated-types==0.6.0,anyio==4.3.0,audioread==3.0.1,buildozer==1.5.0,certifi==2024.2.2,cffi==1.16.0,charset-normalizer==3.3.2,click==8.1.7,contourpy==1.1.1,cycler==0.12.1,decorator==5.1.1,distlib==0.3.8,distro==1.9.0,docutils==0.20.1,exceptiongroup==1.2.0,filelock==3.13.1,fonttools==4.49.0,fsspec==2024.2.0,gTTS==2.5.1,h11==0.14.0,httpcore==1.0.4,httpx==0.27.0,idna==3.6,importlib-metadata==7.0.1,importlib-resources==6.1.1,Jinja2==3.1.3,joblib==1.3.2,Kivy==2.3.0,Kivy-Garden==0.1.5,kiwisolver==1.4.5,lazy_loader==0.3,librosa==0.10.1,llvmlite==0.41.1,MarkupSafe==2.1.5,matplotlib==3.7.5,mpmath==1.3.0,msgpack==1.0.7,networkx==3.1,noisereduce==3.0.0,numba==0.58.1,numpy==1.26.4,openai==1.12.0,packaging==23.2,pexpect==4.9.0,pillow==10.2.0,platformdirs==4.2.0,playsound==1.3.0,pooch==1.8.1,ptyprocess==0.7.0,PyAudio==0.2.14,pycparser==2.21,pydantic==2.6.2,pydantic_core==2.16.3,Pygments==2.17.2,pyparsing==3.1.1,python-dateutil==2.8.2,requests==2.31.0,scikit-learn==1.3.2,scipy==1.10.1,sh==2.0.6,six==1.16.0,sniffio==1.3.0,soundfile==0.12.1,soxr==0.3.7,SpeechRecognition==3.10.1,sympy==1.12,threadpoolctl==3.3.0,torch==2.2.1,tqdm==4.66.2,typing_extensions==4.9.0,urllib3==2.2.1,virtualenv==20.25.1,whisper==1.1.10,zipp==3.17.0', '--arch=arm64-v8a', '--arch=armeabi-v7a', '--copy-libs', '--color=always', '--storage-dir=/Users/agus/repositories/chatgpt_app/.buildozer/android/platform/build-arm64-v8a_armeabi-v7a', '--ndk-api=21', '--ignore-setup-py', '--debug']
Buildozer failed to execute the last command The error might be hidden in the log above this error Please read the full log, and search for it before raising an issue with buildozer itself. In case of a bug report, please add a full log with log_level = 2