Unable to install older versions of kivy(1.11.1) - python

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!

Related

Unable to build wheels for Kivy

I am trying to install Kivy but below you can find the error log that I receive when running the installation.
I am new to Python, could someone please advise what I have done wrong? Had to cut a lot to allow it to post.
CMD:(kivy_venv) C:\Users\noodl\PycharmProjects\16Feb>python -m pip install "kivy[base] # https://github.com/kivy/kivy/archive/master.zip"
Collecting kivy[base]# https://github.com/kivy/kivy/archive/master.zip
Using cached https://github.com/kivy/kivy/archive/master.zip (24.3 MB)
Installing build dependencies ... done
Getting requirements to build wheel ... done
Preparing metadata (pyproject.toml) ... done
Collecting Kivy-Garden>=0.1.4
Using cached Kivy_Garden-0.1.5-py3-none-any.whl (4.6 kB)
Collecting docutils
Using cached docutils-0.19-py3-none-any.whl (570 kB)
Collecting pygments
Using cached Pygments-2.14.0-py3-none-any.whl (1.1 MB)
Collecting kivy-deps.angle~=0.3.2
Using cached kivy_deps.angle-0.3.3-cp311-cp311-win_amd64.whl (4.8 MB)
Collecting kivy-deps.sdl2~=0.5.0
Using cached kivy_deps.sdl2-0.5.1-cp311-cp311-win_amd64.whl (2.6 MB)
Collecting kivy-deps.glew~=0.3.1
Using cached kivy_deps.glew-0.3.1-cp311-cp311-win_amd64.whl (123 kB)
Collecting pypiwin32
Using cached pypiwin32-223-py3-none-any.whl (1.7 kB)
Collecting pillow
Using cached Pillow-9.4.0-cp311-cp311-win_amd64.whl (2.5 MB)
Collecting requests
Using cached requests-2.28.2-py3-none-any.whl (62 kB)
Collecting pywin32>=223
Using cached pywin32-305-cp311-cp311-win_amd64.whl (12.1 MB)
Collecting charset-normalizer<4,>=2
Using cached charset_normalizer-3.0.1-cp311-cp311-win_amd64.whl (96 kB)
Collecting idna<4,>=2.5Using cached idna-3.4-py3-none-any.whl (61 kB)
Collecting urllib3<1.27,>=1.21.1
Using cached urllib3-1.26.14-py2.py3-none-any.whl (140 kB)
Collecting certifi>=2017.4.17
Using cached certifi-2022.12.7-py3-none-any.whl (155 kB)
Building wheels for collected packages: kivy
Building wheel for kivy (pyproject.toml) ... error
error: subprocess-exited-with-error
Building wheel for kivy (pyproject.toml) did not run successfully.
exit code: 1
[884 lines of output]
[INFO ] [Logger ] Record log in C:\Users\noodl.kivy\logs\kivy_23-02-16_13.txt
[INFO ] [deps ] Successfully imported "kivy_deps.gstreamer_dev" 0.3.3
[INFO ] [deps ] Successfully imported "kivy_deps.gstreamer" 0.3.3
[INFO ] [deps ] Successfully imported "kivy_deps.glew" 0.3.1
[INFO ] [deps ] Successfully imported "kivy_deps.glew_dev" 0.3.1
[INFO ] [deps ] Successfully imported "kivy_deps.sdl2" 0.5.1
[INFO ] [deps ] Successfully imported "kivy_deps.sdl2_dev" 0.5.1
[INFO ] [Kivy ] v2.2.0.dev0
[INFO ] [Kivy ] Installed at "C:\Users\noodl\AppData\Local\Temp\pip-install-2a8o8ekj\kivy_f60cff3dbd194678b4fad858245dae12\kivy_init_.py"
[INFO ] [Python ] v3.11.2 (tags/v3.11.2:878ead1, Feb 7 2023, 16:38:35) [MSC v.1934 64 bit (AMD64)]
[INFO ] [Python ] Interpreter at "C:\Users\noodl\PycharmProjects\16Feb\kivy_venv\Scripts\python.exe"
[INFO ] [Logger ] Purge log fired. Processing...
[INFO ] [Logger ] Purge finished!
<string>:370: DeprecationWarning: distutils Version classes are deprecated. Use packaging.version instead.
<string>:373: DeprecationWarning: distutils Version classes are deprecated. Use packaging.version instead.
<string>:377: DeprecationWarning: distutils Version classes are deprecated. Use packaging.version instead.
Current directory is: C:\Users\noodl\AppData\Local\Temp\pip-install-2a8o8ekj\kivy_f60cff3dbd194678b4fad858245dae12
Source and initial build directory is: C:\Users\noodl\AppData\Local\Temp\pip-install-2a8o8ekj\kivy_f60cff3dbd194678b4fad858245dae12
Python path is:
C:\Users\noodl\AppData\Local\Temp\pip-install-2a8o8ekj\kivy_f60cff3dbd194678b4fad858245dae12
C:\Users\noodl\PycharmProjects\16Feb\kivy_venv\Lib\site-packages\pip\_vendor\pyproject_hooks\_in_process
C:\Users\noodl\AppData\Local\Temp\pip-build-env-v6sgt9pe\site
C:\Program Files\Python311\python311.zip
C:\Program Files\Python311\DLLs
C:\Program Files\Python311\Lib
C:\Program Files\Python311
C:\Users\noodl\AppData\Local\Temp\pip-build-env-v6sgt9pe\overlay\Lib\site-packages
C:\Users\noodl\AppData\Local\Temp\pip-build-env-v6sgt9pe\normal\Lib\site-packages
C:\Users\noodl\AppData\Local\Temp\pip-install-2a8o8ekj\kivy_f60cff3dbd194678b4fad858245dae12\kivy\modules
C:\Users\noodl\.kivy\mods
Found Cython at C:\Users\noodl\AppData\Local\Temp\pip-build-env-v6sgt9pe\overlay\Lib\site-packages\Cython\__init__.py
Detected supported Cython version 0.29.32
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"
GStreamer found via gst.h
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"
SDL2: found SDL header at C:\Users\noodl\AppData\Local\Temp\pip-build-env-v6sgt9pe\overlay\Include\SDL2\SDL.h
SDL2: found SDL_mixer header at C:\Users\noodl\AppData\Local\Temp\pip-build-env-v6sgt9pe\overlay\Include\SDL2\SDL_mixer.h
SDL2: found SDL_ttf header at C:\Users\noodl\AppData\Local\Temp\pip-build-env-v6sgt9pe\overlay\Include\SDL2\SDL_ttf.h
SDL2: found SDL_image header at C:\Users\noodl\AppData\Local\Temp\pip-build-env-v6sgt9pe\overlay\Include\SDL2\SDL_image.h
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: Dependency for boxshadow.pyx not resolved: config.pxi
[INFO ] running bdist_wheel
[INFO ] running build
[INFO ] running build_py
311\kivy\core\video[INFO ] copying kivy\core\video\video_gstplayer.py -> build\lib.win-amd64-cpython-311\kivy\core\video[INFO ] copying kivy\core\video\video_null.py -> build\lib.win-amd64-cpython-311\kivy\core\video
IC:\Program Files\Python311\Include" "-IC:\Program Files\Microsoft Visual Studio\2022\Community\VC\Tools\MSVC\14.34.31933\include" "-IC:\Program Files\Microsoft Visual Studio\2022\Community\VC\Auxiliary\VS\include" /TcC:\Users\noodl\AppData\Local\Temp\pip-install-2a8o8ekj\kivy_f60cff3dbd194678b4fad858245dae12\kivy\weakproxy.c /Fobuild\temp.win-amd64-cpython-311\Release\Users\noodl\AppData\Local\Temp\pip-install-2a8o8ekj\kivy_f60cff3dbd194678b4fad858245dae12\kivy\weakproxy.obj
_event.c
properties.c
weakproxy.c
C:\Program Files\Python311\include\pyconfig.h(59): fatal error C1083: Cannot open include file: 'io.h': No such file or directory
C:\Program Files\Python311\include\pyconfig.h(59): fatal error C1083: Cannot open include file: 'io.h': No such file or directoryC:\Program Files\Python311\include\pyconfig.h(59): fatal error C1083: Cannot open include file: 'io.h': No such file or directory
311\Release\Users\noodl\AppData\Local\Temp\pip-install-2a8o8ekj\kivy_f60cff3dbd194678b4fad858245dae12\kivy\graphics\fbo.obj
compiler.c
context_instructions.c
C:\Program Files\Python311\include\pyconfig.h(59): fatal error C1083: Cannot open include file: 'io.h': No such file or directory
fbo.c
C:\Program Files\Python311\include\pyconfig.h(59): fatal error C1083: Cannot open include file: 'io.h': No such file or directory
C:\Program Files\Python311\include\pyconfig.h(59): fatal error C1083: Cannot open include file: 'io.h': No such file or directory
[INFO ] building 'kivy.graphics.gl_instructions' extension
[INFO ] ["C ]\Program Files\Microsoft Visual
_clock.c
cgl_debug.c
C:\Program Files\Python311\include\pyconfig.h(59): fatal error C1083: Cannot open include file: 'io.h': No such file or directory
C:\Program Files\Python311\include\pyconfig.h(59): fatal error C1083: Cannot open include file: 'io.h': No such file or directory
C:\Program Files\Python311\include\pyconfig.h(59): fatal error C1083: Cannot open include file: 'io.h': No such file or directory
[INFO ] building 'kivy.core.window.window_info' extension
[INFO ] building 'kivy.graphics.tesselator' extension
[INFO ] building 'kivy.graphics.svg' extension
[INFO ] creating build\temp.win-amd64-cpython-311\Release\Users\noodl\AppData\Local\Temp\pip-install-2a8o8ekj\kivy_f60cff3dbd194678b4fad858245dae12\kivy\core\window
d64-cpython-311\Release\Users\noodl\AppData\Local\Temp\pip-install-2a8o8ekj\kivy_f60cff3dbd194678b4fad858245dae12\kivy\lib/gstplayer_gstplayer.objaudio_sdl2.cC:\Program Files\Python311\include\pyconfig.h(59): fatal error C1083: Cannot open include file: 'io.h': No such file or directoryC:\Program Files\Python311\include\pyconfig.h(59): fatal error C1083: Cannot open include file: 'io.h': No such file or directory_clipboard_sdl2.c
_gstplayer.c
C:\Program Files\Python311\include\pyconfig.h(59): fatal error C1083: Cannot open include file: 'io.h': No such file or directory
C:\Program Files\Python311\include\pyconfig.h(59): fatal error C1083: Cannot open include file: 'io.h': No such file or directory
Building extensions in parallel using 4 cores
Updated build directory to: build\lib.win-amd64-cpython-311
Build configuration is:
* use_rpi = 0
* use_egl = 0
* use_opengl_es2 = 0
* use_opengl_mock = 0
* use_sdl2 = 1
* use_pangoft2 = 0
* use_ios = 0
* use_android = 0
* use_mesagl = 0
* use_x11 = 0
* use_wayland = 0
* use_gstreamer = 1
* use_avfoundation = 0
* use_osx_frameworks = 0
* debug_gl = 0
* kivy_sdl_gl_alpha_size = 8
* debug = False
Updated build\lib.win-amd64-cpython-311\kivy\include\config.h
Updated C:\Users\noodl\AppData\Local\Temp\pip-install-2a8o8ekj\kivy_f60cff3dbd194678b4fad858245dae12\kivy\include\config.h
Updated build\lib.win-amd64-cpython-311\kivy\include\config.pxi
Updated C:\Users\noodl\AppData\Local\Temp\pip-install-2a8o8ekj\kivy_f60cff3dbd194678b4fad858245dae12\kivy\include\config.pxi
Updated build\lib.win-amd64-cpython-311\kivy\setupconfig.py
Updated C:\Users\noodl\AppData\Local\Temp\pip-install-2a8o8ekj\kivy_f60cff3dbd194678b4fad858245dae12\kivy\setupconfig.py
Detected compiler is msvc
error: command 'C:\\Program Files\\Microsoft Visual Studio\\2022\\Community\\VC\\Tools\\MSVC\\14.34.31933\\bin\\HostX86\\x64\\cl.exe' failed with exit code 2
[end of output]
note: This error originates from a subprocess, and is likely not a problem with pip.
ERROR: Failed building wheel for kivy
Failed to build kivy
ERROR: Could not build wheels for kivy, which is required to install pyproject.toml-based projects
I have reinstalled software multiple times, and made sure I followed the installation guide but no luck yet.

ERROR: command errored out with exit status 1 when installing Kivy

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

How should I downgrade to Python 3.7 from Python 3.8? [duplicate]

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.

Error installing kivy library at windows terminal and anaconda

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

How to deal with Kivy installing error in Python 3.8?

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

Categories

Resources