I have installed every necessary code in Python from Kivy, but the last one I need which one is python -m pip install kivy gets me an error like this:
ERROR: Dependency for context.pyx not resolved: config.pxi
ERROR: Dependency for compiler.pyx not resolved: config.pxi
ERROR: Dependency for context_instructions.pyx not resolved: config.pxi
ERROR: Dependency for fbo.pyx not resolved: config.pxi
ERROR: Dependency for gl_instructions.pyx not resolved: config.pxi
ERROR: Dependency for instructions.pyx not resolved: config.pxi
ERROR: Dependency for opengl.pyx not resolved: config.pxi
ERROR: Dependency for opengl_utils.pyx not resolved: config.pxi
ERROR: Dependency for shader.pyx not resolved: config.pxi
ERROR: Dependency for stencil_instructions.pyx not resolved: config.pxi
ERROR: Dependency for scissor_instructions.pyx not resolved: config.pxi
ERROR: Dependency for texture.pyx not resolved: config.pxi
ERROR: Dependency for vbo.pyx not resolved: config.pxi
ERROR: Dependency for vertex.pyx not resolved: config.pxi
ERROR: Dependency for vertex_instructions.pyx not resolved: config.pxi
ERROR: Dependency for cgl.pyx not resolved: config.pxi
ERROR: Dependency for cgl_mock.pyx not resolved: config.pxi
ERROR: Dependency for cgl_gl.pyx not resolved: config.pxi
ERROR: Dependency for cgl_glew.pyx not resolved: config.pxi
ERROR: Dependency for cgl_sdl2.pyx not resolved: config.pxi
ERROR: Dependency for svg.pyx not resolved: config.pxi
----------------------------------------
ERROR: Command errored out with exit status 1: python setup.py egg_info Check the logs for full command output.
I use windows 10, please help!
Oddthinking
23.8k19 gold badges83 silver badges121 bronze badges
asked Dec 1, 2019 at 11:51
19
This worked for me:
matham commented 15 days ago
We are not likely to release a 1.11.1 version for 3.8 to pypi. However, you can install kivy master using:
pip install kivy[base] kivy_examples --pre --extra-index-url https://kivy.org/downloads/simple/
eyllanesc
230k18 gold badges147 silver badges218 bronze badges
answered Dec 15, 2019 at 18:02
Try using pip install kivy==2.0.0rc2
or pip install kivy==2.0.0rc1
The command: pip install kivy==2.0.0rc2
Works with Windows 10 Pro
and Python 3.8.3
And I test it with this code:
from kivy.app import App
from kivy.uix.button import Button
class TestApp(App):
def build(self):
return Button(text= " Hello Kivy World ")
TestApp().run()
Ophir Carmi
2,5711 gold badge23 silver badges41 bronze badges
answered Sep 2, 2020 at 21:46
1
This works in macOS Catalina 10.15.6 with python 3.8.0+
pip install kivy==2.0.0rc2
answered Sep 10, 2020 at 5:28
FGrungeFGrunge
461 silver badge4 bronze badges
If you are using conda environment:
conda install -c conda-forge kivy
works in python 3.8
answered Nov 19, 2020 at 10:07
karenkaren
8221 gold badge6 silver badges22 bronze badges
I am windows 10, with 3.8.2
seems pip install kivy==2.0.0rc2 worked. At least it installed.
time to tell if I can develop with it using 3.8.2
answered Sep 11, 2020 at 21:15
I have installed every necessary code in Python from Kivy, but the last one I need which one is python -m pip install kivy gets me an error like this:
ERROR: Dependency for context.pyx not resolved: config.pxi
ERROR: Dependency for compiler.pyx not resolved: config.pxi
ERROR: Dependency for context_instructions.pyx not resolved: config.pxi
ERROR: Dependency for fbo.pyx not resolved: config.pxi
ERROR: Dependency for gl_instructions.pyx not resolved: config.pxi
ERROR: Dependency for instructions.pyx not resolved: config.pxi
ERROR: Dependency for opengl.pyx not resolved: config.pxi
ERROR: Dependency for opengl_utils.pyx not resolved: config.pxi
ERROR: Dependency for shader.pyx not resolved: config.pxi
ERROR: Dependency for stencil_instructions.pyx not resolved: config.pxi
ERROR: Dependency for scissor_instructions.pyx not resolved: config.pxi
ERROR: Dependency for texture.pyx not resolved: config.pxi
ERROR: Dependency for vbo.pyx not resolved: config.pxi
ERROR: Dependency for vertex.pyx not resolved: config.pxi
ERROR: Dependency for vertex_instructions.pyx not resolved: config.pxi
ERROR: Dependency for cgl.pyx not resolved: config.pxi
ERROR: Dependency for cgl_mock.pyx not resolved: config.pxi
ERROR: Dependency for cgl_gl.pyx not resolved: config.pxi
ERROR: Dependency for cgl_glew.pyx not resolved: config.pxi
ERROR: Dependency for cgl_sdl2.pyx not resolved: config.pxi
ERROR: Dependency for svg.pyx not resolved: config.pxi
----------------------------------------
ERROR: Command errored out with exit status 1: python setup.py egg_info Check the logs for full command output.
I use windows 10, please help!
Oddthinking
23.8k19 gold badges83 silver badges121 bronze badges
asked Dec 1, 2019 at 11:51
19
This worked for me:
matham commented 15 days ago
We are not likely to release a 1.11.1 version for 3.8 to pypi. However, you can install kivy master using:
pip install kivy[base] kivy_examples --pre --extra-index-url https://kivy.org/downloads/simple/
eyllanesc
230k18 gold badges147 silver badges218 bronze badges
answered Dec 15, 2019 at 18:02
Try using pip install kivy==2.0.0rc2
or pip install kivy==2.0.0rc1
The command: pip install kivy==2.0.0rc2
Works with Windows 10 Pro
and Python 3.8.3
And I test it with this code:
from kivy.app import App
from kivy.uix.button import Button
class TestApp(App):
def build(self):
return Button(text= " Hello Kivy World ")
TestApp().run()
Ophir Carmi
2,5711 gold badge23 silver badges41 bronze badges
answered Sep 2, 2020 at 21:46
1
This works in macOS Catalina 10.15.6 with python 3.8.0+
pip install kivy==2.0.0rc2
answered Sep 10, 2020 at 5:28
FGrungeFGrunge
461 silver badge4 bronze badges
If you are using conda environment:
conda install -c conda-forge kivy
works in python 3.8
answered Nov 19, 2020 at 10:07
karenkaren
8221 gold badge6 silver badges22 bronze badges
I am windows 10, with 3.8.2
seems pip install kivy==2.0.0rc2 worked. At least it installed.
time to tell if I can develop with it using 3.8.2
answered Sep 11, 2020 at 21:15
Hi i update my python version to 3.8.0 and when i try to install kivy i get the following error «also the error happened when i try to install it on pycharm» :
C:UsersHussam>pip install Kivy
Collecting Kivy
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: 'c:usershussamappdatalocalprogramspythonpython38python.exe' -c 'import sys, setuptools, tokenize; sys.argv[0] = '"'"'C:\Users\Hussam\AppData\Local\Temp\pip-install-wmjvsmt5\Kivy\setup.py'"'"'; __file__='"'"'C:\Users\Hussam\AppData\Local\Temp\pip-install-wmjvsmt5\Kivy\setup.py'"'"';f=getattr(tokenize, '"'"'open'"'"', open)(__file__);code=f.read().replace('"'"'rn'"'"', '"'"'n'"'"');f.close();exec(compile(code, __file__, '"'"'exec'"'"'))' egg_info --egg-base 'C:UsersHussamAppDataLocalTemppip-install-wmjvsmt5Kivypip-egg-info'
cwd: C:UsersHussamAppDataLocalTemppip-install-wmjvsmt5Kivy
Complete output (199 lines):
Using setuptools
User distribution detected, avoid portable command.
Using this graphics system: OpenGL
WARNING: A problem occurred while running pkg-config --libs --cflags gstreamer-1.0 (code 1)
b"'pkg-config' is not recognized as an internal or external command,rnoperable program or batch file.rn"
WARNING: A problem occurred while running pkg-config --libs --cflags gstreamer-1.0 (code 1)
b"'pkg-config' is not recognized as an internal or external command,rnoperable program or batch file.rn"
WARNING: A problem occurred while running pkg-config --libs --cflags sdl2 SDL2_ttf SDL2_image SDL2_mixer (code 1)
b"'pkg-config' is not recognized as an internal or external command,rnoperable program or batch file.rn"
ERROR: Dependency for context.pyx not resolved: config.pxi
ERROR: Dependency for compiler.pyx not resolved: config.pxi
ERROR: Dependency for context_instructions.pyx not resolved: config.pxi
ERROR: Dependency for fbo.pyx not resolved: config.pxi
ERROR: Dependency for gl_instructions.pyx not resolved: config.pxi
ERROR: Dependency for instructions.pyx not resolved: config.pxi
ERROR: Dependency for opengl.pyx not resolved: config.pxi
ERROR: Dependency for opengl_utils.pyx not resolved: config.pxi
ERROR: Dependency for shader.pyx not resolved: config.pxi
ERROR: Dependency for stencil_instructions.pyx not resolved: config.pxi
ERROR: Dependency for scissor_instructions.pyx not resolved: config.pxi
ERROR: Dependency for texture.pyx not resolved: config.pxi
ERROR: Dependency for vbo.pyx not resolved: config.pxi
ERROR: Dependency for vertex.pyx not resolved: config.pxi
ERROR: Dependency for vertex_instructions.pyx not resolved: config.pxi
ERROR: Dependency for cgl.pyx not resolved: config.pxi
ERROR: Dependency for cgl_mock.pyx not resolved: config.pxi
ERROR: Dependency for cgl_gl.pyx not resolved: config.pxi
ERROR: Dependency for cgl_glew.pyx not resolved: config.pxi
ERROR: Dependency for cgl_sdl2.pyx not resolved: config.pxi
ERROR: Dependency for svg.pyx not resolved: config.pxi
Compiling C:UsersHussamAppDataLocalTempeasy_install-ez_wj3mgCython-0.29.10CythonPlexScanners.py because it changed.
Compiling C:UsersHussamAppDataLocalTempeasy_install-ez_wj3mgCython-0.29.10CythonPlexActions.py because it changed.
Compiling C:UsersHussamAppDataLocalTempeasy_install-ez_wj3mgCython-0.29.10CythonCompilerScanning.py because it changed.
Compiling C:UsersHussamAppDataLocalTempeasy_install-ez_wj3mgCython-0.29.10CythonCompilerVisitor.py because it changed.
Compiling C:UsersHussamAppDataLocalTempeasy_install-ez_wj3mgCython-0.29.10CythonCompilerFlowControl.py because it changed.
Compiling C:UsersHussamAppDataLocalTempeasy_install-ez_wj3mgCython-0.29.10CythonRuntimerefnanny.pyx because it changed.
Compiling C:UsersHussamAppDataLocalTempeasy_install-ez_wj3mgCython-0.29.10CythonCompilerFusedNode.py because it changed.
Compiling C:UsersHussamAppDataLocalTempeasy_install-ez_wj3mgCython-0.29.10CythonTempita_tempita.py because it changed.
[1/8] Cythonizing C:UsersHussamAppDataLocalTempeasy_install-ez_wj3mgCython-0.29.10CythonCompilerFlowControl.py
[2/8] Cythonizing C:UsersHussamAppDataLocalTempeasy_install-ez_wj3mgCython-0.29.10CythonCompilerFusedNode.py
[3/8] Cythonizing C:UsersHussamAppDataLocalTempeasy_install-ez_wj3mgCython-0.29.10CythonCompilerScanning.py
[4/8] Cythonizing C:UsersHussamAppDataLocalTempeasy_install-ez_wj3mgCython-0.29.10CythonCompilerVisitor.py
[5/8] Cythonizing C:UsersHussamAppDataLocalTempeasy_install-ez_wj3mgCython-0.29.10CythonPlexActions.py
[6/8] Cythonizing C:UsersHussamAppDataLocalTempeasy_install-ez_wj3mgCython-0.29.10CythonPlexScanners.py
[7/8] Cythonizing C:UsersHussamAppDataLocalTempeasy_install-ez_wj3mgCython-0.29.10CythonRuntimerefnanny.pyx
[8/8] Cythonizing C:UsersHussamAppDataLocalTempeasy_install-ez_wj3mgCython-0.29.10CythonTempita_tempita.py
Unable to find pgen, not compiling formal grammar.
warning: no files found matching 'Doc*'
warning: no files found matching '*.pyx' under directory 'CythonDebuggerTests'
warning: no files found matching '*.pxd' under directory 'CythonDebuggerTests'
warning: no files found matching '*.pxd' under directory 'CythonUtility'
warning: no files found matching 'pyximportREADME'
Traceback (most recent call last):
File "c:usershussamappdatalocalprogramspythonpython38libsite-packagessetuptoolsmsvc.py", line 489, in _find_latest_available_vc_ver
return self.find_available_vc_vers()[-1]
IndexError: list index out of range
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File "c:usershussamappdatalocalprogramspythonpython38libdistutilscore.py", line 148, in setup
dist.run_commands()
File "c:usershussamappdatalocalprogramspythonpython38libdistutilsdist.py", line 966, in run_commands
self.run_command(cmd)
File "c:usershussamappdatalocalprogramspythonpython38libdistutilsdist.py", line 985, in run_command
cmd_obj.run()
File "c:usershussamappdatalocalprogramspythonpython38libsite-packagessetuptoolscommandbdist_egg.py", line 172, in run
cmd = self.call_command('install_lib', warn_dir=0)
File "c:usershussamappdatalocalprogramspythonpython38libsite-packagessetuptoolscommandbdist_egg.py", line 158, in call_command
self.run_command(cmdname)
File "c:usershussamappdatalocalprogramspythonpython38libdistutilscmd.py", line 313, in run_command
self.distribution.run_command(command)
File "c:usershussamappdatalocalprogramspythonpython38libdistutilsdist.py", line 985, in run_command
cmd_obj.run()
File "c:usershussamappdatalocalprogramspythonpython38libsite-packagessetuptoolscommandinstall_lib.py", line 11, in run
self.build()
File "c:usershussamappdatalocalprogramspythonpython38libdistutilscommandinstall_lib.py", line 107, in build
self.run_command('build_ext')
File "c:usershussamappdatalocalprogramspythonpython38libdistutilscmd.py", line 313, in run_command
self.distribution.run_command(command)
File "c:usershussamappdatalocalprogramspythonpython38libdistutilsdist.py", line 985, in run_command
cmd_obj.run()
File "c:usershussamappdatalocalprogramspythonpython38libsite-packagessetuptoolscommandbuild_ext.py", line 84, in run
_build_ext.run(self)
File "c:usershussamappdatalocalprogramspythonpython38libdistutilscommandbuild_ext.py", line 340, in run
self.build_extensions()
File "c:usershussamappdatalocalprogramspythonpython38libdistutilscommandbuild_ext.py", line 449, in build_extensions
self._build_extensions_serial()
File "c:usershussamappdatalocalprogramspythonpython38libdistutilscommandbuild_ext.py", line 474, in _build_extensions_serial
self.build_extension(ext)
File "c:usershussamappdatalocalprogramspythonpython38libsite-packagessetuptoolscommandbuild_ext.py", line 205, in build_extension
_build_ext.build_extension(self, ext)
File "c:usershussamappdatalocalprogramspythonpython38libdistutilscommandbuild_ext.py", line 528, in build_extension
objects = self.compiler.compile(sources,
File "c:usershussamappdatalocalprogramspythonpython38libdistutils_msvccompiler.py", line 360, in compile
self.initialize()
File "c:usershussamappdatalocalprogramspythonpython38libdistutils_msvccompiler.py", line 253, in initialize
vc_env = _get_vc_env(plat_spec)
File "c:usershussamappdatalocalprogramspythonpython38libsite-packagessetuptoolsmsvc.py", line 185, in msvc14_get_vc_env
return EnvironmentInfo(plat_spec, vc_min_ver=14.0).return_env()
File "c:usershussamappdatalocalprogramspythonpython38libsite-packagessetuptoolsmsvc.py", line 843, in __init__
self.si = SystemInfo(self.ri, vc_ver)
File "c:usershussamappdatalocalprogramspythonpython38libsite-packagessetuptoolsmsvc.py", line 485, in __init__
self.vc_ver = vc_ver or self._find_latest_available_vc_ver()
File "c:usershussamappdatalocalprogramspythonpython38libsite-packagessetuptoolsmsvc.py", line 492, in _find_latest_available_vc_ver
raise distutils.errors.DistutilsPlatformError(err)
distutils.errors.DistutilsPlatformError: Microsoft Visual C++ 14.0 is required. Get it with "Microsoft Visual C++ Build Tools": https://visualstudio.microsoft.com/downloads/
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File "c:usershussamappdatalocalprogramspythonpython38libsite-packagessetuptoolssandbox.py", line 154, in save_modules
yield saved
File "c:usershussamappdatalocalprogramspythonpython38libsite-packagessetuptoolssandbox.py", line 195, in setup_context
yield
File "c:usershussamappdatalocalprogramspythonpython38libsite-packagessetuptoolssandbox.py", line 250, in run_setup
_execfile(setup_script, ns)
File "c:usershussamappdatalocalprogramspythonpython38libsite-packagessetuptoolssandbox.py", line 45, in _execfile
exec(code, globals, locals)
File "C:UsersHussamAppDataLocalTempeasy_install-ez_wj3mgCython-0.29.10setup.py", line 228, in <module>
This version of Cython is untested with Kivy. While this version may
File "c:usershussamappdatalocalprogramspythonpython38libsite-packagessetuptools__init__.py", line 145, in setup
return distutils.core.setup(**attrs)
File "c:usershussamappdatalocalprogramspythonpython38libdistutilscore.py", line 163, in setup
raise SystemExit("error: " + str(msg))
SystemExit: error: Microsoft Visual C++ 14.0 is required. Get it with "Microsoft Visual C++ Build Tools": https://visualstudio.microsoft.com/downloads/
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File "c:usershussamappdatalocalprogramspythonpython38libsite-packagessetuptoolscommandeasy_install.py", line 1144, in run_setup
run_setup(setup_script, args)
File "c:usershussamappdatalocalprogramspythonpython38libsite-packagessetuptoolssandbox.py", line 253, in run_setup
raise
File "c:usershussamappdatalocalprogramspythonpython38libcontextlib.py", line 131, in __exit__
self.gen.throw(type, value, traceback)
File "c:usershussamappdatalocalprogramspythonpython38libsite-packagessetuptoolssandbox.py", line 195, in setup_context
yield
File "c:usershussamappdatalocalprogramspythonpython38libcontextlib.py", line 131, in __exit__
self.gen.throw(type, value, traceback)
File "c:usershussamappdatalocalprogramspythonpython38libsite-packagessetuptoolssandbox.py", line 166, in save_modules
saved_exc.resume()
File "c:usershussamappdatalocalprogramspythonpython38libsite-packagessetuptoolssandbox.py", line 141, in resume
six.reraise(type, exc, self._tb)
File "c:usershussamappdatalocalprogramspythonpython38libsite-packagessetuptools_vendorsix.py", line 685, in reraise
raise value.with_traceback(tb)
File "c:usershussamappdatalocalprogramspythonpython38libsite-packagessetuptoolssandbox.py", line 154, in save_modules
yield saved
File "c:usershussamappdatalocalprogramspythonpython38libsite-packagessetuptoolssandbox.py", line 195, in setup_context
yield
File "c:usershussamappdatalocalprogramspythonpython38libsite-packagessetuptoolssandbox.py", line 250, in run_setup
_execfile(setup_script, ns)
File "c:usershussamappdatalocalprogramspythonpython38libsite-packagessetuptoolssandbox.py", line 45, in _execfile
exec(code, globals, locals)
File "C:UsersHussamAppDataLocalTempeasy_install-ez_wj3mgCython-0.29.10setup.py", line 228, in <module>
This version of Cython is untested with Kivy. While this version may
File "c:usershussamappdatalocalprogramspythonpython38libsite-packagessetuptools__init__.py", line 145, in setup
return distutils.core.setup(**attrs)
File "c:usershussamappdatalocalprogramspythonpython38libdistutilscore.py", line 163, in setup
raise SystemExit("error: " + str(msg))
SystemExit: error: Microsoft Visual C++ 14.0 is required. Get it with "Microsoft Visual C++ Build Tools": https://visualstudio.microsoft.com/downloads/
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File "<string>", line 1, in <module>
File "C:UsersHussamAppDataLocalTemppip-install-wmjvsmt5Kivysetup.py", line 1073, in <module>
setup(
File "c:usershussamappdatalocalprogramspythonpython38libsite-packagessetuptools__init__.py", line 144, in setup
_install_setup_requires(attrs)
File "c:usershussamappdatalocalprogramspythonpython38libsite-packagessetuptools__init__.py", line 139, in _install_setup_requires
dist.fetch_build_eggs(dist.setup_requires)
File "c:usershussamappdatalocalprogramspythonpython38libsite-packagessetuptoolsdist.py", line 716, in fetch_build_eggs
resolved_dists = pkg_resources.working_set.resolve(
File "c:usershussamappdatalocalprogramspythonpython38libsite-packagespkg_resources__init__.py", line 780, in resolve
dist = best[req.key] = env.best_match(
File "c:usershussamappdatalocalprogramspythonpython38libsite-packagespkg_resources__init__.py", line 1065, in best_match
return self.obtain(req, installer)
File "c:usershussamappdatalocalprogramspythonpython38libsite-packagespkg_resources__init__.py", line 1077, in obtain
return installer(requirement)
File "c:usershussamappdatalocalprogramspythonpython38libsite-packagessetuptoolsdist.py", line 786, in fetch_build_egg
return cmd.easy_install(req)
File "c:usershussamappdatalocalprogramspythonpython38libsite-packagessetuptoolscommandeasy_install.py", line 679, in easy_install
return self.install_item(spec, dist.location, tmpdir, deps)
File "c:usershussamappdatalocalprogramspythonpython38libsite-packagessetuptoolscommandeasy_install.py", line 705, in install_item
dists = self.install_eggs(spec, download, tmpdir)
File "c:usershussamappdatalocalprogramspythonpython38libsite-packagessetuptoolscommandeasy_install.py", line 890, in install_eggs
return self.build_and_install(setup_script, setup_base)
File "c:usershussamappdatalocalprogramspythonpython38libsite-packagessetuptoolscommandeasy_install.py", line 1158, in build_and_install
self.run_setup(setup_script, setup_base, args)
File "c:usershussamappdatalocalprogramspythonpython38libsite-packagessetuptoolscommandeasy_install.py", line 1146, in run_setup
raise DistutilsError("Setup script exited with %s" % (v.args[0],))
distutils.errors.DistutilsError: Setup script exited with error: Microsoft Visual C++ 14.0 is required. Get it with "Microsoft Visual C++ Build Tools": https://visualstudio.microsoft.com/downloads/
----------------------------------------
ERROR: Command errored out with exit status 1: python setup.py egg_info Check the logs for full command output.
when i was use python 3.7.5 kivy works fine but new is not
Is the problem about the version of python ?
any solution
thanks
Пытался поставить модуль kivy но выходит ошибка:
Ошибка при запуске приложения (0xc000007b)
Скажите что можно сделать,вот текст ошибки:
ERROR: Command errored out with exit status 1:
command: ‘c:usersигорьappdatalocalprogramspythonpython38-32python.exe’ -c ‘import sys, setuptools, tokenize; sys.argv[0] = ‘»‘»‘C:\Users\Игорь\AppData\Local\Temp\pip-install-gzzgj38m\kivy\setup.py'»‘»‘; __file__='»‘»‘C:\Users\Игорь\AppData\Local\Temp\pip-install-gzzgj38m\kivy\setup.py'»‘»‘;f=getattr(tokenize, ‘»‘»‘open'»‘»‘, open)(__file__);code=f.read().replace(‘»‘»‘rn'»‘»‘, ‘»‘»‘n'»‘»‘);f.close();exec(compile(code, __file__, ‘»‘»‘exec'»‘»‘))’ egg_info —egg-base ‘C:UsersИгорьAppDataLocalTemppip-pip-egg-info-vdphohzk’
cwd: C:UsersИгорьAppDataLocalTemppip-install-gzzgj38mkivy
Complete output (193 lines):
Using setuptools
User distribution detected, avoid portable command.
Using this graphics system: OpenGL
WARNING: A problem occurred while running pkg-config —libs —cflags gstreamer-1.0 (code 3221225595)
WARNING: A problem occurred while running pkg-config —libs —cflags gstreamer-1.0 (code 3221225595)
WARNING: A problem occurred while running pkg-config —libs —cflags sdl2 SDL2_ttf SDL2_image SDL2_mixer (code 3221225595)
ERROR: Dependency for context.pyx not resolved: config.pxi
ERROR: Dependency for compiler.pyx not resolved: config.pxi
ERROR: Dependency for context_instructions.pyx not resolved: config.pxi
ERROR: Dependency for fbo.pyx not resolved: config.pxi
ERROR: Dependency for gl_instructions.pyx not resolved: config.pxi
ERROR: Dependency for instructions.pyx not resolved: config.pxi
ERROR: Dependency for opengl.pyx not resolved: config.pxi
ERROR: Dependency for opengl_utils.pyx not resolved: config.pxi
ERROR: Dependency for shader.pyx not resolved: config.pxi
ERROR: Dependency for stencil_instructions.pyx not resolved: config.pxi
ERROR: Dependency for scissor_instructions.pyx not resolved: config.pxi
ERROR: Dependency for texture.pyx not resolved: config.pxi
ERROR: Dependency for vbo.pyx not resolved: config.pxi
ERROR: Dependency for vertex.pyx not resolved: config.pxi
ERROR: Dependency for vertex_instructions.pyx not resolved: config.pxi
ERROR: Dependency for cgl.pyx not resolved: config.pxi
ERROR: Dependency for cgl_mock.pyx not resolved: config.pxi
ERROR: Dependency for cgl_gl.pyx not resolved: config.pxi
ERROR: Dependency for cgl_glew.pyx not resolved: config.pxi
ERROR: Dependency for cgl_sdl2.pyx not resolved: config.pxi
ERROR: Dependency for svg.pyx not resolved: config.pxi
Compiling C:UsersD395~1AppDataLocalTempeasy_install-xat51_z7Cython-0.29.10CythonPlexScanners.py because it changed.
Compiling C:UsersD395~1AppDataLocalTempeasy_install-xat51_z7Cython-0.29.10CythonPlexActions.py because it changed.
Compiling C:UsersD395~1AppDataLocalTempeasy_install-xat51_z7Cython-0.29.10CythonCompilerScanning.py because it changed.
Compiling C:UsersD395~1AppDataLocalTempeasy_install-xat51_z7Cython-0.29.10CythonCompilerVisitor.py because it changed.
Compiling C:UsersD395~1AppDataLocalTempeasy_install-xat51_z7Cython-0.29.10CythonCompilerFlowControl.py because it changed.
Compiling C:UsersD395~1AppDataLocalTempeasy_install-xat51_z7Cython-0.29.10CythonRuntimerefnanny.pyx because it changed.
Compiling C:UsersD395~1AppDataLocalTempeasy_install-xat51_z7Cython-0.29.10CythonCompilerFusedNode.py because it changed.
Compiling C:UsersD395~1AppDataLocalTempeasy_install-xat51_z7Cython-0.29.10CythonTempita_tempita.py because it changed.
[1/8] Cythonizing C:UsersD395~1AppDataLocalTempeasy_install-xat51_z7Cython-0.29.10CythonCompilerFlowControl.py
[2/8] Cythonizing C:UsersD395~1AppDataLocalTempeasy_install-xat51_z7Cython-0.29.10CythonCompilerFusedNode.py
[3/8] Cythonizing C:UsersD395~1AppDataLocalTempeasy_install-xat51_z7Cython-0.29.10CythonCompilerScanning.py
[4/8] Cythonizing C:UsersD395~1AppDataLocalTempeasy_install-xat51_z7Cython-0.29.10CythonCompilerVisitor.py
[5/8] Cythonizing C:UsersD395~1AppDataLocalTempeasy_install-xat51_z7Cython-0.29.10CythonPlexActions.py
[6/8] Cythonizing C:UsersD395~1AppDataLocalTempeasy_install-xat51_z7Cython-0.29.10CythonPlexScanners.py
[7/8] Cythonizing C:UsersD395~1AppDataLocalTempeasy_install-xat51_z7Cython-0.29.10CythonRuntimerefnanny.pyx
[8/8] Cythonizing C:UsersD395~1AppDataLocalTempeasy_install-xat51_z7Cython-0.29.10CythonTempita_tempita.py
Unable to find pgen, not compiling formal grammar.
warning: no files found matching ‘Doc*’
warning: no files found matching ‘*.pyx’ under directory ‘CythonDebuggerTests’
warning: no files found matching ‘*.pxd’ under directory ‘CythonDebuggerTests’
warning: no files found matching ‘*.pxd’ under directory ‘CythonUtility’
warning: no files found matching ‘pyximportREADME’
Traceback (most recent call last):
File «c:usersигорьappdatalocalprogramspythonpython38-32libsite-packagessetuptoolsmsvc.py», line 489, in _find_latest_available_vc_ver
return self.find_available_vc_vers()[-1]
IndexError: list index out of range
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File «c:usersигорьappdatalocalprogramspythonpython38-32libdistutilscore.py», line 148, in setup
dist.run_commands()
File «c:usersигорьappdatalocalprogramspythonpython38-32libdistutilsdist.py», line 966, in run_commands
self.run_command(cmd)
File «c:usersигорьappdatalocalprogramspythonpython38-32libdistutilsdist.py», line 985, in run_command
cmd_obj.run()
File «c:usersигорьappdatalocalprogramspythonpython38-32libsite-packagessetuptoolscommandbdist_egg.py», line 172, in run
cmd = self.call_command(‘install_lib’, warn_dir=0)
File «c:usersигорьappdatalocalprogramspythonpython38-32libsite-packagessetuptoolscommandbdist_egg.py», line 158, in call_command
self.run_command(cmdname)
File «c:usersигорьappdatalocalprogramspythonpython38-32libdistutilscmd.py», line 313, in run_command
self.distribution.run_command(command)
File «c:usersигорьappdatalocalprogramspythonpython38-32libdistutilsdist.py», line 985, in run_command
cmd_obj.run()
File «c:usersигорьappdatalocalprogramspythonpython38-32libsite-packagessetuptoolscommandinstall_lib.py», line 11, in run
self.build()
File «c:usersигорьappdatalocalprogramspythonpython38-32libdistutilscommandinstall_lib.py», line 107, in build
self.run_command(‘build_ext’)
File «c:usersигорьappdatalocalprogramspythonpython38-32libdistutilscmd.py», line 313, in run_command
self.distribution.run_command(command)
File «c:usersигорьappdatalocalprogramspythonpython38-32libdistutilsdist.py», line 985, in run_command
cmd_obj.run()
File «c:usersигорьappdatalocalprogramspythonpython38-32libsite-packagessetuptoolscommandbuild_ext.py», line 84, in run
_build_ext.run(self)
File «c:usersигорьappdatalocalprogramspythonpython38-32libdistutilscommandbuild_ext.py», line 340, in run
self.build_extensions()
File «c:usersигорьappdatalocalprogramspythonpython38-32libdistutilscommandbuild_ext.py», line 449, in build_extensions
self._build_extensions_serial()
File «c:usersигорьappdatalocalprogramspythonpython38-32libdistutilscommandbuild_ext.py», line 474, in _build_extensions_serial
self.build_extension(ext)
File «c:usersигорьappdatalocalprogramspythonpython38-32libsite-packagessetuptoolscommandbuild_ext.py», line 205, in build_extension
_build_ext.build_extension(self, ext)
File «c:usersигорьappdatalocalprogramspythonpython38-32libdistutilscommandbuild_ext.py», line 528, in build_extension
objects = self.compiler.compile(sources,
File «c:usersигорьappdatalocalprogramspythonpython38-32libdistutils_msvccompiler.py», line 360, in compile
self.initialize()
File «c:usersигорьappdatalocalprogramspythonpython38-32libdistutils_msvccompiler.py», line 253, in initialize
vc_env = _get_vc_env(plat_spec)
File «c:usersигорьappdatalocalprogramspythonpython38-32libsite-packagessetuptoolsmsvc.py», line 185, in msvc14_get_vc_env
return EnvironmentInfo(plat_spec, vc_min_ver=14.0).return_env()
File «c:usersигорьappdatalocalprogramspythonpython38-32libsite-packagessetuptoolsmsvc.py», line 843, in __init__
self.si = SystemInfo(self.ri, vc_ver)
File «c:usersигорьappdatalocalprogramspythonpython38-32libsite-packagessetuptoolsmsvc.py», line 485, in __init__
self.vc_ver = vc_ver or self._find_latest_available_vc_ver()
File «c:usersигорьappdatalocalprogramspythonpython38-32libsite-packagessetuptoolsmsvc.py», line 492, in _find_latest_available_vc_ver
raise distutils.errors.DistutilsPlatformError(err)
distutils.errors.DistutilsPlatformError: Microsoft Visual C++ 14.0 is required. Get it with «Microsoft Visual C++ Build Tools»: https://visualstudio.microsoft.com/downloads/
ERROR: Command errored out with exit status 1: python setup.py egg_info Check the logs for full command output.
Содержание
- Не ставится модули kivy для питона,что делать?
- Can’t Install Latest Version of Kivy using Python 3.10.0 #7654
- Comments
- Ошибка подпроцесса при установке Kivy на Windows. Что делать?
- Installation on Windows¶
- Using Conda¶
- Prerequisites¶
- Updating Kivy from a previous release¶
- Installing the kivy stable release¶
- What are wheels, pip and wheel¶
- Nightly wheel installation¶
- Kivy’s dependencies¶
- Command line¶
- Use development Kivy¶
- Compile Kivy¶
- Installing Kivy and editing it in place¶
- Making Python available anywhere¶
- Double-click method¶
- Send-to method¶
Не ставится модули kivy для питона,что делать?
Пытался поставить модуль kivy но выходит ошибка:
Ошибка при запуске приложения (0xc000007b)
Скажите что можно сделать,вот текст ошибки:
ERROR: Command errored out with exit status 1:
command: ‘c:usersигорьappdatalocalprogramspythonpython38-32python.exe’ -c ‘import sys, setuptools, tokenize; sys.argv[0] = ‘»‘»‘C:\Users\Игорь\AppData\Local\Temp\pip-install-gzzgj38m\kivy\setup.py’»‘»‘; __file__=’»‘»‘C:\Users\Игорь\AppData\Local\Temp\pip-install-gzzgj38m\kivy\setup.py’»‘»‘;f=getattr(tokenize, ‘»‘»‘open’»‘»‘, open)(__file__);code=f.read().replace(‘»‘»‘rn’»‘»‘, ‘»‘»‘n’»‘»‘);f.close();exec(compile(code, __file__, ‘»‘»‘exec’»‘»‘))’ egg_info —egg-base ‘C:UsersИгорьAppDataLocalTemppip-pip-egg-info-vdphohzk’
cwd: C:UsersИгорьAppDataLocalTemppip-install-gzzgj38mkivy
Complete output (193 lines):
Using setuptools
User distribution detected, avoid portable command.
Using this graphics system: OpenGL
WARNING: A problem occurred while running pkg-config —libs —cflags gstreamer-1.0 (code 3221225595)
WARNING: A problem occurred while running pkg-config —libs —cflags gstreamer-1.0 (code 3221225595)
WARNING: A problem occurred while running pkg-config —libs —cflags sdl2 SDL2_ttf SDL2_image SDL2_mixer (code 3221225595)
ERROR: Dependency for context.pyx not resolved: config.pxi
ERROR: Dependency for compiler.pyx not resolved: config.pxi
ERROR: Dependency for context_instructions.pyx not resolved: config.pxi
ERROR: Dependency for fbo.pyx not resolved: config.pxi
ERROR: Dependency for gl_instructions.pyx not resolved: config.pxi
ERROR: Dependency for instructions.pyx not resolved: config.pxi
ERROR: Dependency for opengl.pyx not resolved: config.pxi
ERROR: Dependency for opengl_utils.pyx not resolved: config.pxi
ERROR: Dependency for shader.pyx not resolved: config.pxi
ERROR: Dependency for stencil_instructions.pyx not resolved: config.pxi
ERROR: Dependency for scissor_instructions.pyx not resolved: config.pxi
ERROR: Dependency for texture.pyx not resolved: config.pxi
ERROR: Dependency for vbo.pyx not resolved: config.pxi
ERROR: Dependency for vertex.pyx not resolved: config.pxi
ERROR: Dependency for vertex_instructions.pyx not resolved: config.pxi
ERROR: Dependency for cgl.pyx not resolved: config.pxi
ERROR: Dependency for cgl_mock.pyx not resolved: config.pxi
ERROR: Dependency for cgl_gl.pyx not resolved: config.pxi
ERROR: Dependency for cgl_glew.pyx not resolved: config.pxi
ERROR: Dependency for cgl_sdl2.pyx not resolved: config.pxi
ERROR: Dependency for svg.pyx not resolved: config.pxi
Compiling C:UsersD395
1AppDataLocalTempeasy_install-xat51_z7Cython-0.29.10CythonPlexScanners.py because it changed.
Compiling C:UsersD395
1AppDataLocalTempeasy_install-xat51_z7Cython-0.29.10CythonPlexActions.py because it changed.
Compiling C:UsersD395
1AppDataLocalTempeasy_install-xat51_z7Cython-0.29.10CythonCompilerScanning.py because it changed.
Compiling C:UsersD395
1AppDataLocalTempeasy_install-xat51_z7Cython-0.29.10CythonCompilerVisitor.py because it changed.
Compiling C:UsersD395
1AppDataLocalTempeasy_install-xat51_z7Cython-0.29.10CythonCompilerFlowControl.py because it changed.
Compiling C:UsersD395
1AppDataLocalTempeasy_install-xat51_z7Cython-0.29.10CythonRuntimerefnanny.pyx because it changed.
Compiling C:UsersD395
1AppDataLocalTempeasy_install-xat51_z7Cython-0.29.10CythonCompilerFusedNode.py because it changed.
Compiling C:UsersD395
1AppDataLocalTempeasy_install-xat51_z7Cython-0.29.10CythonTempita_tempita.py because it changed.
[1/8] Cythonizing C:UsersD395
1AppDataLocalTempeasy_install-xat51_z7Cython-0.29.10CythonCompilerFlowControl.py
[2/8] Cythonizing C:UsersD395
1AppDataLocalTempeasy_install-xat51_z7Cython-0.29.10CythonCompilerFusedNode.py
[3/8] Cythonizing C:UsersD395
1AppDataLocalTempeasy_install-xat51_z7Cython-0.29.10CythonCompilerScanning.py
[4/8] Cythonizing C:UsersD395
1AppDataLocalTempeasy_install-xat51_z7Cython-0.29.10CythonCompilerVisitor.py
[5/8] Cythonizing C:UsersD395
1AppDataLocalTempeasy_install-xat51_z7Cython-0.29.10CythonPlexActions.py
[6/8] Cythonizing C:UsersD395
1AppDataLocalTempeasy_install-xat51_z7Cython-0.29.10CythonPlexScanners.py
[7/8] Cythonizing C:UsersD395
1AppDataLocalTempeasy_install-xat51_z7Cython-0.29.10CythonRuntimerefnanny.pyx
[8/8] Cythonizing C:UsersD395
1AppDataLocalTempeasy_install-xat51_z7Cython-0.29.10CythonTempita_tempita.py
Unable to find pgen, not compiling formal grammar.
warning: no files found matching ‘Doc*’
warning: no files found matching ‘*.pyx’ under directory ‘CythonDebuggerTests’
warning: no files found matching ‘*.pxd’ under directory ‘CythonDebuggerTests’
warning: no files found matching ‘*.pxd’ under directory ‘CythonUtility’
warning: no files found matching ‘pyximportREADME’
Traceback (most recent call last):
File «c:usersигорьappdatalocalprogramspythonpython38-32libsite-packagessetuptoolsmsvc.py», line 489, in _find_latest_available_vc_ver
return self.find_available_vc_vers()[-1]
IndexError: list index out of range
During handling of the above exception, another exception occurred:
Источник
Can’t Install Latest Version of Kivy using Python 3.10.0 #7654
Software Versions
- Python: 3.10.0
- OS: Windows 10
- Kivy: 2.0.0
- Kivy installation method: Git Bash, PYCHARM
Describe the bug
A clear and concise description of what the bug is.
Sure, it won;t install most of the modules
The issue tracker is a tool to address bugs only (search known bugs: https://git.io/vM1iE).
Please use the #support Discord channel at https://chat.kivy.org/ or Stack Overflow for
support questions, more information at https://git.io/vM1yQ.
Expected behavior
Expected to download and install Kivy
To Reproduce
Far too long to reproduce here as the errors run for pages,
Code and Logs and screenshots
Examples of errors:
ERROR: Could not find a version that satisfies the requirement kivy_deps.gstreamer_dev
=0.3.1 (from versions: none)
ERROR: No matching distribution found for kivy_deps.gstreamer_dev
SyntaxError: Missing parentheses in call to ‘print’. Did you mean print(. )?
ERROR: No matching distribution found for kivy[base]
Additional context
Add any other context about the problem here.
The text was updated successfully, but these errors were encountered:
Источник
Ошибка подпроцесса при установке Kivy на Windows. Что делать?
Я пытался установить Kivy через pip по инструкции с официального сайта, однако, при попытке установки консоль выдаёт следующую ошибку:
Если это важно, у меня стоит python 3.10.
Как решить данную проблему?
- Вопрос задан 06 февр. 2022
- 3485 просмотров
Потихонечку откатываемся на python 3.8
Также, если есть желание, перед установкой любой библиотеки, желательно почитать офф. инструкцию по установке:
Kivy 2.0.0 officially supports Python versions 3.6 — 3.9. — второе предложение в инструкции!
Потихонечку откатываемся на python 3.8
А если серьёзно, у вас он работает с 3.9?
3.7, 3.8, 3.9 — тут вообще без разницы, абсолютно.
Тем более, последние версии не опытным пользователям привозят только вагон и маленькую тележку проблем.
Если без разницы, тогда почему 3.8?
Какие проблемы привозит 3.9 в отличие от 3.8?
Как вариант, меньшее количество пакетов, доступных через pip install. Конечно, можно большинство пакетов в Python 3.9, 3.10. установить из исходников, но новички этим заниматься не будут!
Источник
Installation on Windows¶
Using Conda¶
If you use Anaconda, you can simply install kivy using:
Otherwise, continue below to install Kivy in a native Python installation.
Prerequisites¶
Kivy is written in Python and as such, to use Kivy, you need an existing installation of Python. Multiple versions of Python can be installed side by side, but Kivy needs to be installed in each Python version that you want to use Kivy in.
Beginning with 1.9.1 we provide binary wheels for Kivy and all its dependencies to be used with an existing Python installation. See Installing the kivy stable release .
We also provide nightly wheels generated using Kivy master. See Nightly wheel installation . If installing kivy to an alternate location and not to site-packages, please see Installing Kivy and editing it in place .
Updating Kivy from a previous release¶
When updating from a previous Kivy release, all the Kivy dependencies must be updated first. Typically, just adding –upgrade to the pip install … commands below is sufficient for pip to update them.
When updating from Kivy 1.10.1 or lower to 1.11.0 or higher, one must manually uninstall all kivy dependencies before upgrading because won’t update them properly. This is done with:
assuming all the dependencies were previously installed. See Kivy’s dependencies for more details.
After uninstalling, continue with the installation below.
Installing the kivy stable release¶
Kivy 1.11.1 is the last release that supports Python 2.
Now that python is installed, open the Command line and make sure python is available by typing python —version . Then, do the following to create a new virtual environment (optionally) and install the most recent stable kivy release ( 1.11.1 ) and its dependencies.
Ensure you have the latest pip, wheel, and virtualenv:
Optionally create a new virtual environment for your Kivy project. Highly recommended:
First create the environment named kivy_venv in your current directory:
Activate the virtual environment. You’ll have to do this step from the current directory every time you start a new terminal. On windows CMD do:
If you’re in a bash terminal, instead do:
Your terminal should now preface the path with something like (kivy_venv) , indicating that the kivy_venv environment is active. If it doesn’t say that, the virtual environment is not active.
Install the dependencies (skip gstreamer (
120MB) if not needed, see Kivy’s dependencies ). If you are upgrading Kivy, see Updating Kivy from a previous release :
If you encounter a MemoryError while installing, add after pip install the –no-cache-dir option.
For Python 3.5+, you can also use the angle backend instead of glew. This can be installed with:
When installing, pin kivy’s dependencies to the specific version that was released on pypi when your kivy version was released, like above. Otherwise you may get an incompatible dependency when it is updated in the future.
(Optionally) Install the kivy examples:
The examples are installed in the share directory under the root directory where python is installed.
That’s it. You should now be able to import kivy in python or run a basic example if you installed the kivy examples:
Replace kivy_venv with the path where python is installed if you didn’t use a virtualenv.
If you encounter any permission denied errors, try opening the Command prompt as administrator and trying again. The best solution for this is to use a virtual environment instead.
What are wheels, pip and wheel¶
In Python, packages such as Kivy can be installed with the python package manager, pip. Some packages such as Kivy require additional steps, such as compilation, when installing using the Kivy source code with pip. Wheels (with a .whl extension) are pre-built distributions of a package that has already been compiled and do not require additional steps to install.
When hosted on pypi one installs a wheel using pip , e.g. python -m pip install kivy . When downloading and installing a wheel directly, python -m pip install wheel_file_name is used, such as:
Nightly wheel installation¶
Using the latest development version can be risky and you might encounter issues during development. If you encounter any bugs, please report them.
Snapshot wheels of current Kivy master are created daily on the master branch of kivy repository. They can be found here. To use them, instead of doing python -m pip install kivy we’ll install one of these wheels as follows.
- Python 3.5, 32bit
- Python 3.6, 32bit
- Python 3.7, 32bit
- Python 3.5, 64bit
- Python 3.6, 64bit
- Python 3.7, 64bit
- Perform steps 1 and 2 of the above Installation section.
- Download the appropriate wheel for your system.
- Install it with python -m pip install wheel-name where wheel-name is the name of the file.
Kivy examples are separated from the core because of their size. The examples can be installed separately on both Python 2 and 3 with this single wheel:
Kivy’s dependencies¶
We offer wheels for Kivy and its dependencies separately so only desired dependencies need be installed. The dependencies are offered as optional sub-packages of kivy_deps, e.g. kivy_deps.sdl2 .
In Kivy 1.11.0 we transitioned the kivy Windows dependencies from the kivy.deps.xxx namespace stored under kivy/deps/xxx to the kivy_deps.xxx namespace stored under kivy_deps/xxx . Pip is sometimes not able to distinguish between these two formats, so follow the instructions at Updating Kivy from a previous release when upgrading from a older Kivy. See here for more details.
Currently on Windows, we provide the following dependency wheels:
- gstreamer for audio and video
- glew and/or angle (3.5 only) for OpenGL
- sdl2 for control and/or OpenGL.
One can select which of these to use for OpenGL using the KIVY_GL_BACKEND envrionment variable by setting it to glew (the default), angle , or sdl2 . angle is currently in an experimental phase as a substitute for glew on Python 3.5+ only.
gstreamer is an optional dependency which only needs to be installed if video display or audio is desired. ffpyplayer is an alternate dependency for audio or video.
Command line¶
Know your command line. To execute any of the pip or wheel commands, one needs a command line tool with python on the path. The default command line on Windows is Command Prompt, and the quickest way to open it is to press Win+R on your keyboard, type cmd in the window that opens, and then press enter.
Alternate linux style command shells that we recommend is Git for Windows which offers a bash command line as well as git. Note, CMD can still be used even if bash is installed.
Walking the path! To add your python to the path, simply open your command line and then use the cd command to change the current directory to where python is installed, e.g. cd C:Python37 . Alternatively if you only have one python version installed, permanently add the python directory to the path for cmd or bash.
Use development Kivy¶
Using the latest development version can be risky and you might encounter issues during development. If you encounter any bugs, please report them.
To compile and install kivy using the kivy source code or to use kivy with git rather than a wheel there are some additional steps:
Both the python and the PythonScripts directories must be on the path. They must be on the path every time you recompile kivy.
Ensure you have the latest pip and wheel with:
Get the compiler. For Python pythonLibdistutilsdistutils.cfg file and add the two lines:
Install MinGW with:
For Python 3.5 we use the MSVC compiler. For 3.5, Visual Studio 2015 is required, which is availible for free. Just download and install it and you’ll be good to go.
Visual Studio is very big so you can also use the smaller, Visual C Build Tools instead.
Set the environment variables. On windows do:
These variables must be set everytime you recompile kivy.
Install the other dependencies as well as their dev versions (you can skip gstreamer and gstreamer_dev if you aren’t going to use video/audio). we don’t pin the versions of the dependencies like for the stable kivy because we want the latest:
If you downloaded or cloned kivy to an alternate location and don’t want to install it to site-packages read the next section.
Finally compile and install kivy with pip install filename , where filename can be a url such as https://github.com/kivy/kivy/archive/master.zip for kivy master, or the full path to a local copy of a kivy.
Compile Kivy¶
Start installation of Kivy cloned or downloaded and extracted from GitHub. You should be in the root directory where kivy is extracted containing the setup.py file:
If the compilation succeeds without any error, Kivy should be good to go. You can test it with running a basic example:
Installing Kivy and editing it in place¶
In development, Kivy is often cloned or downloaded to a location and then installed with:
Now you can safely compile kivy in its current location with one of these commands:
But kivy would be fully installed and available from Python. remember to re-run the above command whenever any of the cython files are changed (e.g. if you pulled from GitHub) to recompile.
Making Python available anywhere¶
There are two methods for launching python on your *.py files.
Double-click method¶
If you only have one Python installed, you can associate all *.py files with your python, if it isn’t already, and then run it by double clicking. Or you can only do it once if you want to be able to choose each time:
- Right click on the Python file (.py file extension) of the application you want to launch
- From the context menu that appears, select Open With
- Browse your hard disk drive and find the file python.exe that you want to use. Select it.
- Select “Always open the file with…” if you don’t want to repeat this procedure every time you double click a .py file.
- You are done. Open the file.
Send-to method¶
You can launch a .py file with our Python using the Send-to menu:
- Browse to the python.exe file you want to use. Right click on it and copy it.
- Open Windows explorer (File explorer in Windows 8), and to go the address ‘shell:sendto’. You should get the special Windows directory SendTo
- Paste the previously copied python.exe file as a shortcut.
- Rename it to python
You can now execute your application by right clicking on the .py file -> “Send To” -> “python
Источник
I am trying to download kivy to both cmd and anaconda. In anaconda i have written conda install kivy -c conda-forge
but it shows error that
Collecting package metadata (current_repodata.json): done
Solving environment: failed with current_repodata.json, will retry with next repodata source.
Collecting package metadata (repodata.json): done
Solving environment: failed
PackagesNotFoundError: The following packages are not available from current channels:
- kivy
Current channels:
- https://conda.anaconda.org/conda-forge/win-32
- https://conda.anaconda.org/conda-forge/noarch
- https://repo.anaconda.com/pkgs/main/win-32
- https://repo.anaconda.com/pkgs/main/noarch
- https://repo.anaconda.com/pkgs/r/win-32
- https://repo.anaconda.com/pkgs/r/noarch
- https://repo.anaconda.com/pkgs/msys2/win-32
- https://repo.anaconda.com/pkgs/msys2/noarch
To search for alternate channels that may provide the conda package you're
looking for, navigate to
https://anaconda.org
and use the search bar at the top of the page.
then I tried python -m pip install kivy
to download on cmd and this error had occured
C:Userslycelab4>python -m pip install kivy
Collecting kivy
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: 'C:Userslycelab4AppDataLocalProgramsPythonPython38-32python.exe' -c 'import sys, setuptools, tokenize; sys.argv[0] = '"'"'C:\Users\lycelab4\AppData\Local\Temp\pip-install-jwrxtk4h\kivy\setup.py'"'"'; __file__='"'"'C:\Users\lycelab4\AppData\Local\Temp\pip-install-jwrxtk4h\kivy\setup.py'"'"';f=getattr(tokenize, '"'"'open'"'"', open)(__file__);code=f.read().replace('"'"'rn'"'"', '"'"'n'"'"');f.close();exec(compile(code, __file__, '"'"'exec'"'"'))' egg_info --egg-base 'C:Userslycelab4AppDataLocalTemppip-install-jwrxtk4hkivypip-egg-info'
cwd: C:Userslycelab4AppDataLocalTemppip-install-jwrxtk4hkivy
Complete output (192 lines):
Using setuptools
User distribution detected, avoid portable command.
Using this graphics system: OpenGL
WARNING: A problem occurred while running pkg-config --libs --cflags gstreamer-1.0 (code 1)
b"'pkg-config' is not recognized as an internal or external command,rnoperable program or batch file.rn"
WARNING: A problem occurred while running pkg-config --libs --cflags gstreamer-1.0 (code 1)
b"'pkg-config' is not recognized as an internal or external command,rnoperable program or batch file.rn"
WARNING: A problem occurred while running pkg-config --libs --cflags sdl2 SDL2_ttf SDL2_image SDL2_mixer (code 1)
b"'pkg-config' is not recognized as an internal or external command,rnoperable program or batch file.rn"
ERROR: Dependency for context.pyx not resolved: config.pxi
ERROR: Dependency for compiler.pyx not resolved: config.pxi
ERROR: Dependency for context_instructions.pyx not resolved: config.pxi
ERROR: Dependency for fbo.pyx not resolved: config.pxi
ERROR: Dependency for gl_instructions.pyx not resolved: config.pxi
ERROR: Dependency for instructions.pyx not resolved: config.pxi
ERROR: Dependency for opengl.pyx not resolved: config.pxi
ERROR: Dependency for opengl_utils.pyx not resolved: config.pxi
ERROR: Dependency for shader.pyx not resolved: config.pxi
ERROR: Dependency for stencil_instructions.pyx not resolved: config.pxi
ERROR: Dependency for scissor_instructions.pyx not resolved: config.pxi
ERROR: Dependency for texture.pyx not resolved: config.pxi
ERROR: Dependency for vbo.pyx not resolved: config.pxi
ERROR: Dependency for vertex.pyx not resolved: config.pxi
ERROR: Dependency for vertex_instructions.pyx not resolved: config.pxi
ERROR: Dependency for cgl.pyx not resolved: config.pxi
ERROR: Dependency for cgl_mock.pyx not resolved: config.pxi
ERROR: Dependency for cgl_gl.pyx not resolved: config.pxi
ERROR: Dependency for cgl_glew.pyx not resolved: config.pxi
ERROR: Dependency for cgl_sdl2.pyx not resolved: config.pxi
ERROR: Dependency for svg.pyx not resolved: config.pxi
Compiling C:Userslycelab4AppDataLocalTempeasy_install-bh76kkizCython-0.29.10CythonPlexScanners.py because it changed.
Compiling C:Userslycelab4AppDataLocalTempeasy_install-bh76kkizCython-0.29.10CythonPlexActions.py because it changed.
Compiling C:Userslycelab4AppDataLocalTempeasy_install-bh76kkizCython-0.29.10CythonCompilerScanning.py because it changed.
Compiling C:Userslycelab4AppDataLocalTempeasy_install-bh76kkizCython-0.29.10CythonCompilerVisitor.py because it changed.
Compiling C:Userslycelab4AppDataLocalTempeasy_install-bh76kkizCython-0.29.10CythonCompilerFlowControl.py because it changed.
Compiling C:Userslycelab4AppDataLocalTempeasy_install-bh76kkizCython-0.29.10CythonRuntimerefnanny.pyx because it changed.
Compiling C:Userslycelab4AppDataLocalTempeasy_install-bh76kkizCython-0.29.10CythonCompilerFusedNode.py because it changed.
Compiling C:Userslycelab4AppDataLocalTempeasy_install-bh76kkizCython-0.29.10CythonTempita_tempita.py because it changed.
[1/8] Cythonizing C:Userslycelab4AppDataLocalTempeasy_install-bh76kkizCython-0.29.10CythonCompilerFlowControl.py
[2/8] Cythonizing C:Userslycelab4AppDataLocalTempeasy_install-bh76kkizCython-0.29.10CythonCompilerFusedNode.py
[3/8] Cythonizing C:Userslycelab4AppDataLocalTempeasy_install-bh76kkizCython-0.29.10CythonCompilerScanning.py
[4/8] Cythonizing C:Userslycelab4AppDataLocalTempeasy_install-bh76kkizCython-0.29.10CythonCompilerVisitor.py
[5/8] Cythonizing C:Userslycelab4AppDataLocalTempeasy_install-bh76kkizCython-0.29.10CythonPlexActions.py
[6/8] Cythonizing C:Userslycelab4AppDataLocalTempeasy_install-bh76kkizCython-0.29.10CythonPlexScanners.py
[7/8] Cythonizing C:Userslycelab4AppDataLocalTempeasy_install-bh76kkizCython-0.29.10CythonRuntimerefnanny.pyx
[8/8] Cythonizing C:Userslycelab4AppDataLocalTempeasy_install-bh76kkizCython-0.29.10CythonTempita_tempita.py
Unable to find pgen, not compiling formal grammar.
warning: no files found matching 'Doc*'
warning: no files found matching '*.pyx' under directory 'CythonDebuggerTests'
warning: no files found matching '*.pxd' under directory 'CythonDebuggerTests'
warning: no files found matching '*.pxd' under directory 'CythonUtility'
warning: no files found matching 'pyximportREADME'
Traceback (most recent call last):
File "C:Userslycelab4AppDataLocalProgramsPythonPython38-32libdistutilscore.py", line 148, in setup
dist.run_commands()
File "C:Userslycelab4AppDataLocalProgramsPythonPython38-32libdistutilsdist.py", line 966, in run_commands
self.run_command(cmd)
File "C:Userslycelab4AppDataLocalProgramsPythonPython38-32libdistutilsdist.py", line 985, in run_command
cmd_obj.run()
File "C:Userslycelab4AppDataLocalProgramsPythonPython38-32libsite-packagessetuptoolscommandbdist_egg.py", line 172, in run
cmd = self.call_command('install_lib', warn_dir=0)
File "C:Userslycelab4AppDataLocalProgramsPythonPython38-32libsite-packagessetuptoolscommandbdist_egg.py", line 158, in call_command
self.run_command(cmdname)
File "C:Userslycelab4AppDataLocalProgramsPythonPython38-32libdistutilscmd.py", line 313, in run_command
self.distribution.run_command(command)
File "C:Userslycelab4AppDataLocalProgramsPythonPython38-32libdistutilsdist.py", line 985, in run_command
cmd_obj.run()
File "C:Userslycelab4AppDataLocalProgramsPythonPython38-32libsite-packagessetuptoolscommandinstall_lib.py", line 11, in run
self.build()
File "C:Userslycelab4AppDataLocalProgramsPythonPython38-32libdistutilscommandinstall_lib.py", line 107, in build
self.run_command('build_ext')
File "C:Userslycelab4AppDataLocalProgramsPythonPython38-32libdistutilscmd.py", line 313, in run_command
self.distribution.run_command(command)
File "C:Userslycelab4AppDataLocalProgramsPythonPython38-32libdistutilsdist.py", line 985, in run_command
cmd_obj.run()
File "C:Userslycelab4AppDataLocalProgramsPythonPython38-32libsite-packagessetuptoolscommandbuild_ext.py", line 84, in run
_build_ext.run(self)
File "C:Userslycelab4AppDataLocalProgramsPythonPython38-32libdistutilscommandbuild_ext.py", line 340, in run
self.build_extensions()
File "C:Userslycelab4AppDataLocalProgramsPythonPython38-32libdistutilscommandbuild_ext.py", line 449, in build_extensions
self._build_extensions_serial()
File "C:Userslycelab4AppDataLocalProgramsPythonPython38-32libdistutilscommandbuild_ext.py", line 474, in _build_extensions_serial
self.build_extension(ext)
File "C:Userslycelab4AppDataLocalProgramsPythonPython38-32libsite-packagessetuptoolscommandbuild_ext.py", line 205, in build_extension
_build_ext.build_extension(self, ext)
File "C:Userslycelab4AppDataLocalProgramsPythonPython38-32libdistutilscommandbuild_ext.py", line 528, in build_extension
objects = self.compiler.compile(sources,
File "C:Userslycelab4AppDataLocalProgramsPythonPython38-32libdistutils_msvccompiler.py", line 360, in compile
self.initialize()
File "C:Userslycelab4AppDataLocalProgramsPythonPython38-32libdistutils_msvccompiler.py", line 253, in initialize
vc_env = _get_vc_env(plat_spec)
File "C:Userslycelab4AppDataLocalProgramsPythonPython38-32libsite-packagessetuptoolsmsvc.py", line 171, in msvc14_get_vc_env
return EnvironmentInfo(plat_spec, vc_min_ver=14.0).return_env()
File "C:Userslycelab4AppDataLocalProgramsPythonPython38-32libsite-packagessetuptoolsmsvc.py", line 1075, in __init__
self.si = SystemInfo(self.ri, vc_ver)
File "C:Userslycelab4AppDataLocalProgramsPythonPython38-32libsite-packagessetuptoolsmsvc.py", line 547, in __init__
vc_ver or self._find_latest_available_vs_ver())
File "C:Userslycelab4AppDataLocalProgramsPythonPython38-32libsite-packagessetuptoolsmsvc.py", line 561, in _find_latest_available_vs_ver
raise distutils.errors.DistutilsPlatformError(
distutils.errors.DistutilsPlatformError: Microsoft Visual C++ 14.0 is required. Get it with "Build Tools for Visual Studio": https://visualstudio.microsoft.com/downloads/
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File "C:Userslycelab4AppDataLocalProgramsPythonPython38-32libsite-packagessetuptoolssandbox.py", line 154, in save_modules
yield saved
File "C:Userslycelab4AppDataLocalProgramsPythonPython38-32libsite-packagessetuptoolssandbox.py", line 195, in setup_context
yield
File "C:Userslycelab4AppDataLocalProgramsPythonPython38-32libsite-packagessetuptoolssandbox.py", line 250, in run_setup
_execfile(setup_script, ns)
File "C:Userslycelab4AppDataLocalProgramsPythonPython38-32libsite-packagessetuptoolssandbox.py", line 45, in _execfile
exec(code, globals, locals)
File "C:Userslycelab4AppDataLocalTempeasy_install-bh76kkizCython-0.29.10setup.py", line 228, in <module>
This version of Cython is untested with Kivy. While this version may
File "C:Userslycelab4AppDataLocalProgramsPythonPython38-32libsite-packagessetuptools__init__.py", line 145, in setup
return distutils.core.setup(**attrs)
File "C:Userslycelab4AppDataLocalProgramsPythonPython38-32libdistutilscore.py", line 163, in setup
raise SystemExit("error: " + str(msg))
SystemExit: error: Microsoft Visual C++ 14.0 is required. Get it with "Build Tools for Visual Studio": https://visualstudio.microsoft.com/downloads/
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File "C:Userslycelab4AppDataLocalProgramsPythonPython38-32libsite-packagessetuptoolscommandeasy_install.py", line 1144, in run_setup
run_setup(setup_script, args)
File "C:Userslycelab4AppDataLocalProgramsPythonPython38-32libsite-packagessetuptoolssandbox.py", line 253, in run_setup
raise
File "C:Userslycelab4AppDataLocalProgramsPythonPython38-32libcontextlib.py", line 131, in __exit__
self.gen.throw(type, value, traceback)
File "C:Userslycelab4AppDataLocalProgramsPythonPython38-32libsite-packagessetuptoolssandbox.py", line 195, in setup_context
yield
File "C:Userslycelab4AppDataLocalProgramsPythonPython38-32libcontextlib.py", line 131, in __exit__
self.gen.throw(type, value, traceback)
File "C:Userslycelab4AppDataLocalProgramsPythonPython38-32libsite-packagessetuptoolssandbox.py", line 166, in save_modules
saved_exc.resume()
File "C:Userslycelab4AppDataLocalProgramsPythonPython38-32libsite-packagessetuptoolssandbox.py", line 141, in resume
six.reraise(type, exc, self._tb)
File "C:Userslycelab4AppDataLocalProgramsPythonPython38-32libsite-packagessetuptools_vendorsix.py", line 685, in reraise
raise value.with_traceback(tb)
File "C:Userslycelab4AppDataLocalProgramsPythonPython38-32libsite-packagessetuptoolssandbox.py", line 154, in save_modules
yield saved
File "C:Userslycelab4AppDataLocalProgramsPythonPython38-32libsite-packagessetuptoolssandbox.py", line 195, in setup_context
yield
File "C:Userslycelab4AppDataLocalProgramsPythonPython38-32libsite-packagessetuptoolssandbox.py", line 250, in run_setup
_execfile(setup_script, ns)
File "C:Userslycelab4AppDataLocalProgramsPythonPython38-32libsite-packagessetuptoolssandbox.py", line 45, in _execfile
exec(code, globals, locals)
File "C:Userslycelab4AppDataLocalTempeasy_install-bh76kkizCython-0.29.10setup.py", line 228, in <module>
This version of Cython is untested with Kivy. While this version may
File "C:Userslycelab4AppDataLocalProgramsPythonPython38-32libsite-packagessetuptools__init__.py", line 145, in setup
return distutils.core.setup(**attrs)
File "C:Userslycelab4AppDataLocalProgramsPythonPython38-32libdistutilscore.py", line 163, in setup
raise SystemExit("error: " + str(msg))
SystemExit: error: Microsoft Visual C++ 14.0 is required. Get it with "Build Tools for Visual Studio": https://visualstudio.microsoft.com/downloads/
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File "<string>", line 1, in <module>
File "C:Userslycelab4AppDataLocalTemppip-install-jwrxtk4hkivysetup.py", line 1073, in <module>
setup(
File "C:Userslycelab4AppDataLocalProgramsPythonPython38-32libsite-packagessetuptools__init__.py", line 144, in setup
_install_setup_requires(attrs)
File "C:Userslycelab4AppDataLocalProgramsPythonPython38-32libsite-packagessetuptools__init__.py", line 139, in _install_setup_requires
dist.fetch_build_eggs(dist.setup_requires)
File "C:Userslycelab4AppDataLocalProgramsPythonPython38-32libsite-packagessetuptoolsdist.py", line 717, in fetch_build_eggs
resolved_dists = pkg_resources.working_set.resolve(
File "C:Userslycelab4AppDataLocalProgramsPythonPython38-32libsite-packagespkg_resources__init__.py", line 780, in resolve
dist = best[req.key] = env.best_match(
File "C:Userslycelab4AppDataLocalProgramsPythonPython38-32libsite-packagespkg_resources__init__.py", line 1065, in best_match
return self.obtain(req, installer)
File "C:Userslycelab4AppDataLocalProgramsPythonPython38-32libsite-packagespkg_resources__init__.py", line 1077, in obtain
return installer(requirement)
File "C:Userslycelab4AppDataLocalProgramsPythonPython38-32libsite-packagessetuptoolsdist.py", line 787, in fetch_build_egg
return cmd.easy_install(req)
File "C:Userslycelab4AppDataLocalProgramsPythonPython38-32libsite-packagessetuptoolscommandeasy_install.py", line 679, in easy_install
return self.install_item(spec, dist.location, tmpdir, deps)
File "C:Userslycelab4AppDataLocalProgramsPythonPython38-32libsite-packagessetuptoolscommandeasy_install.py", line 705, in install_item
dists = self.install_eggs(spec, download, tmpdir)
File "C:Userslycelab4AppDataLocalProgramsPythonPython38-32libsite-packagessetuptoolscommandeasy_install.py", line 890, in install_eggs
return self.build_and_install(setup_script, setup_base)
File "C:Userslycelab4AppDataLocalProgramsPythonPython38-32libsite-packagessetuptoolscommandeasy_install.py", line 1158, in build_and_install
self.run_setup(setup_script, setup_base, args)
File "C:Userslycelab4AppDataLocalProgramsPythonPython38-32libsite-packagessetuptoolscommandeasy_install.py", line 1146, in run_setup
raise DistutilsError("Setup script exited with %s" % (v.args[0],))
distutils.errors.DistutilsError: Setup script exited with error: Microsoft Visual C++ 14.0 is required. Get it with "Build Tools for Visual Studio": https://visualstudio.microsoft.com/downloads/
----------------------------------------
ERROR: Command errored out with exit status 1: python setup.py egg_info Check the logs for full command output.
Please Help Me!
I am trying to download kivy to both cmd and anaconda. In anaconda i have written conda install kivy -c conda-forge
but it shows error that
Collecting package metadata (current_repodata.json): done
Solving environment: failed with current_repodata.json, will retry with next repodata source.
Collecting package metadata (repodata.json): done
Solving environment: failed
PackagesNotFoundError: The following packages are not available from current channels:
- kivy
Current channels:
- https://conda.anaconda.org/conda-forge/win-32
- https://conda.anaconda.org/conda-forge/noarch
- https://repo.anaconda.com/pkgs/main/win-32
- https://repo.anaconda.com/pkgs/main/noarch
- https://repo.anaconda.com/pkgs/r/win-32
- https://repo.anaconda.com/pkgs/r/noarch
- https://repo.anaconda.com/pkgs/msys2/win-32
- https://repo.anaconda.com/pkgs/msys2/noarch
To search for alternate channels that may provide the conda package you're
looking for, navigate to
https://anaconda.org
and use the search bar at the top of the page.
then I tried python -m pip install kivy
to download on cmd and this error had occured
C:Userslycelab4>python -m pip install kivy
Collecting kivy
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: 'C:Userslycelab4AppDataLocalProgramsPythonPython38-32python.exe' -c 'import sys, setuptools, tokenize; sys.argv[0] = '"'"'C:\Users\lycelab4\AppData\Local\Temp\pip-install-jwrxtk4h\kivy\setup.py'"'"'; __file__='"'"'C:\Users\lycelab4\AppData\Local\Temp\pip-install-jwrxtk4h\kivy\setup.py'"'"';f=getattr(tokenize, '"'"'open'"'"', open)(__file__);code=f.read().replace('"'"'rn'"'"', '"'"'n'"'"');f.close();exec(compile(code, __file__, '"'"'exec'"'"'))' egg_info --egg-base 'C:Userslycelab4AppDataLocalTemppip-install-jwrxtk4hkivypip-egg-info'
cwd: C:Userslycelab4AppDataLocalTemppip-install-jwrxtk4hkivy
Complete output (192 lines):
Using setuptools
User distribution detected, avoid portable command.
Using this graphics system: OpenGL
WARNING: A problem occurred while running pkg-config --libs --cflags gstreamer-1.0 (code 1)
b"'pkg-config' is not recognized as an internal or external command,rnoperable program or batch file.rn"
WARNING: A problem occurred while running pkg-config --libs --cflags gstreamer-1.0 (code 1)
b"'pkg-config' is not recognized as an internal or external command,rnoperable program or batch file.rn"
WARNING: A problem occurred while running pkg-config --libs --cflags sdl2 SDL2_ttf SDL2_image SDL2_mixer (code 1)
b"'pkg-config' is not recognized as an internal or external command,rnoperable program or batch file.rn"
ERROR: Dependency for context.pyx not resolved: config.pxi
ERROR: Dependency for compiler.pyx not resolved: config.pxi
ERROR: Dependency for context_instructions.pyx not resolved: config.pxi
ERROR: Dependency for fbo.pyx not resolved: config.pxi
ERROR: Dependency for gl_instructions.pyx not resolved: config.pxi
ERROR: Dependency for instructions.pyx not resolved: config.pxi
ERROR: Dependency for opengl.pyx not resolved: config.pxi
ERROR: Dependency for opengl_utils.pyx not resolved: config.pxi
ERROR: Dependency for shader.pyx not resolved: config.pxi
ERROR: Dependency for stencil_instructions.pyx not resolved: config.pxi
ERROR: Dependency for scissor_instructions.pyx not resolved: config.pxi
ERROR: Dependency for texture.pyx not resolved: config.pxi
ERROR: Dependency for vbo.pyx not resolved: config.pxi
ERROR: Dependency for vertex.pyx not resolved: config.pxi
ERROR: Dependency for vertex_instructions.pyx not resolved: config.pxi
ERROR: Dependency for cgl.pyx not resolved: config.pxi
ERROR: Dependency for cgl_mock.pyx not resolved: config.pxi
ERROR: Dependency for cgl_gl.pyx not resolved: config.pxi
ERROR: Dependency for cgl_glew.pyx not resolved: config.pxi
ERROR: Dependency for cgl_sdl2.pyx not resolved: config.pxi
ERROR: Dependency for svg.pyx not resolved: config.pxi
Compiling C:Userslycelab4AppDataLocalTempeasy_install-bh76kkizCython-0.29.10CythonPlexScanners.py because it changed.
Compiling C:Userslycelab4AppDataLocalTempeasy_install-bh76kkizCython-0.29.10CythonPlexActions.py because it changed.
Compiling C:Userslycelab4AppDataLocalTempeasy_install-bh76kkizCython-0.29.10CythonCompilerScanning.py because it changed.
Compiling C:Userslycelab4AppDataLocalTempeasy_install-bh76kkizCython-0.29.10CythonCompilerVisitor.py because it changed.
Compiling C:Userslycelab4AppDataLocalTempeasy_install-bh76kkizCython-0.29.10CythonCompilerFlowControl.py because it changed.
Compiling C:Userslycelab4AppDataLocalTempeasy_install-bh76kkizCython-0.29.10CythonRuntimerefnanny.pyx because it changed.
Compiling C:Userslycelab4AppDataLocalTempeasy_install-bh76kkizCython-0.29.10CythonCompilerFusedNode.py because it changed.
Compiling C:Userslycelab4AppDataLocalTempeasy_install-bh76kkizCython-0.29.10CythonTempita_tempita.py because it changed.
[1/8] Cythonizing C:Userslycelab4AppDataLocalTempeasy_install-bh76kkizCython-0.29.10CythonCompilerFlowControl.py
[2/8] Cythonizing C:Userslycelab4AppDataLocalTempeasy_install-bh76kkizCython-0.29.10CythonCompilerFusedNode.py
[3/8] Cythonizing C:Userslycelab4AppDataLocalTempeasy_install-bh76kkizCython-0.29.10CythonCompilerScanning.py
[4/8] Cythonizing C:Userslycelab4AppDataLocalTempeasy_install-bh76kkizCython-0.29.10CythonCompilerVisitor.py
[5/8] Cythonizing C:Userslycelab4AppDataLocalTempeasy_install-bh76kkizCython-0.29.10CythonPlexActions.py
[6/8] Cythonizing C:Userslycelab4AppDataLocalTempeasy_install-bh76kkizCython-0.29.10CythonPlexScanners.py
[7/8] Cythonizing C:Userslycelab4AppDataLocalTempeasy_install-bh76kkizCython-0.29.10CythonRuntimerefnanny.pyx
[8/8] Cythonizing C:Userslycelab4AppDataLocalTempeasy_install-bh76kkizCython-0.29.10CythonTempita_tempita.py
Unable to find pgen, not compiling formal grammar.
warning: no files found matching 'Doc*'
warning: no files found matching '*.pyx' under directory 'CythonDebuggerTests'
warning: no files found matching '*.pxd' under directory 'CythonDebuggerTests'
warning: no files found matching '*.pxd' under directory 'CythonUtility'
warning: no files found matching 'pyximportREADME'
Traceback (most recent call last):
File "C:Userslycelab4AppDataLocalProgramsPythonPython38-32libdistutilscore.py", line 148, in setup
dist.run_commands()
File "C:Userslycelab4AppDataLocalProgramsPythonPython38-32libdistutilsdist.py", line 966, in run_commands
self.run_command(cmd)
File "C:Userslycelab4AppDataLocalProgramsPythonPython38-32libdistutilsdist.py", line 985, in run_command
cmd_obj.run()
File "C:Userslycelab4AppDataLocalProgramsPythonPython38-32libsite-packagessetuptoolscommandbdist_egg.py", line 172, in run
cmd = self.call_command('install_lib', warn_dir=0)
File "C:Userslycelab4AppDataLocalProgramsPythonPython38-32libsite-packagessetuptoolscommandbdist_egg.py", line 158, in call_command
self.run_command(cmdname)
File "C:Userslycelab4AppDataLocalProgramsPythonPython38-32libdistutilscmd.py", line 313, in run_command
self.distribution.run_command(command)
File "C:Userslycelab4AppDataLocalProgramsPythonPython38-32libdistutilsdist.py", line 985, in run_command
cmd_obj.run()
File "C:Userslycelab4AppDataLocalProgramsPythonPython38-32libsite-packagessetuptoolscommandinstall_lib.py", line 11, in run
self.build()
File "C:Userslycelab4AppDataLocalProgramsPythonPython38-32libdistutilscommandinstall_lib.py", line 107, in build
self.run_command('build_ext')
File "C:Userslycelab4AppDataLocalProgramsPythonPython38-32libdistutilscmd.py", line 313, in run_command
self.distribution.run_command(command)
File "C:Userslycelab4AppDataLocalProgramsPythonPython38-32libdistutilsdist.py", line 985, in run_command
cmd_obj.run()
File "C:Userslycelab4AppDataLocalProgramsPythonPython38-32libsite-packagessetuptoolscommandbuild_ext.py", line 84, in run
_build_ext.run(self)
File "C:Userslycelab4AppDataLocalProgramsPythonPython38-32libdistutilscommandbuild_ext.py", line 340, in run
self.build_extensions()
File "C:Userslycelab4AppDataLocalProgramsPythonPython38-32libdistutilscommandbuild_ext.py", line 449, in build_extensions
self._build_extensions_serial()
File "C:Userslycelab4AppDataLocalProgramsPythonPython38-32libdistutilscommandbuild_ext.py", line 474, in _build_extensions_serial
self.build_extension(ext)
File "C:Userslycelab4AppDataLocalProgramsPythonPython38-32libsite-packagessetuptoolscommandbuild_ext.py", line 205, in build_extension
_build_ext.build_extension(self, ext)
File "C:Userslycelab4AppDataLocalProgramsPythonPython38-32libdistutilscommandbuild_ext.py", line 528, in build_extension
objects = self.compiler.compile(sources,
File "C:Userslycelab4AppDataLocalProgramsPythonPython38-32libdistutils_msvccompiler.py", line 360, in compile
self.initialize()
File "C:Userslycelab4AppDataLocalProgramsPythonPython38-32libdistutils_msvccompiler.py", line 253, in initialize
vc_env = _get_vc_env(plat_spec)
File "C:Userslycelab4AppDataLocalProgramsPythonPython38-32libsite-packagessetuptoolsmsvc.py", line 171, in msvc14_get_vc_env
return EnvironmentInfo(plat_spec, vc_min_ver=14.0).return_env()
File "C:Userslycelab4AppDataLocalProgramsPythonPython38-32libsite-packagessetuptoolsmsvc.py", line 1075, in __init__
self.si = SystemInfo(self.ri, vc_ver)
File "C:Userslycelab4AppDataLocalProgramsPythonPython38-32libsite-packagessetuptoolsmsvc.py", line 547, in __init__
vc_ver or self._find_latest_available_vs_ver())
File "C:Userslycelab4AppDataLocalProgramsPythonPython38-32libsite-packagessetuptoolsmsvc.py", line 561, in _find_latest_available_vs_ver
raise distutils.errors.DistutilsPlatformError(
distutils.errors.DistutilsPlatformError: Microsoft Visual C++ 14.0 is required. Get it with "Build Tools for Visual Studio": https://visualstudio.microsoft.com/downloads/
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File "C:Userslycelab4AppDataLocalProgramsPythonPython38-32libsite-packagessetuptoolssandbox.py", line 154, in save_modules
yield saved
File "C:Userslycelab4AppDataLocalProgramsPythonPython38-32libsite-packagessetuptoolssandbox.py", line 195, in setup_context
yield
File "C:Userslycelab4AppDataLocalProgramsPythonPython38-32libsite-packagessetuptoolssandbox.py", line 250, in run_setup
_execfile(setup_script, ns)
File "C:Userslycelab4AppDataLocalProgramsPythonPython38-32libsite-packagessetuptoolssandbox.py", line 45, in _execfile
exec(code, globals, locals)
File "C:Userslycelab4AppDataLocalTempeasy_install-bh76kkizCython-0.29.10setup.py", line 228, in <module>
This version of Cython is untested with Kivy. While this version may
File "C:Userslycelab4AppDataLocalProgramsPythonPython38-32libsite-packagessetuptools__init__.py", line 145, in setup
return distutils.core.setup(**attrs)
File "C:Userslycelab4AppDataLocalProgramsPythonPython38-32libdistutilscore.py", line 163, in setup
raise SystemExit("error: " + str(msg))
SystemExit: error: Microsoft Visual C++ 14.0 is required. Get it with "Build Tools for Visual Studio": https://visualstudio.microsoft.com/downloads/
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File "C:Userslycelab4AppDataLocalProgramsPythonPython38-32libsite-packagessetuptoolscommandeasy_install.py", line 1144, in run_setup
run_setup(setup_script, args)
File "C:Userslycelab4AppDataLocalProgramsPythonPython38-32libsite-packagessetuptoolssandbox.py", line 253, in run_setup
raise
File "C:Userslycelab4AppDataLocalProgramsPythonPython38-32libcontextlib.py", line 131, in __exit__
self.gen.throw(type, value, traceback)
File "C:Userslycelab4AppDataLocalProgramsPythonPython38-32libsite-packagessetuptoolssandbox.py", line 195, in setup_context
yield
File "C:Userslycelab4AppDataLocalProgramsPythonPython38-32libcontextlib.py", line 131, in __exit__
self.gen.throw(type, value, traceback)
File "C:Userslycelab4AppDataLocalProgramsPythonPython38-32libsite-packagessetuptoolssandbox.py", line 166, in save_modules
saved_exc.resume()
File "C:Userslycelab4AppDataLocalProgramsPythonPython38-32libsite-packagessetuptoolssandbox.py", line 141, in resume
six.reraise(type, exc, self._tb)
File "C:Userslycelab4AppDataLocalProgramsPythonPython38-32libsite-packagessetuptools_vendorsix.py", line 685, in reraise
raise value.with_traceback(tb)
File "C:Userslycelab4AppDataLocalProgramsPythonPython38-32libsite-packagessetuptoolssandbox.py", line 154, in save_modules
yield saved
File "C:Userslycelab4AppDataLocalProgramsPythonPython38-32libsite-packagessetuptoolssandbox.py", line 195, in setup_context
yield
File "C:Userslycelab4AppDataLocalProgramsPythonPython38-32libsite-packagessetuptoolssandbox.py", line 250, in run_setup
_execfile(setup_script, ns)
File "C:Userslycelab4AppDataLocalProgramsPythonPython38-32libsite-packagessetuptoolssandbox.py", line 45, in _execfile
exec(code, globals, locals)
File "C:Userslycelab4AppDataLocalTempeasy_install-bh76kkizCython-0.29.10setup.py", line 228, in <module>
This version of Cython is untested with Kivy. While this version may
File "C:Userslycelab4AppDataLocalProgramsPythonPython38-32libsite-packagessetuptools__init__.py", line 145, in setup
return distutils.core.setup(**attrs)
File "C:Userslycelab4AppDataLocalProgramsPythonPython38-32libdistutilscore.py", line 163, in setup
raise SystemExit("error: " + str(msg))
SystemExit: error: Microsoft Visual C++ 14.0 is required. Get it with "Build Tools for Visual Studio": https://visualstudio.microsoft.com/downloads/
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File "<string>", line 1, in <module>
File "C:Userslycelab4AppDataLocalTemppip-install-jwrxtk4hkivysetup.py", line 1073, in <module>
setup(
File "C:Userslycelab4AppDataLocalProgramsPythonPython38-32libsite-packagessetuptools__init__.py", line 144, in setup
_install_setup_requires(attrs)
File "C:Userslycelab4AppDataLocalProgramsPythonPython38-32libsite-packagessetuptools__init__.py", line 139, in _install_setup_requires
dist.fetch_build_eggs(dist.setup_requires)
File "C:Userslycelab4AppDataLocalProgramsPythonPython38-32libsite-packagessetuptoolsdist.py", line 717, in fetch_build_eggs
resolved_dists = pkg_resources.working_set.resolve(
File "C:Userslycelab4AppDataLocalProgramsPythonPython38-32libsite-packagespkg_resources__init__.py", line 780, in resolve
dist = best[req.key] = env.best_match(
File "C:Userslycelab4AppDataLocalProgramsPythonPython38-32libsite-packagespkg_resources__init__.py", line 1065, in best_match
return self.obtain(req, installer)
File "C:Userslycelab4AppDataLocalProgramsPythonPython38-32libsite-packagespkg_resources__init__.py", line 1077, in obtain
return installer(requirement)
File "C:Userslycelab4AppDataLocalProgramsPythonPython38-32libsite-packagessetuptoolsdist.py", line 787, in fetch_build_egg
return cmd.easy_install(req)
File "C:Userslycelab4AppDataLocalProgramsPythonPython38-32libsite-packagessetuptoolscommandeasy_install.py", line 679, in easy_install
return self.install_item(spec, dist.location, tmpdir, deps)
File "C:Userslycelab4AppDataLocalProgramsPythonPython38-32libsite-packagessetuptoolscommandeasy_install.py", line 705, in install_item
dists = self.install_eggs(spec, download, tmpdir)
File "C:Userslycelab4AppDataLocalProgramsPythonPython38-32libsite-packagessetuptoolscommandeasy_install.py", line 890, in install_eggs
return self.build_and_install(setup_script, setup_base)
File "C:Userslycelab4AppDataLocalProgramsPythonPython38-32libsite-packagessetuptoolscommandeasy_install.py", line 1158, in build_and_install
self.run_setup(setup_script, setup_base, args)
File "C:Userslycelab4AppDataLocalProgramsPythonPython38-32libsite-packagessetuptoolscommandeasy_install.py", line 1146, in run_setup
raise DistutilsError("Setup script exited with %s" % (v.args[0],))
distutils.errors.DistutilsError: Setup script exited with error: Microsoft Visual C++ 14.0 is required. Get it with "Build Tools for Visual Studio": https://visualstudio.microsoft.com/downloads/
----------------------------------------
ERROR: Command errored out with exit status 1: python setup.py egg_info Check the logs for full command output.
Please Help Me!
Table Of Contents
- FAQ
- Technical FAQ
- Unable to get a Window, abort.
- Fatal Python error: (pygame parachute) Segmentation Fault
- undefined symbol: glGenerateMipmap
- ImportError: No module named event
- Android FAQ
- Crash on touch interaction on Android 2.3.x
- Is it possible to have a kiosk app on android 3.0 ?
- What’s the difference between python-for-android from Kivy and SL4A?
- Project FAQ
- Why do you use Python? Isn’t it slow?
- Does Kivy support Python 3.x?
- How is Kivy related to PyMT?
- Do you accept patches?
- Does the Kivy project participate in Google’s Summer of Code ?
- Technical FAQ
There are a number of questions that repeatedly need to be answered.
The following document tries to answer some of them.
Technical FAQ¶
Unable to get a Window, abort.¶
If Kivy cannot instantiate a Window core provider (mostly SDL2), you’ll see
this. The underlying issue depends on many things:
-
Check your installation. Twice.
-
Check that your graphics driver support OpenGL 2.1 at the minimum. Otherwise, Kivy can’t run.
-
If you use windows and ANGLE (
KIVY_GL_BACKEND=angle_sdl2
), check that you have DirectX 9 support. -
If your platform doesn’t supports OpenGL, SDL2 cannot initialize OpenGL.
-
Don’t mix the architecture of the dependencies (e.g. Python 64-bit and 32-bit extensions/SDL2)
-
Don’t mix python installation: e.g. if you have Python and Anaconda installed, the Python actually run may be different than you think. Similarly, if you have multiple Python versions available on the
PATH
, they may clash. -
Check your PATH to ensure that other programs in it don’t provide the same dlls as Kivy/Python, or bad stuff can happen.
-
This commonly happens if some other program that uses similar dependencies as Kivy adds itself to the
PATH
so that Kivy’s dependencies clash with theirs. -
Please read this and this for more details on
PATH
. -
The best tool to troubleshoot this is with Dependency Walker explained here and here.
-
But ensure that you’re launching it from the identical environment that you start Python.
-
-
Ensure you have all dependencies installed (like
kivy_deps.sdl2
). -
Maybe your drivers have some missing OpenGL symbols? Try to switch to another graphics backend with
KIVY_GL_BACKEND
. -
Maybe your Pycharm configuration is incorrect.
Fatal Python error: (pygame parachute) Segmentation Fault¶
Most of time, this issue is due to the usage of old graphics drivers. Install the
latest graphics driver available for your graphics card, and it should be ok.
If not, this means you have probably triggered some OpenGL code without an
available OpenGL context. If you are loading images, atlases, using graphics
instructions, you must spawn a Window first:
# method 1 (preferred) from kivy.base import EventLoop EventLoop.ensure_window() # method 2 from kivy.core.window import Window
If not, please report a detailed issue on github by following the instructions
in the Reporting an Issue section of the Contributing documentation.
This is very important for us because that kind of error can be very hard
to debug. Give us all the information you can give about your environment and
execution.
undefined symbol: glGenerateMipmap¶
You graphics card or its drivers might be too old. Update your graphics drivers to the
latest available version and retry.
ImportError: No module named event¶
If you use Kivy from our development version, you must compile it before
using it. In the kivy directory, do:
Android FAQ¶
Crash on touch interaction on Android 2.3.x¶
There have been reports of crashes on Adreno 200/205 based devices.
Apps otherwise run fine but crash when interacted with/through the screen.
These reports also mentioned the issue being resolved when moving to an ICS or
higher ROM.
Is it possible to have a kiosk app on android 3.0 ?¶
Thomas Hansen have wrote a detailed answer on the kivy-users mailing list:
Basically, you need to root the device, remove the SystemUI package, add some
lines to the xml configuration, and you’re done.
What’s the difference between python-for-android from Kivy and SL4A?¶
Despite having the same name, Kivy’s python-for-android is not related to the
python-for-android project from SL4A, Py4A, or android-python27. They are
distinctly different projects with different goals. You may be able to use
Py4A with Kivy, but no code or effort has been made to do so. The Kivy team
feels that our python-for-android is the best solution for us going forward,
and attempts to integrate with and support Py4A is not a good use of our time.
Project FAQ¶
Why do you use Python? Isn’t it slow?¶
Let us try to give a thorough answer; please bear with us.
Python is a very agile language that allows you to do many things
in a (by comparison) short time.
For many development scenarios, we strongly prefer writing our
application quickly in a high-level language such as Python, testing
it, then optionally optimizing it.
But what about speed?
If you compare execution speeds of implementations for a certain set of
algorithms (esp. number crunching) you will find that Python is a lot
slower than say, C++.
Now you may be even more convinced that it’s not a good idea in our
case to use Python. Drawing sophisticated graphics (and we are
not talking about your grandmother’s OpenGL here) is computationally
quite expensive and given that we often want to do that for rich user
experiences, that would be a fair argument.
But, in virtually every case your application ends up spending
most of the time (by far) executing the same part of the code.
In Kivy, for example, these parts are event dispatching and graphics
drawing. Now Python allows you to do something to make these parts
much faster.
By using Cython, you can compile your code down to the C level,
and from there your usual C compiler optimizes things. This is
a pretty pain free process and if you add some hints to your
code, the result becomes even faster. We are talking about a speed up
in performance by a factor of anything between 1x and up to more
than 1000x (greatly depends on your code). In Kivy, we did this for
you and implemented the portions of our code, where efficiency really
is critical, on the C level.
For graphics drawing, we also leverage today’s GPUs which are, for
some tasks such as graphics rasterization, much more efficient than a
CPU. Kivy does as much as is reasonable on the GPU to maximize
performance. If you use our Canvas API to do the drawing, there is
even a compiler that we invented which optimizes your drawing code
automatically. If you keep your drawing mostly on the GPU,
much of your program’s execution speed is not determined by the
programming language used, but by the graphics hardware you throw at
it.
We believe that these (and other) optimizations that Kivy does for you
already make most applications fast enough by far. Often you will even
want to limit the speed of the application in order not to waste
resources.
But even if this is not sufficient, you still have the option of using
Cython for your own code to greatly speed it up.
Trust us when we say that we have given this very careful thought.
We have performed many different benchmarks and come up with some
clever optimizations to make your application run smoothly.
Does Kivy support Python 3.x?¶
Yes! Kivy 2.1.0 officially supports Python versions 3.7 — 3.10.
As of version 2.0.0 Kivy dropped support for Python 2. You can still use older versions with
Python 2 support.
Python 3 is also supported by python-for-android and kivy-ios.
Do you accept patches?¶
Yes, we love patches. In order to ensure a smooth integration of your
precious changes however, please make sure to read our contribution
guidelines.
Obviously we don’t accept every patch. Your patch has to be consistent
with our styleguide and, more importantly, make sense.
It does make sense to talk to us before you come up with bigger
changes, especially new features.
Does the Kivy project participate in Google’s Summer of Code ?¶
Potential students ask whether we participate in GSoC.
The clear answer is: Indeed.
If you want to participate as a student and want to maximize your
chances of being accepted, start talking to us today and try fixing
some smaller (or larger, if you can problems to get used to our
workflow. If we know you can work well with us, that’d be a big plus.
Here’s a checklist:
-
Make sure to read through the website and at least skim the documentation.
-
Look at the source code.
-
Read our contribution guidelines.
-
Pick an idea that you think is interesting from the ideas list (see link
above) or come up with your own idea. -
Do some research yourself. GSoC is not about us teaching you something
and you getting paid for that. It is about you trying to achieve agreed upon
goals by yourself with our support. The main driving force in this should be,
obviously, yourself. Many students come up and ask what they should
do. Well, we don’t know because we know neither your interests nor your
skills. Show us you’re serious about it and take initiative. -
Write a draft proposal about what you want to do. Include what you understand
the current state is (very roughly), what you would like to improve and how,
etc. -
Discuss that proposal with us in a timely manner. Get feedback.
-
Be patient! Especially on Discord. We will try to get to you if we’re available.
If not, send an email and just wait. Most questions are already answered in
the docs or somewhere else and can be found with some research. If your
questions don’t reflect that you’ve actually thought through what you’re
asking, it might not be well received.
Good luck!