question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Unable to toolchain pip install KivyMD. Tried with master branch too.

See original GitHub issue

[INFO ] Include dir added: {arch.arch}/freetype [INFO ] Include dir added: {arch.arch}/hostlibffi [INFO ] Global: hostpython located at /Users/seangray/Desktop/myapps/dist/hostpython3/bin/python [INFO ] Global: hostpgen located at /Users/seangray/Desktop/myapps/dist/hostpython3/bin/pgen [INFO ] Include dir added: {arch.arch}/ffi [INFO ] Include dir added: {arch.arch}/libjpeg [INFO ] Include dir added: {arch.arch}/openssl [INFO ] Include dir added: common/sdl2 [INFO ] Include dir added: common/sdl2_image [INFO ] Include dir added: common/sdl2_mixer [INFO ] Include dir added: common/sdl2_ttf [ERROR ] Executing pip with: [‘install’, ‘–isolated’, ‘–ignore-installed’, ‘–prefix’, ‘/Users/seangray/Desktop/myapps/dist/root/python3’, ‘https://github.com/kivymd/KivyMD/archive/master.zip’] [INFO ] Running Shell: /Users/seangray/Desktop/myapps/dist/hostpython3/bin/pip3 (‘install’, ‘–isolated’, ‘–ignore-installed’, ‘–prefix’, ‘/Users/seangray/Desktop/myapps/dist/root/python3’, ‘https://github.com/kivymd/KivyMD/archive/master.zip’) {‘_env’: {‘CC’: ‘/bin/false’, ‘CXX’: ‘/bin/false’, ‘PYTHONPATH’: ‘/Users/seangray/Desktop/myapps/dist/root/python3/lib/python3.8/site-packages’, ‘PYTHONOPTIMIZE’: ‘2’}, ‘_iter’: True, ‘_out_bufsize’: 1, ‘_err_to_out’: True} [DEBUG ] Collecting https://github.com/kivymd/KivyMD/archive/master.zip [DEBUG ] Using cached https://github.com/kivymd/KivyMD/archive/master.zip [DEBUG ] Installing build dependencies … done [DEBUG ] Getting requirements to build wheel … done [DEBUG ] Preparing wheel metadata … done [DEBUG ] Collecting kivy>=1.10.1 (from kivymd==0.104.1) [DEBUG ] Using cached https://files.pythonhosted.org/packages/1b/4d/3f8a720f561dc1eabe036c0d87c6ce9d02823275391265538e606f45e37a/Kivy-1.11.1.tar.gz [DEBUG ] ERROR: Command errored out with exit status 1: [DEBUG ] command: /Users/seangray/Desktop/myapps/dist/hostpython3/bin/python3.8 -c ‘import sys, setuptools, tokenize; sys.argv[0] = ‘"’"’/private/tmp/pip-install-ny8izpf7/kivy/setup.py’“'”‘; file=’“'”‘/private/tmp/pip-install-ny8izpf7/kivy/setup.py’“'”‘;f=getattr(tokenize, ‘"’“‘open’”’“‘, open)(file);code=f.read().replace(’”‘"’\r\n’“'”‘, ‘"’"’\n’“'”‘);f.close();exec(compile(code, file, ‘"’“‘exec’”’“‘))’ --no-user-cfg egg_info --egg-base pip-egg-info [DEBUG ] cwd: /private/tmp/pip-install-ny8izpf7/kivy/ [DEBUG ] Complete output (122 lines): [DEBUG ] fatal: not a git repository (or any of the parent directories): .git [DEBUG ] Traceback (most recent call last): [DEBUG ] File “/Users/seangray/Desktop/myapps/dist/hostpython3/lib/python3.8/site-packages/setuptools/sandbox.py”, line 154, in save_modules [DEBUG ] yield saved [DEBUG ] File “/Users/seangray/Desktop/myapps/dist/hostpython3/lib/python3.8/site-packages/setuptools/sandbox.py”, line 195, in setup_context [DEBUG ] yield [DEBUG ] File “/Users/seangray/Desktop/myapps/dist/hostpython3/lib/python3.8/site-packages/setuptools/sandbox.py”, line 250, in run_setup [DEBUG ] _execfile(setup_script, ns) [DEBUG ] File “/Users/seangray/Desktop/myapps/dist/hostpython3/lib/python3.8/site-packages/setuptools/sandbox.py”, line 45, in _execfile [DEBUG ] exec(code, globals, locals) [DEBUG ] File “/tmp/easy_install-0p_tms06/Cython-0.29.10/setup.py”, line 193, in <module> [DEBUG ] # now check if environ is changing the default values [DEBUG ] File “/tmp/easy_install-0p_tms06/Cython-0.29.10/setup.py”, line 113, in compile_cython_modules [DEBUG ] return “” [DEBUG ] File “/Users/seangray/Desktop/myapps/dist/hostpython3/lib/python3.8/os.py”, line 675, in getitem [DEBUG ] raise KeyError(key) from None [DEBUG ] KeyError: ‘PATH’ [DEBUG ]
[DEBUG ] During handling of the above exception, another exception occurred: [DEBUG ]
[DEBUG ] Traceback (most recent call last): [DEBUG ] File “<string>”, line 1, in <module> [DEBUG ] File “/private/tmp/pip-install-ny8izpf7/kivy/setup.py”, line 1073, in <module> [DEBUG ] setup( [DEBUG ] File “/Users/seangray/Desktop/myapps/dist/hostpython3/lib/python3.8/site-packages/setuptools/init.py”, line 144, in setup [DEBUG ] _install_setup_requires(attrs) [DEBUG ] File “/Users/seangray/Desktop/myapps/dist/hostpython3/lib/python3.8/site-packages/setuptools/init.py”, line 139, in _install_setup_requires [DEBUG ] dist.fetch_build_eggs(dist.setup_requires) [DEBUG ] File “/Users/seangray/Desktop/myapps/dist/hostpython3/lib/python3.8/site-packages/setuptools/dist.py”, line 716, in fetch_build_eggs [DEBUG ] resolved_dists = pkg_resources.working_set.resolve( [DEBUG ] File “/Users/seangray/Desktop/myapps/dist/hostpython3/lib/python3.8/site-packages/pkg_resources/init.py”, line 780, in resolve [DEBUG ] dist = best[req.key] = env.best_match( [DEBUG ] File “/Users/seangray/Desktop/myapps/dist/hostpython3/lib/python3.8/site-packages/pkg_resources/init.py”, line 1065, in best_match [DEBUG ] return self.obtain(req, installer) [DEBUG ] File “/Users/seangray/Desktop/myapps/dist/hostpython3/lib/python3.8/site-packages/pkg_resources/init.py”, line 1077, in obtain [DEBUG ] return installer(requirement) [DEBUG ] File “/Users/seangray/Desktop/myapps/dist/hostpython3/lib/python3.8/site-packages/setuptools/dist.py”, line 786, in fetch_build_egg [DEBUG ] return cmd.easy_install(req) [DEBUG ] File “/Users/seangray/Desktop/myapps/dist/hostpython3/lib/python3.8/site-packages/setuptools/command/easy_install.py”, line 679, in easy_install [DEBUG ] return self.install_item(spec, dist.location, tmpdir, deps) [DEBUG ] File “/Users/seangray/Desktop/myapps/dist/hostpython3/lib/python3.8/site-packages/setuptools/command/easy_install.py”, line 705, in install_item [DEBUG ] dists = self.install_eggs(spec, download, tmpdir) [DEBUG ] File “/Users/seangray/Desktop/myapps/dist/hostpython3/lib/python3.8/site-packages/setuptools/command/easy_install.py”, line 890, in install_eggs [DEBUG ] return self.build_and_install(setup_script, setup_base) [DEBUG ] File “/Users/seangray/Desktop/myapps/dist/hostpython3/lib/python3.8/site-packages/setuptools/command/easy_install.py”, line 1158, in build_and_install [DEBUG ] self.run_setup(setup_script, setup_base, args) [DEBUG ] File “/Users/seangray/Desktop/myapps/dist/hostpython3/lib/python3.8/site-packages/setuptools/command/easy_install.py”, line 1144, in run_setup [DEBUG ] run_setup(setup_script, args) [DEBUG ] File “/Users/seangray/Desktop/myapps/dist/hostpython3/lib/python3.8/site-packages/setuptools/sandbox.py”, line 253, in run_setup [DEBUG ] raise [DEBUG ] File “/Users/seangray/Desktop/myapps/dist/hostpython3/lib/python3.8/contextlib.py”, line 131, in exit [DEBUG ] self.gen.throw(type, value, traceback) [DEBUG ] File “/Users/seangray/Desktop/myapps/dist/hostpython3/lib/python3.8/site-packages/setuptools/sandbox.py”, line 195, in setup_context [DEBUG ] yield [DEBUG ] File “/Users/seangray/Desktop/myapps/dist/hostpython3/lib/python3.8/contextlib.py”, line 131, in exit [DEBUG ] self.gen.throw(type, value, traceback) [DEBUG ] File “/Users/seangray/Desktop/myapps/dist/hostpython3/lib/python3.8/site-packages/setuptools/sandbox.py”, line 166, in save_modules [DEBUG ] saved_exc.resume() [DEBUG ] File “/Users/seangray/Desktop/myapps/dist/hostpython3/lib/python3.8/site-packages/setuptools/sandbox.py”, line 141, in resume [DEBUG ] six.reraise(type, exc, self._tb) [DEBUG ] File “/Users/seangray/Desktop/myapps/dist/hostpython3/lib/python3.8/site-packages/setuptools/_vendor/six.py”, line 685, in reraise [DEBUG ] raise value.with_traceback(tb) [DEBUG ] File “/Users/seangray/Desktop/myapps/dist/hostpython3/lib/python3.8/site-packages/setuptools/sandbox.py”, line 154, in save_modules [DEBUG ] yield saved [DEBUG ] File “/Users/seangray/Desktop/myapps/dist/hostpython3/lib/python3.8/site-packages/setuptools/sandbox.py”, line 195, in setup_context [DEBUG ] yield [DEBUG ] File “/Users/seangray/Desktop/myapps/dist/hostpython3/lib/python3.8/site-packages/setuptools/sandbox.py”, line 250, in run_setup [DEBUG ] _execfile(setup_script, ns) [DEBUG ] File “/Users/seangray/Desktop/myapps/dist/hostpython3/lib/python3.8/site-packages/setuptools/sandbox.py”, line 45, in _execfile [DEBUG ] exec(code, globals, locals) [DEBUG ] File “/tmp/easy_install-0p_tms06/Cython-0.29.10/setup.py”, line 193, in <module> [DEBUG ] # now check if environ is changing the default values [DEBUG ] File “/tmp/easy_install-0p_tms06/Cython-0.29.10/setup.py”, line 113, in compile_cython_modules [DEBUG ] return “” [DEBUG ] File “/Users/seangray/Desktop/myapps/dist/hostpython3/lib/python3.8/os.py”, line 675, in getitem [DEBUG ] raise KeyError(key) from None [DEBUG ] KeyError: ‘PATH’ [DEBUG ] Using setuptools [DEBUG ] User distribution detected, avoid portable command. [DEBUG ] Using this graphics system: OpenGL ES 2 [DEBUG ] OSX framework used, force to x86_64 only [DEBUG ] OSX ARCHFLAGS are: -arch x86_64 [DEBUG ] GStreamer framework not found, fallback on pkg-config [DEBUG ] WARNING: A problem occurred while running pkg-config --libs --cflags gstreamer-1.0 (code 1) [DEBUG ]
[DEBUG ] b"Package gstreamer-1.0 was not found in the pkg-config search path.\nPerhaps you should add the directory containing gstreamer-1.0.pc'\nto the PKG_CONFIG_PATH environment variable\nNo package 'gstreamer-1.0' found\n" [DEBUG ] [DEBUG ] Missing framework /Library/Frameworks/SDL2.framework [DEBUG ] Missing framework /Library/Frameworks/SDL2_ttf.framework [DEBUG ] Missing framework /Library/Frameworks/SDL2_image.framework [DEBUG ] Missing framework /Library/Frameworks/SDL2_mixer.framework [DEBUG ] SDL2 frameworks not found, fallback on pkg-config [DEBUG ] WARNING: A problem occurred while running pkg-config --libs --cflags sdl2 SDL2_ttf SDL2_image SDL2_mixer (code 1) [DEBUG ] [DEBUG ] b"Package sdl2 was not found in the pkg-config search path.\nPerhaps you should add the directory containing sdl2.pc’\nto the PKG_CONFIG_PATH environment variable\nNo package ‘sdl2’ found\nPackage SDL2_ttf was not found in the pkg-config search path.\nPerhaps you should add the directory containing SDL2_ttf.pc'\nto the PKG_CONFIG_PATH environment variable\nNo package 'SDL2_ttf' found\nPackage SDL2_image was not found in the pkg-config search path.\nPerhaps you should add the directory containing SDL2_image.pc’\nto the PKG_CONFIG_PATH environment variable\nNo package ‘SDL2_image’ found\nPackage SDL2_mixer was not found in the pkg-config search path.\nPerhaps you should add the directory containing SDL2_mixer.pc'\nto the PKG_CONFIG_PATH environment variable\nNo package 'SDL2_mixer' found\n" [DEBUG ] [DEBUG ] Xcode detected at b'/Users/seangray/Downloads/Xcode.app/Contents/Developer', and using OS X10.15 sdk [DEBUG ] WARNING: A problem occurred while running pkg-config --libs --cflags pangoft2 (code 1) [DEBUG ] [DEBUG ] b"Package pangoft2 was not found in the pkg-config search path.\nPerhaps you should add the directory containing pangoft2.pc’\nto the PKG_CONFIG_PATH environment variable\nNo package ‘pangoft2’ found\n” [DEBUG ]
[DEBUG ] ERROR: Dependency for context.pyx not resolved: config.pxi [DEBUG ] ERROR: Dependency for compiler.pyx not resolved: config.pxi [DEBUG ] ERROR: Dependency for context_instructions.pyx not resolved: config.pxi [DEBUG ] ERROR: Dependency for fbo.pyx not resolved: config.pxi [DEBUG ] ERROR: Dependency for gl_instructions.pyx not resolved: config.pxi [DEBUG ] ERROR: Dependency for instructions.pyx not resolved: config.pxi [DEBUG ] ERROR: Dependency for opengl.pyx not resolved: config.pxi [DEBUG ] ERROR: Dependency for opengl_utils.pyx not resolved: config.pxi [DEBUG ] ERROR: Dependency for shader.pyx not resolved: config.pxi [DEBUG ] ERROR: Dependency for stencil_instructions.pyx not resolved: config.pxi [DEBUG ] ERROR: Dependency for scissor_instructions.pyx not resolved: config.pxi [DEBUG ] ERROR: Dependency for texture.pyx not resolved: config.pxi [DEBUG ] ERROR: Dependency for vbo.pyx not resolved: config.pxi [DEBUG ] ERROR: Dependency for vertex.pyx not resolved: config.pxi [DEBUG ] ERROR: Dependency for vertex_instructions.pyx not resolved: config.pxi [DEBUG ] ERROR: Dependency for cgl.pyx not resolved: config.pxi [DEBUG ] ERROR: Dependency for cgl_mock.pyx not resolved: config.pxi [DEBUG ] ERROR: Dependency for cgl_gl.pyx not resolved: config.pxi [DEBUG ] ERROR: Dependency for cgl_glew.pyx not resolved: config.pxi [DEBUG ] ERROR: Dependency for cgl_sdl2.pyx not resolved: config.pxi [DEBUG ] ERROR: Dependency for svg.pyx not resolved: config.pxi [DEBUG ] ---------------------------------------- [DEBUG ] ERROR: Command errored out with exit status 1: python setup.py egg_info Check the logs for full command output. [DEBUG ] WARNING: You are using pip version 19.2.3, however version 20.2 is available. [DEBUG ] You should consider upgrading via the ‘pip install --upgrade pip’ command. Exception in thread background thread for pid 9960: Traceback (most recent call last): File “/Library/Frameworks/Python.framework/Versions/3.6/lib/python3.6/threading.py”, line 916, in _bootstrap_inner self.run() File “/Library/Frameworks/Python.framework/Versions/3.6/lib/python3.6/threading.py”, line 864, in run self._target(*self._args, **self._kwargs) File “/Users/seangray/Desktop/venv/lib/python3.6/site-packages/sh.py”, line 1662, in wrap fn(*args, **kwargs) File “/Users/seangray/Desktop/venv/lib/python3.6/site-packages/sh.py”, line 2606, in background_thread handle_exit_code(exit_code) File “/Users/seangray/Desktop/venv/lib/python3.6/site-packages/sh.py”, line 2304, in fn return self.command.handle_command_exit_code(exit_code) File “/Users/seangray/Desktop/venv/lib/python3.6/site-packages/sh.py”, line 877, in handle_command_exit_code raise exc sh.ErrorReturnCode_1:

RAN: /Users/seangray/Desktop/myapps/dist/hostpython3/bin/pip3 install --isolated --ignore-installed --prefix /Users/seangray/Desktop/myapps/dist/root/python3 https://github.com/kivymd/KivyMD/archive/master.zip

STDOUT: Collecting https://github.com/kivymd/KivyMD/archive/master.zip Using cached https://github.com/kivymd/KivyMD/archive/master.zip Installing build dependencies … done Getting requirements to build wheel … done Preparing wheel metadata … done Collecting kivy>=1.10.1 (from kivymd==0.104.1) Using cached https://files.pythonhosted.org/packages/1b/4d/3f8a720f561dc1eabe036c0d87c6ce9d02823275391265538e606f45e37a/Kivy-1.11.1.tar.gz ERROR: Command errored out with exit status 1: command: /Users/seangray/Desktop/myapps/dist/hostpython3/bin/python3.8 -c ‘import sys, setuptools, tokenize; sys.argv[0] = ‘"’"’/private/tmp/pip-install-ny8izpf7/kivy/setup.py’“'”';… (10395 more, please see e.stdout)

STDERR:

Traceback (most recent call last): File “/Users/seangray/Desktop/venv/bin/toolchain”, line 11, in <module> sys.exit(main()) File “/Users/seangray/Desktop/venv/lib/python3.6/site-packages/kivy_ios/toolchain.py”, line 1497, in main ToolchainCL() File “/Users/seangray/Desktop/venv/lib/python3.6/site-packages/kivy_ios/toolchain.py”, line 1270, in init getattr(self, args.command)() File “/Users/seangray/Desktop/venv/lib/python3.6/site-packages/kivy_ios/toolchain.py”, line 1456, in pip _pip(sys.argv[2:]) File “/Users/seangray/Desktop/venv/lib/python3.6/site-packages/kivy_ios/toolchain.py”, line 1165, in _pip shprint(pip_cmd, *args, _env=pip_env) File “/Users/seangray/Desktop/venv/lib/python3.6/site-packages/kivy_ios/toolchain.py”, line 67, in shprint for line in cmd: File “/Users/seangray/Desktop/venv/lib/python3.6/site-packages/sh.py”, line 925, in next self.wait() File “/Users/seangray/Desktop/venv/lib/python3.6/site-packages/sh.py”, line 849, in wait self.handle_command_exit_code(exit_code) File “/Users/seangray/Desktop/venv/lib/python3.6/site-packages/sh.py”, line 877, in handle_command_exit_code raise exc sh.ErrorReturnCode_1:

RAN: /Users/seangray/Desktop/myapps/dist/hostpython3/bin/pip3 install --isolated --ignore-installed --prefix /Users/seangray/Desktop/myapps/dist/root/python3 https://github.com/kivymd/KivyMD/archive/master.zip

STDOUT: Collecting https://github.com/kivymd/KivyMD/archive/master.zip Using cached https://github.com/kivymd/KivyMD/archive/master.zip Installing build dependencies … done Getting requirements to build wheel … done Preparing wheel metadata … done Collecting kivy>=1.10.1 (from kivymd==0.104.1) Using cached https://files.pythonhosted.org/packages/1b/4d/3f8a720f561dc1eabe036c0d87c6ce9d02823275391265538e606f45e37a/Kivy-1.11.1.tar.gz ERROR: Command errored out with exit status 1: command: /Users/seangray/Desktop/myapps/dist/hostpython3/bin/python3.8 -c ‘import sys, setuptools, tokenize; sys.argv[0] = ‘"’"’/private/tmp/pip-install-ny8izpf7/kivy/setup.py’“'”';… (10395 more, please see e.stdout)

STDERR:

Issue Analytics

  • State:closed
  • Created 3 years ago
  • Comments:16 (6 by maintainers)

github_iconTop GitHub Comments

1reaction
Zen-CODEcommented, Aug 11, 2020

@seangray123. The approach suggested by @RustyRyan98 should also work, but so does:

python3 toolchain.py pip install kivymd

when testing. Please following the instructions here carefully, ensuring you’ve created the venv, activated it and are running the command from it. Then please post the full log, including the exact command you entered to generate it.

Thanks

0reactions
lchen110commented, Mar 31, 2021

clone the directory and add the kivymd folder in your project, you wont need to install it with toolchain

How do I do that? I added the kivymd folder directly to the project, and it said it is not able to find the module. Would you able to provide more detail on how to set up?

Read more comments on GitHub >

github_iconTop Results From Across the Web

Getting TypeError when installing KivyMD - Stack Overflow
Use pip install git+https://github.com/kivymd/KivyMD.git@master . It should work fine.
Read more >
kivymd - PyPI
Command above will install latest release version of KivyMD from PyPI. If you want to install development version from master branch, you should...
Read more >
Getting Started - KivyMD 1.1.1 documentation
pip install kivymd. Command above will install latest release version of KivyMD from PyPI. If you want to install development version from master...
Read more >
buildozer: Docs, Community, Tutorials, Reviews | Openbase
buildozer documentation and community, including tutorials, reviews, alternatives, and more.
Read more >
How to use Google Colab to package KivyMD applications ...
Imagine successfully installing the application and trying to run it only for it to crash. How do you know what the problem is?...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found