I am trying to install Kivy by using: pip3 install Kivy and I keep getting this error ERROR: command errored out with exit status 1
My pip is up to date and I tried installing the library via PyCharm and via the Terminal (I am using a mac). Thanks in advance
added the error below
Collecting Kivy
Using cached Kivy-1.11.1.tar.gz (23.6 MB)
DEPRECATION: The -b/--build/--build-dir/--build-directory option is deprecated. pip 20.3 will remove support for this functionality. A possible replacement is use the TMPDIR/TEMP/TMP environment variable, possibly combined with --no-clean. You can find discussion regarding this at https://github.com/pypa/pip/issues/8333.
ERROR: Command errored out with exit status 1:
command: /Users/davidsokulin/PycharmProjects/FirsProject/venv/bin/python -c 'import sys, setuptools, tokenize; sys.argv[0] = '"'"'/private/var/folders/ch/_69bcffn79s9nxnc5mzrsm4r0000gn/T/pycharm-packaging/kivy/setup.py'"'"'; __file__='"'"'/private/var/folders/ch/_69bcffn79s9nxnc5mzrsm4r0000gn/T/pycharm-packaging/kivy/setup.py'"'"';f=getattr(tokenize, '"'"'open'"'"', open)(__file__);code=f.read().replace('"'"'\r\n'"'"', '"'"'\n'"'"');f.close();exec(compile(code, __file__, '"'"'exec'"'"'))' egg_info --egg-base /private/var/folders/ch/_69bcffn79s9nxnc5mzrsm4r0000gn/T/pip-pip-egg-info-m9a_f9np
cwd: /private/var/folders/ch/_69bcffn79s9nxnc5mzrsm4r0000gn/T/pycharm-packaging/kivy/
Complete output (92 lines):
Using setuptools
User distribution detected, avoid portable command.
Using this graphics system: OpenGL ES 2
OSX framework used, force to x86_64 only
OSX ARCHFLAGS are: -arch x86_64
GStreamer framework not found, fallback on pkg-config
WARNING: A problem occurred while running pkg-config --libs --cflags gstreamer-1.0 (code 127)
b'/bin/sh: pkg-config: command not found\n'
Missing framework /Library/Frameworks/SDL2.framework
Missing framework /Library/Frameworks/SDL2_ttf.framework
Missing framework /Library/Frameworks/SDL2_image.framework
Missing framework /Library/Frameworks/SDL2_mixer.framework
SDL2 frameworks not found, fallback on pkg-config
WARNING: A problem occurred while running pkg-config --libs --cflags sdl2 SDL2_ttf SDL2_image SDL2_mixer (code 127)
b'/bin/sh: pkg-config: command not found\n'
Xcode detected at b'/Applications/Xcode.app/Contents/Developer', and using OS X10.15 sdk
WARNING: A problem occurred while running pkg-config --libs --cflags pangoft2 (code 127)
b'/bin/sh: pkg-config: command not found\n'
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
fatal: not a git repository (or any of the parent directories): .git
WARNING: The wheel package is not available.
WARNING: Skipping page https://github.com/kivy-garden/garden/archive/master.zip because the HEAD request got Content-Type: application/zip.The only supported Content-Type is text/html
ERROR: Command errored out with exit status 1:
command: /Users/davidsokulin/PycharmProjects/FirsProject/venv/bin/python -u -c 'import sys, setuptools, tokenize; sys.argv[0] = '"'"'/private/var/folders/ch/_69bcffn79s9nxnc5mzrsm4r0000gn/T/pip-wheel-ijxakt66/cython/setup.py'"'"'; __file__='"'"'/private/var/folders/ch/_69bcffn79s9nxnc5mzrsm4r0000gn/T/pip-wheel-ijxakt66/cython/setup.py'"'"';f=getattr(tokenize, '"'"'open'"'"', open)(__file__);code=f.read().replace('"'"'\r\n'"'"', '"'"'\n'"'"');f.close();exec(compile(code, __file__, '"'"'exec'"'"'))' bdist_wheel -d /private/var/folders/ch/_69bcffn79s9nxnc5mzrsm4r0000gn/T/pip-wheel-oan20jxf
cwd: /private/var/folders/ch/_69bcffn79s9nxnc5mzrsm4r0000gn/T/pip-wheel-ijxakt66/cython/
Complete output (7 lines):
Unable to find pgen, not compiling formal grammar.
usage: setup.py [global_opts] cmd1 [cmd1_opts] [cmd2 [cmd2_opts] ...]
or: setup.py --help [cmd1 cmd2 ...]
or: setup.py --help-commands
or: setup.py cmd --help
error: invalid command 'bdist_wheel'
----------------------------------------
ERROR: Failed building wheel for cython
ERROR: Failed to build one or more wheels
Traceback (most recent call last):
File "/Users/davidsokulin/PycharmProjects/FirsProject/venv/lib/python3.8/site-packages/setuptools/installer.py", line 126, in fetch_build_egg
subprocess.check_call(cmd)
File "/Library/Frameworks/Python.framework/Versions/3.8/lib/python3.8/subprocess.py", line 364, in check_call
raise CalledProcessError(retcode, cmd)
subprocess.CalledProcessError: Command '['/Users/davidsokulin/PycharmProjects/FirsProject/venv/bin/python', '-m', 'pip', '--disable-pip-version-check', 'wheel', '--no-deps', '-w', '/var/folders/ch/_69bcffn79s9nxnc5mzrsm4r0000gn/T/tmp25x0n6e6', '--quiet', '--find-links', 'https://github.com/kivy-garden/garden/archive/master.zip', 'cython!=0.27,!=0.27.2,<=0.29.10,>=0.24']' returned non-zero exit status 1.
The above exception was the direct cause of the following exception:
Traceback (most recent call last):
File "<string>", line 1, in <module>
File "/private/var/folders/ch/_69bcffn79s9nxnc5mzrsm4r0000gn/T/pycharm-packaging/kivy/setup.py", line 1073, in <module>
setup(
File "/Users/davidsokulin/PycharmProjects/FirsProject/venv/lib/python3.8/site-packages/setuptools/__init__.py", line 152, in setup
_install_setup_requires(attrs)
File "/Users/davidsokulin/PycharmProjects/FirsProject/venv/lib/python3.8/site-packages/setuptools/__init__.py", line 147, in _install_setup_requires
dist.fetch_build_eggs(dist.setup_requires)
File "/Users/davidsokulin/PycharmProjects/FirsProject/venv/lib/python3.8/site-packages/setuptools/dist.py", line 673, in fetch_build_eggs
resolved_dists = pkg_resources.working_set.resolve(
File "/Users/davidsokulin/PycharmProjects/FirsProject/venv/lib/python3.8/site-packages/pkg_resources/__init__.py", line 764, in resolve
dist = best[req.key] = env.best_match(
File "/Users/davidsokulin/PycharmProjects/FirsProject/venv/lib/python3.8/site-packages/pkg_resources/__init__.py", line 1049, in best_match
return self.obtain(req, installer)
File "/Users/davidsokulin/PycharmProjects/FirsProject/venv/lib/python3.8/site-packages/pkg_resources/__init__.py", line 1061, in obtain
return installer(requirement)
File "/Users/davidsokulin/PycharmProjects/FirsProject/venv/lib/python3.8/site-packages/setuptools/dist.py", line 732, in fetch_build_egg
return fetch_build_egg(self, req)
File "/Users/davidsokulin/PycharmProjects/FirsProject/venv/lib/python3.8/site-packages/setuptools/installer.py", line 128, in fetch_build_egg
raise DistutilsError(str(e)) from e
distutils.errors.DistutilsError: Command '['/Users/davidsokulin/PycharmProjects/FirsProject/venv/bin/python', '-m', 'pip', '--disable-pip-version-check', 'wheel', '--no-deps', '-w', '/var/folders/ch/_69bcffn79s9nxnc5mzrsm4r0000gn/T/tmp25x0n6e6', '--quiet', '--find-links', 'https://github.com/kivy-garden/garden/archive/master.zip', 'cython!=0.27,!=0.27.2,<=0.29.10,>=0.24']' returned non-zero exit status 1.
----------------------------------------
ERROR: Command errored out with exit status 1: python setup.py egg_info Check the logs for full command output.
It seems you miss pkg-config, try with
brew install pkg-config
Related
I was trying to download a specific version of kivy on windows 10
Using the command pip install kivy==1.11.1
But unfortunately its throwing me the an error every time
I tried on python 3.8 and 3.9
Error
PS C:\Users\DELL\PycharmProjects\pythonProject5> pip install kivy==1.11.1
Collecting kivy==1.11.1
Using cached Kivy-1.11.1.tar.gz (23.6 MB)
ERROR: Command errored out with exit status 1:
command: 'C:\Users\DELL\PycharmProjects\pythonProject5\venv\Scripts\python.exe' -c 'import io, os, sys, setuptools, tokenize; sys.argv[0] = '"'"'C:\\Users\\
DELL\\AppData\\Local\\Temp\\pip-install-xzh5pn7u\\kivy_fa50084c889744ab947ceda05f1f5068\\setup.py'"'"'; __file__='"'"'C:\\Users\\DELL\\AppData\\Local\\Temp\\pip-
install-xzh5pn7u\\kivy_fa50084c889744ab947ceda05f1f5068\\setup.py'"'"';f = getattr(tokenize, '"'"'open'"'"', open)(__file__) if os.path.exists(__file__) else io.
StringIO('"'"'from setuptools import setup; setup()'"'"');code = f.read().replace('"'"'\r\n'"'"', '"'"'\n'"'"');f.close();exec(compile(code, __file__, '"'"'exec'
"'"'))' egg_info --egg-base 'C:\Users\DELL\AppData\Local\Temp\pip-pip-egg-info-31ligwpm'
cwd: C:\Users\DELL\AppData\Local\Temp\pip-install-xzh5pn7u\kivy_fa50084c889744ab947ceda05f1f5068\
Complete output (395 lines):
WARNING: Skipping page https://github.com/kivy-garden/garden/archive/master.zip because the HEAD request got Content-Type: application/zip.The only supported
Content-Type is text/html
ERROR: Command errored out with exit status 1:
command: 'C:\Users\DELL\PycharmProjects\pythonProject5\venv\Scripts\python.exe' -u -c 'import io, os, sys, setuptools, tokenize; sys.argv[0] = '"'"'C:\\Us
ers\\DELL\\AppData\\Local\\Temp\\pip-wheel-shrhx05n\\cython_6ddf5340cd6c4d32af23f49c9f16fd57\\setup.py'"'"'; __file__='"'"'C:\\Users\\DELL\\AppData\\Local\\Temp\
\pip-wheel-shrhx05n\\cython_6ddf5340cd6c4d32af23f49c9f16fd57\\setup.py'"'"';f = getattr(tokenize, '"'"'open'"'"', open)(__file__) if os.path.exists(__file__) els
e io.StringIO('"'"'from setuptools import setup; setup()'"'"');code = f.read().replace('"'"'\r\n'"'"', '"'"'\n'"'"');f.close();exec(compile(code, __file__, '"'"'
exec'"'"'))' bdist_wheel -d 'C:\Users\DELL\AppData\Local\Temp\pip-wheel-z42_ozzm'
cwd: C:\Users\DELL\AppData\Local\Temp\pip-wheel-shrhx05n\cython_6ddf5340cd6c4d32af23f49c9f16fd57\
Complete output (321 lines):
Unable to find pgen, not compiling formal grammar.
running bdist_wheel
packages\setuptools\installer.py", line 77, in fetch_build_egg
raise DistutilsError(str(e)) from e
distutils.errors.DistutilsError: Command '['C:\\Users\\DELL\\PycharmProjects\\pythonProject5\\venv\\Scripts\\python.exe', '-m', 'pip', '--disable-pip-versio
n-check', 'wheel', '--no-deps', '-w', 'C:\\Users\\DELL\\AppData\\Local\\Temp\\tmpmf8k8ffx', '--quiet', '--find-links', 'https://github.com/kivy-garden/garden/arc
hive/master.zip', 'cython!=0.27,!=0.27.2,<=0.29.10,>=0.24']' returned non-zero exit status 1.
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,\r\noperable program or batch file.\r\n"
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,\r\noperable program or batch file.\r\n"
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,\r\noperable program or batch file.\r\n"
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
----------------------------------------
WARNING: Discarding https://files.pythonhosted.org/packages/1b/4d/3f8a720f561dc1eabe036c0d87c6ce9d02823275391265538e606f45e37a/Kivy-1.11.1.tar.gz#sha256=4d0e596f
74271e901b551f77661dde238df4765484fce9f5d1c72e8022984e84 (from https://pypi.org/simple/kivy/). Command errored out with exit status 1: python setup.py egg_info C
heck the logs for full command output.
ERROR: Could not find a version that satisfies the requirement kivy==1.11.1 (from versions: 1.0.1a0, 1.0.2a0, 1.0.3a0, 1.0.4b0, 1.0.5, 1.0.6, 1.0.7, 1.0.8, 1.0.9
, 1.1.0, 1.1.1, 1.2.0, 1.3.0, 1.4.0, 1.4.1, 1.5.0, 1.5.1, 1.6.0, 1.7.0, 1.7.1, 1.7.2, 1.8.0, 1.9.0, 1.9.1, 1.10.0, 1.10.1, 1.11.0rc1, 1.11.0rc2, 1.11.0, 1.11.1,
2.0.0rc1, 2.0.0rc2, 2.0.0rc3, 2.0.0rc4, 2.0.0)
ERROR: No matching distribution found for kivy==1.11.1
WARNING: You are using pip version 21.1.2; however, version 21.3.1 is available.
You should consider upgrading via the 'C:\Users\DELL\PycharmProjects\pythonProject5\venv\Scripts\python.exe -m pip install --upgrade pip' command.
PS C:\Users\DELL\PycharmProjects\pythonProject5>
Note: ive discarded some lines form the error due to stackoverflow's character limit
Kivy 1.11. 0 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 .
It's for Python 2 and You're On Python 3
and You want to downgrade for that!
I am deploying a flask app in the Elastic Beanstalk environment in AWS. It works completely fine in my local, but when I upload the same to Beanstalk, I get the following error in the Log Files.
[ERROR] An error occurred during execution of command [app-deploy] - [InstallDependency]. Stop running the command. Error: fail to install dependencies with requirements.txt file with error Command /bin/sh -c /var/app/venv/staging-LQM1lest/bin/pip install -r requirements.txt failed with error exit status 1. Stderr: ERROR: Command errored out with exit status 1:
command: /var/app/venv/staging-LQM1lest/bin/python -c 'import sys, setuptools, tokenize; sys.argv[0] = '"'"'/tmp/pip-install-tu8sxhxj/mysqlclient_f51fe93483714a68ae43574db1c80ed5/setup.py'"'"'; __file__='"'"'/tmp/pip-install-tu8sxhxj/mysqlclient_f51fe93483714a68ae43574db1c80ed5/setup.py'"'"';f=getattr(tokenize, '"'"'open'"'"', open)(__file__);code=f.read().replace('"'"'\r\n'"'"', '"'"'\n'"'"');f.close();exec(compile(code, __file__, '"'"'exec'"'"'))' egg_info --egg-base /tmp/pip-pip-egg-info-abr_xfaw
cwd: /tmp/pip-install-tu8sxhxj/mysqlclient_f51fe93483714a68ae43574db1c80ed5/
Complete output (15 lines):
/bin/sh: mysql_config: command not found
/bin/sh: mariadb_config: command not found
/bin/sh: mysql_config: command not found
Traceback (most recent call last):
File "<string>", line 1, in <module>
File "/tmp/pip-install-tu8sxhxj/mysqlclient_f51fe93483714a68ae43574db1c80ed5/setup.py", line 15, in <module>
metadata, options = get_config()
File "/tmp/pip-install-tu8sxhxj/mysqlclient_f51fe93483714a68ae43574db1c80ed5/setup_posix.py", line 70, in get_config
libs = mysql_config("libs")
File "/tmp/pip-install-tu8sxhxj/mysqlclient_f51fe93483714a68ae43574db1c80ed5/setup_posix.py", line 31, in mysql_config
raise OSError("{} not found".format(_mysql_config_path))
OSError: mysql_config not found
mysql_config --version
mariadb_config --version
mysql_config --libs
----------------------------------------
WARNING: Discarding https://files.pythonhosted.org/packages/3c/df/59cd2fa5e48d0804d213bdcb1acb4d08c403b61c7ff7ed4dd4a6a2deb3f7/mysqlclient-2.0.3.tar.gz#sha256=f6ebea7c008f155baeefe16c56cd3ee6239f7a5a9ae42396c2f1860f08a7c432 (from https://pypi.org/simple/mysqlclient/) (requires-python:>=3.5). Command errored out with exit status 1: python setup.py egg_info Check the logs for full command output.
ERROR: Could not find a version that satisfies the requirement mysqlclient==2.0.3
ERROR: No matching distribution found for mysqlclient==2.0.3
2021/04/04 16:02:21.681275 [INFO] Executing cleanup logic
2021/04/04 16:02:21.681366 [INFO] CommandService Response: {"status":"FAILURE","api_version":"1.0","results":[{"status":"FAILURE","msg":"Engine execution has encountered an error.","returncode":1,"events":[{"msg":"Instance deployment failed to install application dependencies. The deployment failed.","timestamp":1617552141,"severity":"ERROR"},{"msg":"Instance deployment failed. For details, see 'eb-engine.log'.","timestamp":1617552141,"severity":"ERROR"}]}]}
My requirements.txt file is as below:
aniso8601==8.0.0
click==7.1.2
Flask==1.1.2
Flask-JWT==0.3.2
Flask-MySQLdb==0.2.0
Flask-RESTful==0.3.8
Flask-SQLAlchemy==2.4.3
itsdangerous==1.1.0
Jinja2==2.11.2
MarkupSafe==1.1.1
mysqlclient==2.0.3
PyJWT==1.4.2
pytz==2020.1
six==1.15.0
SQLAlchemy==1.3.18
Werkzeug==1.0.1
Even when I tried doing pip install -r requirements.txt for the first time in my local, I faced the same issue.
However, I resolved it using the following steps
1. $ brew install mysql
2. $ pip install mysqlclient
I assume something similar needs to be done in the server. Can someone help me figure out how can this be run in the server?
This question already has answers here:
How to deal with Kivy installing error in Python 3.8?
(5 answers)
Closed 2 years ago.
I am trying to install kivy which does not support Python 3.8.
I have an app made on kivy on Windows 10. I am trying to build an apk. After following the instructions I figured I have Python 3.8 installed and always got an error when trying to install kivy on the VM LUbuntu.
I get this error when I try to install kivy using the sudo pip3 install kivy command.
raise DistutilsError(str(e))
distutils.errors.DistutilsError: Command '['/usr/bin/python3', '-m', 'pip', '--disable-pip-version-check', 'wheel', '--no-deps', '-w', '/tmp/tmpq9k_yp5j', '--quiet', '--find-links', 'https://github.com/kivy-garden/garden/archive/master.zip', 'cython!=0.27,!=0.27.2,<=0.29.10,>=0.24']' returned non-zero exit status 1.
Using setuptools
Using this graphics system: OpenGL
WARNING: A problem occurred while running pkg-config --libs --cflags gstreamer-1.0 (code 1)
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"
WARNING: A problem occurred while running pkg-config --libs --cflags sdl2 SDL2_ttf SDL2_image SDL2_mixer (code 1)
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"
WARNING: A problem occurred while running pkg-config --libs --cflags pangoft2 (code 1)
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"
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.
How should I downgrade to Python 3.7?
Python 3.8: Try this
pip3 install kivy kivy_examples --pre --extra-index-url https://kivy.org/downloads/simple/
How about uninstalling Python 3.8 and then download the setup of Python 3.7 and install it.
Recently I was trying to install kivy library to use in one project, I've followed this tutorial from official website of the library:
https://kivy.org/doc/stable/installation/installation-windows.html
But,nonetheless, I get a lot of errors from windows cmd terminal:
command:
'C:\Users\lucas\AppData\Local\Programs\Python\Python38\python.exe' -u
-c 'import sys, setuptools, tokenize; sys.argv[0] = '"'"'C:\\Users\\lucas\\AppData\\Local\\Temp\\pip-install-7kupr225\\kivy\\setup.py'"'"';
__file__='"'"'C:\\Users\\lucas\\AppData\\Local\\Temp\\pip-install-7kupr225\\kivy\\setup.py'"'"';f=getattr(tokenize,
'"'"'open'"'"', open)(__file__);code=f.read().replace('"'"'\r\n'"'"',
'"'"'\n'"'"');f.close();exec(compile(code, __file__, '"'"'exec'"'"'))'
bdist_wheel -d 'C:\Users\lucas\AppData\Local\Temp\pip-wheel-qwvz28d8'
cwd: C:\Users\lucas\AppData\Local\Temp\pip-install-7kupr225\kivy\
Complete output (531 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"Package gstreamer-1.0 was not found in the pkg-config search
path.\r\nPerhaps you should add the directory containing
`gstreamer-1.0.pc'\r\nto the PKG_CONFIG_PATH environment
variable\r\nNo package 'gstreamer-1.0' found\r\n"
WARNING: A problem occurred while running pkg-config --libs --cflags
gstreamer-1.0 (code 1)
b"Package gstreamer-1.0 was not found in the pkg-config search
path.\r\nPerhaps you should add the directory containing
`gstreamer-1.0.pc'\r\nto the PKG_CONFIG_PATH environment
variable\r\nNo package 'gstreamer-1.0' found\r\n"
WARNING: A problem occurred while running pkg-config --libs --cflags
sdl2 SDL2_ttf SDL2_image SDL2_mixer (code 1)
b"Package sdl2 was not found in the pkg-config search
path.\r\nPerhaps you should add the directory containing
`sdl2.pc'\r\nto the PKG_CONFIG_PATH environment variable\r\nNo package
'sdl2' found\r\nPackage SDL2_ttf was not found in the pkg-config
search path.\r\nPerhaps you should add the directory containing
`SDL2_ttf.pc'\r\nto the PKG_CONFIG_PATH environment variable\r\nNo
package 'SDL2_ttf' found\r\nPackage SDL2_image was not found in the
pkg-config search path.\r\nPerhaps you should add the directory
containing `SDL2_image.pc'\r\nto the PKG_CONFIG_PATH environment
variable\r\nNo package 'SDL2_image' found\r\nPackage SDL2_mixer was
not found in the pkg-config search path.\r\nPerhaps you should add the
directory containing `SDL2_mixer.pc'\r\nto the PKG_CONFIG_PATH
environment variable\r\nNo package 'SDL2_mixer' found\r\n"
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
build_ext ---------------------------------------- ERROR: Failed
building wheel for kivy```
**other errors:**
-----------------
Others error:
ERROR: Command errored out with exit status 3221225477:
command: 'C:\Users\lucas\kivy_venv\Scripts\python.exe' -u -c 'import sys, setuptools, tokenize; sys.argv[0] = '"'"'C:\\Users\\lucas\\AppData\\Local\\Temp\\pip-install-gqowcu2q\\kivy\\setup.py'"'"';
__file__='"'"'C:\\Users\\lucas\\AppData\\Local\\Temp\\pip-install-gqowcu2q\\kivy\\setup.py'"'"';f=getattr(tokenize, '"'"'open'"'"', open)(__file__);code=f.read().replace('"'"'\r\n'"'"', '"'"'\n'"'"');f.close();exec(compile(code, __file__, '"'"'exec'"'"'))' install --record 'C:\Users\lucas\AppData\Local\Temp\pip-record-_9otg0p0\install-record.txt'
--single-version-externally-managed --compile --install-headers 'C:\Users\lucas\kivy_venv\include\site\python3.8\kivy'
cwd: C:\Users\lucas\AppData\Local\Temp\pip-install-gqowcu2q\kivy\
Complete output (513 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' n\xc6o \x82 reconhecido como um comando interno\r\nou externo, um programa oper\xa0vel ou um arquivo em lotes.\r\n"
WARNING: A problem occurred while running pkg-config --libs --cflags gstreamer-1.0 (code 1)
b"'pkg-config' n\xc6o \x82 reconhecido como um comando interno\r\nou externo, um programa oper\xa0vel ou um arquivo em lotes.\r\n"
WARNING: A problem occurred while running pkg-config --libs --cflags sdl2 SDL2_ttf SDL2_image SDL2_mixer (code 1)
b"'pkg-config' n\xc6o \x82 reconhecido como um comando interno\r\nou externo, um programa oper\xa0vel ou um arquivo em lotes.\r\n"
fatal: not a git repository (or any of the parent directories): .git
---------------------------------------- ERROR: Command errored out with exit status 3221225477: 'C:\Users\lucas\kivy_venv\Scripts\python.exe' -u -c 'import sys, setuptools, tokenize; sys.argv[0] = '"'"'C:\\Users\\lucas\\AppData\\Local\\Temp\\pip-install-gqowcu2q\\kivy\\setup.py'"'"';
__file__='"'"'C:\\Users\\lucas\\AppData\\Local\\Temp\\pip-install-gqowcu2q\\kivy\\setup.py'"'"';f=getattr(tokenize, '"'"'open'"'"', open)(__file__);code=f.read().replace('"'"'\r\n'"'"', '"'"'\n'"'"');f.close();exec(compile(code, __file__, '"'"'exec'"'"'))' install --record 'C:\Users\lucas\AppData\Local\Temp\pip-record-_9otg0p0\install-record.txt'
--single-version-externally-managed --compile --install-headers 'C:\Users\lucas\kivy_venv\include\site\python3.8\kivy' Check the logs for full command output.```
I've tried to install in anaconda terminal too, the installing looks good , the terminal said that it was successfully, but when I try to run it in the spyder, I've got theses traceback errors:
enter code here Reloaded modules: ai [WARNING] [Lang ] The
file C:\Users\lucas\OneDrive\Documentos\Artificial IntelligentA-Z -
Learn how to bulid an AI\Code
templates\P20-Self-Driving-Car\Self_Driving_Car\car.kv is loaded
multiples times, you might have unwanted behaviors. [CRITICAL] [App
Unable to get a Window, abort. An exception has occurred, use %tb to
see the full traceback
I use these commands:
>python -m pip uninstall -y kivy.deps.glew kivy.deps.gstreamer
kivy.deps.sdl2 kivy.deps.angle
>python -m pip install --upgrade pip wheel setuptools virtualenv
>python -m virtualenv kivy_venv
>ivy_venv\Scripts\activate
>source kivy_venv/Scripts/activate
>python -m pip install docutils pygments pypiwin32 >kivy_deps.sdl2==0.1.*
>kivy_deps.glew==0.1.*
>python -m pip install kivy_deps.gstreamer==0.1.*
>python -m pip install kivy==1.11.1
Note
My python version is 3.8
Anaconda version is 3.7
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!
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/
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()
This works in macOS Catalina 10.15.6 with python 3.8.0+
pip install kivy==2.0.0rc2
If you are using conda environment:
conda install -c conda-forge kivy
works in python 3.8
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