Скопируйте текст из консоли и вставьте его вместо картинки в вопрос в тег code
[ERROR]: virtualenv is needed to install pure-Python modules, but
[ERROR]: virtualenv does not support nesting, and you are running
[ERROR]: python-for-android in one. Please run p4a outside of a
[ERROR]: virtualenv instead.
# Command failed: /home/mail5/pyvenv/bin/python -m pythonforandroid.toolchain create --dist_name=myapp --bootstrap=sdl2 --requirements=kivy,python2,bluetooth --arch armeabi-v7a --copy-libs --color=always --storage-dir=/home/mail5/pyvenv/myapp/.buildozer/android/platform/build
#
# 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
Copying libraries
[INFO]: Creating a requirements.txt file for the Python modules
[INFO]: Installing Python modules with pip
[INFO]: If this fails with a message about /bin/false, this probably means the package cannot be installed with pip as it needs a compilation recipe.
[INFO]: -> running bash -c source venv/bin/activa...(and 332 more)
working: Command "/home/mail5/pyvenv/myapp/.b...(and 580 mException in thread background thread for pid 2430:
Traceback (most recent call last):
File "/usr/lib/python2.7/threading.py", line 810, in __bootstrap_inner
self.run()
File "/usr/lib/python2.7/threading.py", line 763, in run
self.__target(*self.__args, **self.__kwargs)
File "/home/mail5/.local/lib/python2.7/site-packages/sh.py", line 1540, in wrap
fn(*args, **kwargs)
File "/home/mail5/.local/lib/python2.7/site-packages/sh.py", line 2459, in background_thread
handle_exit_code(exit_code)
File "/home/mail5/.local/lib/python2.7/site-packages/sh.py", line 2157, in fn
return self.command.handle_command_exit_code(exit_code)
File "/home/mail5/.local/lib/python2.7/site-packages/sh.py", line 815, in handle_command_exit_code
raise exc
ErrorReturnCode_1:
RAN: /bin/bash -c source venv/bin/activate && env CC=/bin/false CXX=/bin/false PYTHONPATH=/home/mail5/pyvenv/myapp/.buildozer/android/platform/build/build/python-installs/myapp/lib/python2.7/site-packages pip install --target '/home/mail5/pyvenv/myapp/.buildozer/android/platform/build/build/python-installs/myapp/lib/python2.7/site-packages' --no-deps -r requirements.txt
STDOUT:
Collecting pybluez (from -r requirements.txt (line 1))
/home/mail5/pyvenv/myapp/.buildozer/android/platform/build/build/venv/local/lib/python2.7/site-packages/pip/_vendor/requests/packages/urllib3/util/ssl_.py:318: SNIMissingWarning: An HTTPS request has been made, but the SNI (Subject Name Indication) extension to TLS is not available on this platform. This may cause the server to present an incorrect TLS certificate, which can cause validation failures. You can upgrade to a newer version of Python to solve this. For more information, see https://urllib3.readthedocs.io/en/latest/security.html#snimissingwarning.
SNIMissingWarning
/home/mail5/pyvenv/myapp/.buildozer/android/platform/build/build/venv/local/lib/python2.7/site-packages/pip/_vendor/requests/packages/urllib3/util/ssl_.py:122: InsecurePlatformWarning: A true SSLContext object is not available. This prevents urllib3 from configuring SSL appropriately and may cause certain SSL connections to fail. You can upgrade to a newer version of Python to solve this. For more information, see https://urllib3.readthedocs.io/en/latest/security.html#insecureplatformwarning.
InsecurePlatformWarning
Using cached PyBluez-0.22.zip
Building wheels for collected packages: pybluez
Running setup.py bdist_wheel for pybluez ... error
Complete output from command /home/mail5/pyvenv/myapp/.buildozer/android/platform/build/build/venv/bin/python2.7 -u -c "import setuptools, tokenize;__file__='/tmp/pip-build-tGuTHL/pybluez/setup.py';f=getattr(tokenize, 'open', open)(__file__);code=f.read().replace('\r\n', '\n');f.close();exec(compile(code, __file__, 'exec'))" bdist_wheel -d /tmp/tmpyChxPTpip-wheel- --python-tag cp27:
running bdist_wheel
running build
running build_py
creating build
creating build/lib.linux-i686-2.7
creating build/lib.linux-i686-2.7/bluetooth
copying bluetooth/ble.py -> build/lib.linux-i686-2.7/bluetooth
copying bluetooth/osx.py -> build/lib.linux-i686-2.7/bluetooth
copying bluetooth/__init__.py -> build/lib.linux-i686-2.7/bluetooth
copying bluetooth/bluez.py -> build/lib.linux-i686-2.7/bluetooth
copying bluetooth/widcomm.py -> build/lib.linux-i686-2.7/bluetooth
copying bluetooth/btcommon.py -> build/lib.linux-i686-2.7/bluetooth
copying bluetooth/msbt.py -> build/lib.linux-i686-2.7/bluetooth
running build_ext
building 'bluetooth._bluetooth' extension
creating build/temp.linux-i686-2.7
creating build/temp.linux-i686-2.7/bluez
/bin/false -fno-strict-aliasing -DNDEBUG -g -fwrapv -O2 -Wall -Wstrict-prototypes -fPIC -I./port3 -I/usr/include/python2.7 -c bluez/btmodule.c -o build/temp.linux-i686-2.7/bluez/btmodule.o
error: command '/bin/false' failed with exit status 1
----------------------------------------
Failed building wheel for pybluez
Running setup.py clean for pybluez
Failed to build pybluez
Installing collected packages: pybluez
Running setup.py install for pybluez ... error
Complete output from command /home/mail5/pyvenv/myapp/.buildozer/android/platform/build/build/venv/bin/python2.7 -u -c "import setuptools, tokenize;__file__='/tmp/pip-build-tGuTHL/pybluez/setup.py';f=getattr(tokenize, 'open', open)(__file__);code=f.read().replace('\r\n', '\n');f.close();exec(compile(code, __file__, 'exec'))" install --record /tmp/pip-kcWU6R-record/install-record.txt --single-version-externally-managed --compile --install-headers /home/mail5/pyvenv/myapp/.buildozer/android/platform/build/build/venv/include/site/python2.7/pybluez --home=/tmp/tmpJFizC8:
running install
running build
running build_py
creating build
creating build/lib.linux-i686-2.7
creating build/lib.linux-i686-2.7/bluetooth
copying bluetooth/ble.py -> build/lib.linux-i686-2.7/bluetooth
copying bluetooth/osx.py -> build/lib.linux-i686-2.7/bluetooth
copying bluetooth/__init__.py -> build/lib.linux-i686-2.7/bluetooth
copying bluetooth/bluez.py -> build/lib.linux-i686-2.7/bluetooth
copying bluetooth/widcomm.py -> build/lib.linux-i686-2.7/bluetooth
copying bluetooth/btcommon.py -> build/lib.linux-i686-2.7/bluetooth
copying bluetooth/msbt.py -> build/lib.linux-i686-2.7/bluetooth
running build_ext
building 'bluetooth._bluetooth' extension
creating build/temp.linux-i686-2.7
creating build/temp.linux-i686-2.7/bluez
/bin/false -fno-strict-aliasing -DNDEBUG -g -fwrapv -O2 -Wall -Wstrict-prototypes -fPIC -I./port3 -I/usr/include/python2.7 -c bluez/btmodule.c -o build/temp.linux-i686-2.7/bluez/btmodule.o
error: command '/bin/false' failed with exit status 1
----------------------------------------
Failed building wheel for pybluez
Running setup.py clean for pybluez
Failed to build pybluez
Installing collected packages: pybluez
Running setup.py install for pybluez ... error
Complete output from command /home/mail5/pyvenv/myapp/.buildozer/android/platform/build/build/venv/bin/python2.7 -u -c "import setuptools, tokenize;__file__='/tmp/pip-build-tGuTHL/pybluez/setup.py';f=getattr(tokenize, 'open', open)(__file__);code=f.read().replace('\r\n', '\n');f.close();exec(compile(code, __file__, 'exec'))" install --record /tmp/pip-kcWU6R-record/install-record.txt --single-version-externally-managed --compile --install-headers /home/mail5/pyvenv/myapp/.buildozer/android/platform/build/build/venv/include/site/python2.7/pybluez --home=/tmp/tmpJFizC8:
running install
running build
running build_py
creating build
creating build/lib.linux-i686-2.7
creating build/lib.linux-i686-2.7/bluetooth
copying bluetooth/ble.py -> build/lib.linux-i686-2.7/bluetooth
copying bluetooth/osx.py -> build/lib.linux-i686-2.7/bluetooth
copying bluetooth/__init__.py -> build/lib.linux-i686-2.7/bluetooth
copying bluetooth/bluez.py -> build/lib.linux-i686-2.7/bluetooth
copying bluetooth/widcomm.py -> build/lib.linux-i686-2.7/bluetooth
copying bluetooth/btcommon.py -> build/lib.linux-i686-2.7/bluetooth
copying bluetooth/msbt.py -> build/lib.linux-i686-2.7/bluetooth
running build_ext
building 'bluetooth._bluetooth' extension
creating build/temp.linux-i686-2.7
creating build/temp.linux-i686-2.7/bluez
/bin/false -fno-strict-aliasing -DNDEBUG -g -fwrapv -O2 -Wall -Wstrict-prototypes -fPIC -I./port3 -I/usr/include/python2.7 -c bluez/btmodule.c -o build/temp.linux-i686-2.7/bluez/btmodule.o
error: command '/bin/false' failed with exit status 1
----------------------------------------
Command "/home/mail5/pyvenv/myapp/.buildozer/android/platform/build/build/venv/bin/python2.7 -u -c "import setuptools, tokenize;__file__='/tmp/pip-build-tGuTHL/pybluez/setup.py';f=getattr(tokenize, 'open', open)(__file__);code=f.read().replace('\r\n', '\n');f.close();exec(compile(code, __file__, 'exec'))" install --record /tmp/pip-kcWU6R-record/install-record.txt --single-version-externally-managed --compile --install-headers /home/mail5/pyvenv/myapp/.buildozer/android/platform/build/build/venv/include/site/python2.7/pybluez --home=/tmp/tmpJFizC8" failed with error code 1 in /tmp/pip-build-tGuTHL/pybluez/
STDERR:
Traceback (most recent call last):
File "/usr/lib/python2.7/runpy.py", line 162, in _run_module_as_main
"__main__", fname, loader, pkg_name)
File "/usr/lib/python2.7/runpy.py", line 72, in _run_code
exec code in run_globals
File "/home/mail5/pyvenv/myapp/.buildozer/android/platform/python-for-android-master/pythonforandroid/toolchain.py", line 905, in <module>
main()
File "/home/mail5/pyvenv/myapp/.buildozer/android/platform/python-for-android-master/pythonforandroid/toolchain.py", line 902, in main
ToolchainCL()
File "/home/mail5/pyvenv/myapp/.buildozer/android/platform/python-for-android-master/pythonforandroid/toolchain.py", line 508, in __init__
getattr(self, args.subparser_name.replace('-', '_'))(args)
File "/home/mail5/pyvenv/myapp/.buildozer/android/platform/python-for-android-master/pythonforandroid/toolchain.py", line 147, in wrapper_func
build_dist_from_args(ctx, dist, args)
File "/home/mail5/pyvenv/myapp/.buildozer/android/platform/python-for-android-master/pythonforandroid/toolchain.py", line 190, in build_dist_from_args
build_recipes(build_order, python_modules, ctx)
File "pythonforandroid/build.py", line 585, in build_recipes
File "pythonforandroid/build.py", line 626, in run_pymodules_install
File "pythonforandroid/logger.py", line 175, in shprint
File "/home/mail5/.local/lib/python2.7/site-packages/sh.py", line 863, in next
self.wait()
File "/home/mail5/.local/lib/python2.7/site-packages/sh.py", line 792, in wait
self.handle_command_exit_code(exit_code)
File "/home/mail5/.local/lib/python2.7/site-packages/sh.py", line 815, in handle_command_exit_code
raise exc
sh.ErrorReturnCode_1:
RAN: /bin/bash -c source venv/bin/activate && env CC=/bin/false CXX=/bin/false PYTHONPATH=/home/mail5/pyvenv/myapp/.buildozer/android/platform/build/build/python-installs/myapp/lib/python2.7/site-packages pip install --target '/home/mail5/pyvenv/myapp/.buildozer/android/platform/build/build/python-installs/myapp/lib/python2.7/site-packages' --no-deps -r requirements.txt
STDOUT:
Collecting pybluez (from -r requirements.txt (line 1))
/home/mail5/pyvenv/myapp/.buildozer/android/platform/build/build/venv/local/lib/python2.7/site-packages/pip/_vendor/requests/packages/urllib3/util/ssl_.py:318: SNIMissingWarning: An HTTPS request has been made, but the SNI (Subject Name Indication) extension to TLS is not available on this platform. This may cause the server to present an incorrect TLS certificate, which can cause validation failures. You can upgrade to a newer version of Python to solve this. For more information, see https://urllib3.readthedocs.io/en/latest/security.html#snimissingwarning.
SNIMissingWarning
/home/mail5/pyvenv/myapp/.buildozer/android/platform/build/build/venv/local/lib/python2.7/site-packages/pip/_vendor/requests/packages/urllib3/util/ssl_.py:122: InsecurePlatformWarning: A true SSLContext object is not available. This prevents urllib3 from configuring SSL appropriately and may cause certain SSL connections to fail. You can upgrade to a newer version of Python to solve this. For more information, see https://urllib3.readthedocs.io/en/latest/security.html#insecureplatformwarning.
InsecurePlatformWarning
Using cached PyBluez-0.22.zip
Building wheels for collected packages: pybluez
Running setup.py bdist_wheel for pybluez ... error
Complete output from command /home/mail5/pyvenv/myapp/.buildozer/android/platform/build/build/venv/bin/python2.7 -u -c "import setuptools, tokenize;__file__='/tmp/pip-build-tGuTHL/pybluez/setup.py';f=getattr(tokenize, 'open', open)(__file__);code=f.read().replace('\r\n', '\n');f.close();exec(compile(code, __file__, 'exec'))" bdist_wheel -d /tmp/tmpyChxPTpip-wheel- --python-tag cp27:
running bdist_wheel
running build
running build_py
creating build
creating build/lib.linux-i686-2.7
creating build/lib.linux-i686-2.7/bluetooth
copying bluetooth/ble.py -> build/lib.linux-i686-2.7/bluetooth
copying bluetooth/osx.py -> build/lib.linux-i686-2.7/bluetooth
copying bluetooth/__init__.py -> build/lib.linux-i686-2.7/bluetooth
copying bluetooth/bluez.py -> build/lib.linux-i686-2.7/bluetooth
copying bluetooth/widcomm.py -> build/lib.linux-i686-2.7/bluetooth
copying bluetooth/btcommon.py -> build/lib.linux-i686-2.7/bluetooth
copying bluetooth/msbt.py -> build/lib.linux-i686-2.7/bluetooth
running build_ext
building 'bluetooth._bluetooth' extension
creating build/temp.linux-i686-2.7
creating build/temp.linux-i686-2.7/bluez
/bin/false -fno-strict-aliasing -DNDEBUG -g -fwrapv -O2 -Wall -Wstrict-prototypes -fPIC -I./port3 -I/usr/include/python2.7 -c bluez/btmodule.c -o build/temp.linux-i686-2.7/bluez/btmodule.o
error: command '/bin/false' failed with exit status 1
----------------------------------------
Failed building wheel for pybluez
Running setup.py clean for pybluez
Failed to build pybluez
Installing collected packages: pybluez
Running setup.py install for pybluez ... error
Complete output from command /home/mail5/pyvenv/myapp/.buildozer/android/platform/build/build/venv/bin/python2.7 -u -c "import setuptools, tokenize;__file__='/tmp/pip-build-tGuTHL/pybluez/setup.py';f=getattr(tokenize, 'open', open)(__file__);code=f.read().replace('\r\n', '\n');f.close();exec(compile(code, __file__, 'exec'))" install --record /tmp/pip-kcWU6R-record/install-record.txt --single-version-externally-managed --compile --install-headers /home/mail5/pyvenv/myapp/.buildozer/android/platform/build/build/venv/include/site/python2.7/pybluez --home=/tmp/tmpJFizC8:
running install
running build
running build_py
creating build
creating build/lib.linux-i686-2.7
creating build/lib.linux-i686-2.7/bluetooth
copying bluetooth/ble.py -> build/lib.linux-i686-2.7/bluetooth
copying bluetooth/osx.py -> build/lib.linux-i686-2.7/bluetooth
copying bluetooth/__init__.py -> build/lib.linux-i686-2.7/bluetooth
copying bluetooth/bluez.py -> build/lib.linux-i686-2.7/bluetooth
copying bluetooth/widcomm.py -> build/lib.linux-i686-2.7/bluetooth
copying bluetooth/btcommon.py -> build/lib.linux-i686-2.7/bluetooth
copying bluetooth/msbt.py -> build/lib.linux-i686-2.7/bluetooth
running build_ext
building 'bluetooth._bluetooth' extension
creating build/temp.linux-i686-2.7
creating build/temp.linux-i686-2.7/bluez
/bin/false -fno-strict-aliasing -DNDEBUG -g -fwrapv -O2 -Wall -Wstrict-prototypes -fPIC -I./port3 -I/usr/include/python2.7 -c bluez/btmodule.c -o build/temp.linux-i686-2.7/bluez/btmodule.o
error: command '/bin/false' failed with exit status 1
----------------------------------------
Command "/home/mail5/pyvenv/myapp/.buildozer/android/platform/build/build/venv/bin/python2.7 -u -c "import setuptools, tokenize;__file__='/tmp/pip-build-tGuTHL/pybluez/setup.py';f=getattr(tokenize, 'open', open)(__file__);code=f.read().replace('\r\n', '\n');f.close();exec(compile(code, __file__, 'exec'))" install --record /tmp/pip-kcWU6R-record/install-record.txt --single-version-externally-managed --compile --install-headers /home/mail5/pyvenv/myapp/.buildozer/android/platform/build/build/venv/include/site/python2.7/pybluez --home=/tmp/tmpJFizC8" failed with error code 1 in /tmp/pip-build-tGuTHL/pybluez/
STDERR: