Buildozer: ImportError: No module named site

98 views
Skip to first unread message

хз кто

unread,
Oct 22, 2017, 12:24:59 PM10/22/17
to Kivy users support
...
[INFO]:    -> directory context /media/kivy/2f279a78-3284-4b62-90f5-b0b83f9f8cbd/Micro/.buildozer/android/platform/build/build/other_builds/six-python2/armeabi-v7a/six
[INFO]:    -> running python.host setup.py install -O2
           working: Consider setting $PYTHONHOME to <preException in thread background thread for pid 2133:
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/kivy/.local/lib/python2.7/site-packages/sh.py", line 2170, in background_thread
    handle_exit_code(exit_code)
  File "/home/kivy/.local/lib/python2.7/site-packages/sh.py", line 1929, in fn
    return self.command.handle_command_exit_code(exit_code)
  File "/home/kivy/.local/lib/python2.7/site-packages/sh.py", line 672, in handle_command_exit_code
    raise exc
ErrorReturnCode_1: 

  RAN: /media/kivy/2f279a78-3284-4b62-90f5-b0b83f9f8cbd/Micro/.buildozer/android/platform/build/build/python-installs/nadimmicro/bin/python.host setup.py install -O2

  STDOUT:
Could not find platform independent libraries <prefix>
Consider setting $PYTHONHOME to <prefix>[:<exec_prefix>]
ImportError: No module named site


  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 "/media/kivy/2f279a78-3284-4b62-90f5-b0b83f9f8cbd/Micro/.buildozer/android/platform/python-for-android-master/pythonforandroid/toolchain.py", line 916, in <module>
    main()
  File "/media/kivy/2f279a78-3284-4b62-90f5-b0b83f9f8cbd/Micro/.buildozer/android/platform/python-for-android-master/pythonforandroid/toolchain.py", line 913, in main
    ToolchainCL()
  File "/media/kivy/2f279a78-3284-4b62-90f5-b0b83f9f8cbd/Micro/.buildozer/android/platform/python-for-android-master/pythonforandroid/toolchain.py", line 514, in __init__
    getattr(self, args.subparser_name.replace('-', '_'))(args)
  File "/media/kivy/2f279a78-3284-4b62-90f5-b0b83f9f8cbd/Micro/.buildozer/android/platform/python-for-android-master/pythonforandroid/toolchain.py", line 147, in wrapper_func
    build_dist_from_args(ctx, dist, args)
  File "/media/kivy/2f279a78-3284-4b62-90f5-b0b83f9f8cbd/Micro/.buildozer/android/platform/python-for-android-master/pythonforandroid/toolchain.py", line 192, in build_dist_from_args
    build_recipes(build_order, python_modules, ctx)
  File "pythonforandroid/build.py", line 572, in build_recipes
  File "pythonforandroid/recipe.py", line 806, in build_arch
  File "pythonforandroid/recipe.py", line 846, in install_python_package
  File "pythonforandroid/logger.py", line 175, in shprint
  File "/home/kivy/.local/lib/python2.7/site-packages/sh.py", line 720, in next
    self.wait()
  File "/home/kivy/.local/lib/python2.7/site-packages/sh.py", line 651, in wait
    self.handle_command_exit_code(exit_code)
  File "/home/kivy/.local/lib/python2.7/site-packages/sh.py", line 672, in handle_command_exit_code
    raise exc
sh.ErrorReturnCode_1: 

  RAN: /media/kivy/2f279a78-3284-4b62-90f5-b0b83f9f8cbd/Micro/.buildozer/android/platform/build/build/python-installs/nadimmicro/bin/python.host setup.py install -O2

  STDOUT:
Could not find platform independent libraries <prefix>
Consider setting $PYTHONHOME to <prefix>[:<exec_prefix>]
ImportError: No module named site


  STDERR:

# Command failed: /usr/bin/python -m pythonforandroid.toolchain create --dist_name=nadimmicro --bootstrap=sdl2 --requirements=kivy,PyAudio,SpeechRecognition --arch armeabi-v7a --copy-libs --color=always --storage-dir=/media/kivy/2f279a78-3284-4b62-90f5-b0b83f9f8cbd/Micro/.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


Reply all
Reply to author
Forward
0 new messages