Bottom Page

Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
 [Kivy] [CRITICAL] [App ] Unable to get a Text provider, abort.
#1
Error message:

Quote:C:\Users\[USERNAME]\PycharmProjects\practice\venv\installkivy\Scripts\python.exe C:/Users/[USERNAME]/PycharmProjects/kivia/venv/installkivy/never_name_a_file_kivy.py
[INFO ] [Logger ] Record log in C:\Users\[USERNAME]\.kivy\logs\kivy_19-03-29_41.txt
[INFO ] [Kivy ] v1.10.1
[INFO ] [Python ] v3.7.3 (v3.7.3:ef4ec6ed12, Mar 25 2019, 22:22:05) [MSC v.1916 64 bit (AMD64)]
[INFO ] [Factory ] 194 symbols loaded
[INFO ] [Image ] Providers: img_tex, img_dds, img_gif (img_sdl2, img_pil, img_ffpyplayer ignored)
[CRITICAL] [Text ] Unable to find any valuable Text provider.
sdl2 - ImportError: DLL load failed: The specified module could not be found.
File "C:\Users\[USERNAME]\PycharmProjects\practice\venv\installkivy\lib\site-packages\kivy\core\__init__.py", line 59, in core_select_lib
fromlist=[modulename], level=0)
File "C:\Users\[USERNAME]\PycharmProjects\practice\venv\installkivy\lib\site-packages\kivy\core\text\text_sdl2.py", line 12, in <module>
from kivy.core.text._text_sdl2 import (_SurfaceContainer, _get_extents,

pil - ModuleNotFoundError: No module named 'PIL'
File "C:\Users\[USERNAME]\PycharmProjects\practice\venv\installkivy\lib\site-packages\kivy\core\__init__.py", line 59, in core_select_lib
fromlist=[modulename], level=0)
File "C:\Users\[USERNAME]\PycharmProjects\practice\venv\installkivy\lib\site-packages\kivy\core\text\text_pil.py", line 7, in <module>
from PIL import Image, ImageFont, ImageDraw

[CRITICAL] [App ] Unable to get a Text provider, abort.

Code:

import kivy
from kivy.app import App
from kivy.uix.label import Label

class MyApp(App):
    def build(self):
        return Label(text="Hello, World.")

if __name__ == "__main__":
    MyApp().run()
What am I doing wrong?

References:

Kivy Tutorial #1 - How to Create Mobile Apps With Python

Update: I should mention that there was a problem with PyCharm recognizing Kivy, which I solved by following these instructions. I was able to follow them exactly, except I wasn't able to install the 0.25.2 version of cython without getting an error, so in the end I had to install the default one, which had a higher number. I don't know if that matters.
Quote
#2
https://github.com/kivy/kivy/issues/6022 Wrote:try this:
pip install --upgraade pip wheel setuptools
pip install docutils pygments pypiwin32 kivy.deps.sdl2 kivy.deps.glew
pip install kivy.deps.gstreamer
pip install kivy.deps.angle
pip install --upgrade kivy
Quote
#3
(Mar-29-2019, 09:36 PM)Yoriz Wrote:
https://github.com/kivy/kivy/issues/6022 Wrote:try this:
pip install --upgraade pip wheel setuptools
pip install docutils pygments pypiwin32 kivy.deps.sdl2 kivy.deps.glew
pip install kivy.deps.gstreamer
pip install kivy.deps.angle
pip install --upgrade kivy

After I ran pip install --upgrade pip wheel setuptools, I got this error:

Quote:Could not find a version that satisfies the requirement setuptool (from versions: )
No matching distribution found for setuptool

The others returned this message:

Quote:Requirement already satisfied, skipping upgrade:

And I still get the same error when I run the program.

I should mention that there was a problem with PyCharm recognizing Kivy, which I solved by following these instructions. I was able to follow them exactly, except I wasn't able to install the 0.25.2 version of cython without getting an error, so in the end I had to install the default one, which had a higher number. I don't know if that matters.
Quote
#4
I'm still having a heck of a time getting Kivy to work in Pycharm. I'm following these instructions--Kivy Virtual Environment Installation using PyCharm--but when I try to install the 0.25.2 version of cython, as they say to do, I get an invalid-syntax error:

Quote:Collecting Cython==0.25.2
Downloading https://files.pythonhosted.org/packages/...5.2.tar.gz (1.7MB)
Installing collected packages: Cython
Running setup.py install for Cython: started
Running setup.py install for Cython: finished with status 'error'
Complete output from command C:\Users\Exsul\PycharmProjects\kivyinstall\Scripts\python.exe -u -c "import setuptools, tokenize;__file__='C:\\Users\\Exsul\\AppData\\Local\\Temp\\pycharm-packaging\\Cython\\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\Exsul\AppData\Local\Temp\pip-record-02mxxfpt\install-record.txt --single-version-externally-managed --compile --install-headers C:\Users\Exsul\PycharmProjects\kivyinstall\include\site\python3.7\Cython:
Unable to find pgen, not compiling formal grammar.
running install
running build
running build_py
creating build
creating build\lib.win-amd64-3.7
copying cython.py -> build\lib.win-amd64-3.7
creating build\lib.win-amd64-3.7\Cython
copying Cython\CodeWriter.py -> build\lib.win-amd64-3.7\Cython
copying Cython\Coverage.py -> build\lib.win-amd64-3.7\Cython
copying Cython\Debugging.py -> build\lib.win-amd64-3.7\Cython
copying Cython\Shadow.py -> build\lib.win-amd64-3.7\Cython
copying Cython\StringIOTree.py -> build\lib.win-amd64-3.7\Cython
copying Cython\TestUtils.py -> build\lib.win-amd64-3.7\Cython
copying Cython\Utils.py -> build\lib.win-amd64-3.7\Cython
copying Cython\__init__.py -> build\lib.win-amd64-3.7\Cython
creating build\lib.win-amd64-3.7\Cython\Build
copying Cython\Build\BuildExecutable.py -> build\lib.win-amd64-3.7\Cython\Build
copying Cython\Build\Cythonize.py -> build\lib.win-amd64-3.7\Cython\Build
copying Cython\Build\Dependencies.py -> build\lib.win-amd64-3.7\Cython\Build
copying Cython\Build\Distutils.py -> build\lib.win-amd64-3.7\Cython\Build
copying Cython\Build\Inline.py -> build\lib.win-amd64-3.7\Cython\Build
copying Cython\Build\IpythonMagic.py -> build\lib.win-amd64-3.7\Cython\Build
copying Cython\Build\__init__.py -> build\lib.win-amd64-3.7\Cython\Build
creating build\lib.win-amd64-3.7\Cython\Compiler
copying Cython\Compiler\AnalysedTreeTransforms.py -> build\lib.win-amd64-3.7\Cython\Compiler
copying Cython\Compiler\Annotate.py -> build\lib.win-amd64-3.7\Cython\Compiler
copying Cython\Compiler\AutoDocTransforms.py -> build\lib.win-amd64-3.7\Cython\Compiler
copying Cython\Compiler\Buffer.py -> build\lib.win-amd64-3.7\Cython\Compiler
copying Cython\Compiler\Builtin.py -> build\lib.win-amd64-3.7\Cython\Compiler
copying Cython\Compiler\CmdLine.py -> build\lib.win-amd64-3.7\Cython\Compiler
copying Cython\Compiler\Code.py -> build\lib.win-amd64-3.7\Cython\Compiler
copying Cython\Compiler\CodeGeneration.py -> build\lib.win-amd64-3.7\Cython\Compiler
copying Cython\Compiler\CythonScope.py -> build\lib.win-amd64-3.7\Cython\Compiler
copying Cython\Compiler\DebugFlags.py -> build\lib.win-amd64-3.7\Cython\Compiler
copying Cython\Compiler\Errors.py -> build\lib.win-amd64-3.7\Cython\Compiler
copying Cython\Compiler\ExprNodes.py -> build\lib.win-amd64-3.7\Cython\Compiler
copying Cython\Compiler\FlowControl.py -> build\lib.win-amd64-3.7\Cython\Compiler
copying Cython\Compiler\FusedNode.py -> build\lib.win-amd64-3.7\Cython\Compiler
copying Cython\Compiler\Future.py -> build\lib.win-amd64-3.7\Cython\Compiler
copying Cython\Compiler\Interpreter.py -> build\lib.win-amd64-3.7\Cython\Compiler
copying Cython\Compiler\Lexicon.py -> build\lib.win-amd64-3.7\Cython\Compiler
copying Cython\Compiler\Main.py -> build\lib.win-amd64-3.7\Cython\Compiler
copying Cython\Compiler\MemoryView.py -> build\lib.win-amd64-3.7\Cython\Compiler
copying Cython\Compiler\ModuleNode.py -> build\lib.win-amd64-3.7\Cython\Compiler
copying Cython\Compiler\Naming.py -> build\lib.win-amd64-3.7\Cython\Compiler
copying Cython\Compiler\Nodes.py -> build\lib.win-amd64-3.7\Cython\Compiler
copying Cython\Compiler\Optimize.py -> build\lib.win-amd64-3.7\Cython\Compiler
copying Cython\Compiler\Options.py -> build\lib.win-amd64-3.7\Cython\Compiler
copying Cython\Compiler\ParseTreeTransforms.py -> build\lib.win-amd64-3.7\Cython\Compiler
copying Cython\Compiler\Parsing.py -> build\lib.win-amd64-3.7\Cython\Compiler
copying Cython\Compiler\Pipeline.py -> build\lib.win-amd64-3.7\Cython\Compiler
copying Cython\Compiler\PyrexTypes.py -> build\lib.win-amd64-3.7\Cython\Compiler
copying Cython\Compiler\Scanning.py -> build\lib.win-amd64-3.7\Cython\Compiler
copying Cython\Compiler\StringEncoding.py -> build\lib.win-amd64-3.7\Cython\Compiler
copying Cython\Compiler\Symtab.py -> build\lib.win-amd64-3.7\Cython\Compiler
copying Cython\Compiler\TreeFragment.py -> build\lib.win-amd64-3.7\Cython\Compiler
copying Cython\Compiler\TreePath.py -> build\lib.win-amd64-3.7\Cython\Compiler
copying Cython\Compiler\TypeInference.py -> build\lib.win-amd64-3.7\Cython\Compiler
copying Cython\Compiler\TypeSlots.py -> build\lib.win-amd64-3.7\Cython\Compiler
copying Cython\Compiler\UtilityCode.py -> build\lib.win-amd64-3.7\Cython\Compiler
copying Cython\Compiler\UtilNodes.py -> build\lib.win-amd64-3.7\Cython\Compiler
copying Cython\Compiler\Version.py -> build\lib.win-amd64-3.7\Cython\Compiler
copying Cython\Compiler\Visitor.py -> build\lib.win-amd64-3.7\Cython\Compiler
copying Cython\Compiler\__init__.py -> build\lib.win-amd64-3.7\Cython\Compiler
creating build\lib.win-amd64-3.7\Cython\Runtime
copying Cython\Runtime\__init__.py -> build\lib.win-amd64-3.7\Cython\Runtime
creating build\lib.win-amd64-3.7\Cython\Distutils
copying Cython\Distutils\build_ext.py -> build\lib.win-amd64-3.7\Cython\Distutils
copying Cython\Distutils\extension.py -> build\lib.win-amd64-3.7\Cython\Distutils
copying Cython\Distutils\old_build_ext.py -> build\lib.win-amd64-3.7\Cython\Distutils
copying Cython\Distutils\__init__.py -> build\lib.win-amd64-3.7\Cython\Distutils
creating build\lib.win-amd64-3.7\Cython\Plex
copying Cython\Plex\Actions.py -> build\lib.win-amd64-3.7\Cython\Plex
copying Cython\Plex\DFA.py -> build\lib.win-amd64-3.7\Cython\Plex
copying Cython\Plex\Errors.py -> build\lib.win-amd64-3.7\Cython\Plex
copying Cython\Plex\Lexicons.py -> build\lib.win-amd64-3.7\Cython\Plex
copying Cython\Plex\Machines.py -> build\lib.win-amd64-3.7\Cython\Plex
copying Cython\Plex\Regexps.py -> build\lib.win-amd64-3.7\Cython\Plex
copying Cython\Plex\Scanners.py -> build\lib.win-amd64-3.7\Cython\Plex
copying Cython\Plex\Timing.py -> build\lib.win-amd64-3.7\Cython\Plex
copying Cython\Plex\Traditional.py -> build\lib.win-amd64-3.7\Cython\Plex
copying Cython\Plex\Transitions.py -> build\lib.win-amd64-3.7\Cython\Plex
copying Cython\Plex\__init__.py -> build\lib.win-amd64-3.7\Cython\Plex
creating build\lib.win-amd64-3.7\Cython\Tests
copying Cython\Tests\TestCodeWriter.py -> build\lib.win-amd64-3.7\Cython\Tests
copying Cython\Tests\TestJediTyper.py -> build\lib.win-amd64-3.7\Cython\Tests
copying Cython\Tests\TestStringIOTree.py -> build\lib.win-amd64-3.7\Cython\Tests
copying Cython\Tests\xmlrunner.py -> build\lib.win-amd64-3.7\Cython\Tests
copying Cython\Tests\__init__.py -> build\lib.win-amd64-3.7\Cython\Tests
creating build\lib.win-amd64-3.7\Cython\Build\Tests
copying Cython\Build\Tests\TestInline.py -> build\lib.win-amd64-3.7\Cython\Build\Tests
copying Cython\Build\Tests\TestIpythonMagic.py -> build\lib.win-amd64-3.7\Cython\Build\Tests
copying Cython\Build\Tests\TestStripLiterals.py -> build\lib.win-amd64-3.7\Cython\Build\Tests
copying Cython\Build\Tests\__init__.py -> build\lib.win-amd64-3.7\Cython\Build\Tests
creating build\lib.win-amd64-3.7\Cython\Compiler\Tests
copying Cython\Compiler\Tests\TestBuffer.py -> build\lib.win-amd64-3.7\Cython\Compiler\Tests
copying Cython\Compiler\Tests\TestCmdLine.py -> build\lib.win-amd64-3.7\Cython\Compiler\Tests
copying Cython\Compiler\Tests\TestFlowControl.py -> build\lib.win-amd64-3.7\Cython\Compiler\Tests
copying Cython\Compiler\Tests\TestGrammar.py -> build\lib.win-amd64-3.7\Cython\Compiler\Tests
copying Cython\Compiler\Tests\TestMemView.py -> build\lib.win-amd64-3.7\Cython\Compiler\Tests
copying Cython\Compiler\Tests\TestParseTreeTransforms.py -> build\lib.win-amd64-3.7\Cython\Compiler\Tests
copying Cython\Compiler\Tests\TestSignatureMatching.py -> build\lib.win-amd64-3.7\Cython\Compiler\Tests
copying Cython\Compiler\Tests\TestTreeFragment.py -> build\lib.win-amd64-3.7\Cython\Compiler\Tests
copying Cython\Compiler\Tests\TestTreePath.py -> build\lib.win-amd64-3.7\Cython\Compiler\Tests
copying Cython\Compiler\Tests\TestUtilityLoad.py -> build\lib.win-amd64-3.7\Cython\Compiler\Tests
copying Cython\Compiler\Tests\TestVisitor.py -> build\lib.win-amd64-3.7\Cython\Compiler\Tests
copying Cython\Compiler\Tests\__init__.py -> build\lib.win-amd64-3.7\Cython\Compiler\Tests
creating build\lib.win-amd64-3.7\Cython\Utility
copying Cython\Utility\__init__.py -> build\lib.win-amd64-3.7\Cython\Utility
creating build\lib.win-amd64-3.7\Cython\Tempita
copying Cython\Tempita\compat3.py -> build\lib.win-amd64-3.7\Cython\Tempita
copying Cython\Tempita\_looper.py -> build\lib.win-amd64-3.7\Cython\Tempita
copying Cython\Tempita\_tempita.py -> build\lib.win-amd64-3.7\Cython\Tempita
copying Cython\Tempita\__init__.py -> build\lib.win-amd64-3.7\Cython\Tempita
creating build\lib.win-amd64-3.7\pyximport
copying pyximport\pyxbuild.py -> build\lib.win-amd64-3.7\pyximport
copying pyximport\pyximport.py -> build\lib.win-amd64-3.7\pyximport
copying pyximport\__init__.py -> build\lib.win-amd64-3.7\pyximport
creating build\lib.win-amd64-3.7\Cython\Debugger
copying Cython\Debugger\Cygdb.py -> build\lib.win-amd64-3.7\Cython\Debugger
copying Cython\Debugger\DebugWriter.py -> build\lib.win-amd64-3.7\Cython\Debugger
copying Cython\Debugger\libcython.py -> build\lib.win-amd64-3.7\Cython\Debugger
copying Cython\Debugger\libpython.py -> build\lib.win-amd64-3.7\Cython\Debugger
copying Cython\Debugger\__init__.py -> build\lib.win-amd64-3.7\Cython\Debugger
creating build\lib.win-amd64-3.7\Cython\Debugger\Tests
copying Cython\Debugger\Tests\TestLibCython.py -> build\lib.win-amd64-3.7\Cython\Debugger\Tests
copying Cython\Debugger\Tests\test_libcython_in_gdb.py -> build\lib.win-amd64-3.7\Cython\Debugger\Tests
copying Cython\Debugger\Tests\test_libpython_in_gdb.py -> build\lib.win-amd64-3.7\Cython\Debugger\Tests
copying Cython\Debugger\Tests\__init__.py -> build\lib.win-amd64-3.7\Cython\Debugger\Tests
creating build\lib.win-amd64-3.7\Cython\Includes
copying Cython\Includes\openmp.pxd -> build\lib.win-amd64-3.7\Cython\Includes
creating build\lib.win-amd64-3.7\Cython\Includes\cpython
copying Cython\Includes\cpython\array.pxd -> build\lib.win-amd64-3.7\Cython\Includes\cpython
copying Cython\Includes\cpython\bool.pxd -> build\lib.win-amd64-3.7\Cython\Includes\cpython
copying Cython\Includes\cpython\buffer.pxd -> build\lib.win-amd64-3.7\Cython\Includes\cpython
copying Cython\Includes\cpython\bytes.pxd -> build\lib.win-amd64-3.7\Cython\Includes\cpython
copying Cython\Includes\cpython\cobject.pxd -> build\lib.win-amd64-3.7\Cython\Includes\cpython
copying Cython\Includes\cpython\complex.pxd -> build\lib.win-amd64-3.7\Cython\Includes\cpython
copying Cython\Includes\cpython\datetime.pxd -> build\lib.win-amd64-3.7\Cython\Includes\cpython
copying Cython\Includes\cpython\dict.pxd -> build\lib.win-amd64-3.7\Cython\Includes\cpython
copying Cython\Includes\cpython\exc.pxd -> build\lib.win-amd64-3.7\Cython\Includes\cpython
copying Cython\Includes\cpython\float.pxd -> build\lib.win-amd64-3.7\Cython\Includes\cpython
copying Cython\Includes\cpython\function.pxd -> build\lib.win-amd64-3.7\Cython\Includes\cpython
copying Cython\Includes\cpython\getargs.pxd -> build\lib.win-amd64-3.7\Cython\Includes\cpython
copying Cython\Includes\cpython\instance.pxd -> build\lib.win-amd64-3.7\Cython\Includes\cpython
copying Cython\Includes\cpython\int.pxd -> build\lib.win-amd64-3.7\Cython\Includes\cpython
copying Cython\Includes\cpython\iterator.pxd -> build\lib.win-amd64-3.7\Cython\Includes\cpython
copying Cython\Includes\cpython\list.pxd -> build\lib.win-amd64-3.7\Cython\Includes\cpython
copying Cython\Includes\cpython\long.pxd -> build\lib.win-amd64-3.7\Cython\Includes\cpython
copying Cython\Includes\cpython\longintrepr.pxd -> build\lib.win-amd64-3.7\Cython\Includes\cpython
copying Cython\Includes\cpython\mapping.pxd -> build\lib.win-amd64-3.7\Cython\Includes\cpython
copying Cython\Includes\cpython\mem.pxd -> build\lib.win-amd64-3.7\Cython\Includes\cpython
copying Cython\Includes\cpython\method.pxd -> build\lib.win-amd64-3.7\Cython\Includes\cpython
copying Cython\Includes\cpython\module.pxd -> build\lib.win-amd64-3.7\Cython\Includes\cpython
copying Cython\Includes\cpython\number.pxd -> build\lib.win-amd64-3.7\Cython\Includes\cpython
copying Cython\Includes\cpython\object.pxd -> build\lib.win-amd64-3.7\Cython\Includes\cpython
copying Cython\Includes\cpython\oldbuffer.pxd -> build\lib.win-amd64-3.7\Cython\Includes\cpython
copying Cython\Includes\cpython\pycapsule.pxd -> build\lib.win-amd64-3.7\Cython\Includes\cpython
copying Cython\Includes\cpython\pystate.pxd -> build\lib.win-amd64-3.7\Cython\Includes\cpython
copying Cython\Includes\cpython\pythread.pxd -> build\lib.win-amd64-3.7\Cython\Includes\cpython
copying Cython\Includes\cpython\ref.pxd -> build\lib.win-amd64-3.7\Cython\Includes\cpython
copying Cython\Includes\cpython\sequence.pxd -> build\lib.win-amd64-3.7\Cython\Includes\cpython
copying Cython\Includes\cpython\set.pxd -> build\lib.win-amd64-3.7\Cython\Includes\cpython
copying Cython\Includes\cpython\slice.pxd -> build\lib.win-amd64-3.7\Cython\Includes\cpython
copying Cython\Includes\cpython\string.pxd -> build\lib.win-amd64-3.7\Cython\Includes\cpython
copying Cython\Includes\cpython\tuple.pxd -> build\lib.win-amd64-3.7\Cython\Includes\cpython
copying Cython\Includes\cpython\type.pxd -> build\lib.win-amd64-3.7\Cython\Includes\cpython
copying Cython\Includes\cpython\unicode.pxd -> build\lib.win-amd64-3.7\Cython\Includes\cpython
copying Cython\Includes\cpython\version.pxd -> build\lib.win-amd64-3.7\Cython\Includes\cpython
copying Cython\Includes\cpython\weakref.pxd -> build\lib.win-amd64-3.7\Cython\Includes\cpython
copying Cython\Includes\cpython\__init__.pxd -> build\lib.win-amd64-3.7\Cython\Includes\cpython
creating build\lib.win-amd64-3.7\Cython\Includes\libc
copying Cython\Includes\libc\errno.pxd -> build\lib.win-amd64-3.7\Cython\Includes\libc
copying Cython\Includes\libc\float.pxd -> build\lib.win-amd64-3.7\Cython\Includes\libc
copying Cython\Includes\libc\limits.pxd -> build\lib.win-amd64-3.7\Cython\Includes\libc
copying Cython\Includes\libc\locale.pxd -> build\lib.win-amd64-3.7\Cython\Includes\libc
copying Cython\Includes\libc\math.pxd -> build\lib.win-amd64-3.7\Cython\Includes\libc
copying Cython\Includes\libc\setjmp.pxd -> build\lib.win-amd64-3.7\Cython\Includes\libc
copying Cython\Includes\libc\signal.pxd -> build\lib.win-amd64-3.7\Cython\Includes\libc
copying Cython\Includes\libc\stddef.pxd -> build\lib.win-amd64-3.7\Cython\Includes\libc
copying Cython\Includes\libc\stdint.pxd -> build\lib.win-amd64-3.7\Cython\Includes\libc
copying Cython\Includes\libc\stdio.pxd -> build\lib.win-amd64-3.7\Cython\Includes\libc
copying Cython\Includes\libc\stdlib.pxd -> build\lib.win-amd64-3.7\Cython\Includes\libc
copying Cython\Includes\libc\string.pxd -> build\lib.win-amd64-3.7\Cython\Includes\libc
copying Cython\Includes\libc\time.pxd -> build\lib.win-amd64-3.7\Cython\Includes\libc
copying Cython\Includes\libc\__init__.pxd -> build\lib.win-amd64-3.7\Cython\Includes\libc
creating build\lib.win-amd64-3.7\Cython\Includes\libcpp
copying Cython\Includes\libcpp\algorithm.pxd -> build\lib.win-amd64-3.7\Cython\Includes\libcpp
copying Cython\Includes\libcpp\cast.pxd -> build\lib.win-amd64-3.7\Cython\Includes\libcpp
copying Cython\Includes\libcpp\complex.pxd -> build\lib.win-amd64-3.7\Cython\Includes\libcpp
copying Cython\Includes\libcpp\deque.pxd -> build\lib.win-amd64-3.7\Cython\Includes\libcpp
copying Cython\Includes\libcpp\iterator.pxd -> build\lib.win-amd64-3.7\Cython\Includes\libcpp
copying Cython\Includes\libcpp\limits.pxd -> build\lib.win-amd64-3.7\Cython\Includes\libcpp
copying Cython\Includes\libcpp\list.pxd -> build\lib.win-amd64-3.7\Cython\Includes\libcpp
copying Cython\Includes\libcpp\map.pxd -> build\lib.win-amd64-3.7\Cython\Includes\libcpp
copying Cython\Includes\libcpp\memory.pxd -> build\lib.win-amd64-3.7\Cython\Includes\libcpp
copying Cython\Includes\libcpp\pair.pxd -> build\lib.win-amd64-3.7\Cython\Includes\libcpp
copying Cython\Includes\libcpp\queue.pxd -> build\lib.win-amd64-3.7\Cython\Includes\libcpp
copying Cython\Includes\libcpp\set.pxd -> build\lib.win-amd64-3.7\Cython\Includes\libcpp
copying Cython\Includes\libcpp\stack.pxd -> build\lib.win-amd64-3.7\Cython\Includes\libcpp
copying Cython\Includes\libcpp\string.pxd -> build\lib.win-amd64-3.7\Cython\Includes\libcpp
copying Cython\Includes\libcpp\typeindex.pxd -> build\lib.win-amd64-3.7\Cython\Includes\libcpp
copying Cython\Includes\libcpp\typeinfo.pxd -> build\lib.win-amd64-3.7\Cython\Includes\libcpp
copying Cython\Includes\libcpp\unordered_map.pxd -> build\lib.win-amd64-3.7\Cython\Includes\libcpp
copying Cython\Includes\libcpp\unordered_set.pxd -> build\lib.win-amd64-3.7\Cython\Includes\libcpp
copying Cython\Includes\libcpp\utility.pxd -> build\lib.win-amd64-3.7\Cython\Includes\libcpp
copying Cython\Includes\libcpp\vector.pxd -> build\lib.win-amd64-3.7\Cython\Includes\libcpp
copying Cython\Includes\libcpp\__init__.pxd -> build\lib.win-amd64-3.7\Cython\Includes\libcpp
creating build\lib.win-amd64-3.7\Cython\Includes\numpy
copying Cython\Includes\numpy\math.pxd -> build\lib.win-amd64-3.7\Cython\Includes\numpy
copying Cython\Includes\numpy\__init__.pxd -> build\lib.win-amd64-3.7\Cython\Includes\numpy
creating build\lib.win-amd64-3.7\Cython\Includes\posix
copying Cython\Includes\posix\dlfcn.pxd -> build\lib.win-amd64-3.7\Cython\Includes\posix
copying Cython\Includes\posix\fcntl.pxd -> build\lib.win-amd64-3.7\Cython\Includes\posix
copying Cython\Includes\posix\ioctl.pxd -> build\lib.win-amd64-3.7\Cython\Includes\posix
copying Cython\Includes\posix\mman.pxd -> build\lib.win-amd64-3.7\Cython\Includes\posix
copying Cython\Includes\posix\resource.pxd -> build\lib.win-amd64-3.7\Cython\Includes\posix
copying Cython\Includes\posix\select.pxd -> build\lib.win-amd64-3.7\Cython\Includes\posix
copying Cython\Includes\posix\signal.pxd -> build\lib.win-amd64-3.7\Cython\Includes\posix
copying Cython\Includes\posix\stat.pxd -> build\lib.win-amd64-3.7\Cython\Includes\posix
copying Cython\Includes\posix\stdio.pxd -> build\lib.win-amd64-3.7\Cython\Includes\posix
copying Cython\Includes\posix\stdlib.pxd -> build\lib.win-amd64-3.7\Cython\Includes\posix
copying Cython\Includes\posix\strings.pxd -> build\lib.win-amd64-3.7\Cython\Includes\posix
copying Cython\Includes\posix\time.pxd -> build\lib.win-amd64-3.7\Cython\Includes\posix
copying Cython\Includes\posix\types.pxd -> build\lib.win-amd64-3.7\Cython\Includes\posix
copying Cython\Includes\posix\unistd.pxd -> build\lib.win-amd64-3.7\Cython\Includes\posix
copying Cython\Includes\posix\wait.pxd -> build\lib.win-amd64-3.7\Cython\Includes\posix
copying Cython\Includes\posix\__init__.pxd -> build\lib.win-amd64-3.7\Cython\Includes\posix
copying Cython\Compiler\Code.pxd -> build\lib.win-amd64-3.7\Cython\Compiler
copying Cython\Compiler\FlowControl.pxd -> build\lib.win-amd64-3.7\Cython\Compiler
copying Cython\Compiler\ParseTreeTransforms.pxd -> build\lib.win-amd64-3.7\Cython\Compiler
copying Cython\Compiler\Parsing.pxd -> build\lib.win-amd64-3.7\Cython\Compiler
copying Cython\Compiler\Scanning.pxd -> build\lib.win-amd64-3.7\Cython\Compiler
copying Cython\Compiler\Visitor.pxd -> build\lib.win-amd64-3.7\Cython\Compiler
copying Cython\Runtime\refnanny.pyx -> build\lib.win-amd64-3.7\Cython\Runtime
copying Cython\Plex\Actions.pxd -> build\lib.win-amd64-3.7\Cython\Plex
copying Cython\Plex\Scanners.pxd -> build\lib.win-amd64-3.7\Cython\Plex
copying Cython\Utility\CConvert.pyx -> build\lib.win-amd64-3.7\Cython\Utility
copying Cython\Utility\CpdefEnums.pyx -> build\lib.win-amd64-3.7\Cython\Utility
copying Cython\Utility\CppConvert.pyx -> build\lib.win-amd64-3.7\Cython\Utility
copying Cython\Utility\MemoryView.pyx -> build\lib.win-amd64-3.7\Cython\Utility
copying Cython\Utility\TestCythonScope.pyx -> build\lib.win-amd64-3.7\Cython\Utility
copying Cython\Utility\TestCyUtilityLoader.pyx -> build\lib.win-amd64-3.7\Cython\Utility
copying Cython\Utility\Buffer.c -> build\lib.win-amd64-3.7\Cython\Utility
copying Cython\Utility\Builtins.c -> build\lib.win-amd64-3.7\Cython\Utility
copying Cython\Utility\Capsule.c -> build\lib.win-amd64-3.7\Cython\Utility
copying Cython\Utility\CMath.c -> build\lib.win-amd64-3.7\Cython\Utility
copying Cython\Utility\CommonTypes.c -> build\lib.win-amd64-3.7\Cython\Utility
copying Cython\Utility\Complex.c -> build\lib.win-amd64-3.7\Cython\Utility
copying Cython\Utility\Coroutine.c -> build\lib.win-amd64-3.7\Cython\Utility
copying Cython\Utility\CythonFunction.c -> build\lib.win-amd64-3.7\Cython\Utility
copying Cython\Utility\Embed.c -> build\lib.win-amd64-3.7\Cython\Utility
copying Cython\Utility\Exceptions.c -> build\lib.win-amd64-3.7\Cython\Utility
copying Cython\Utility\ExtensionTypes.c -> build\lib.win-amd64-3.7\Cython\Utility
copying Cython\Utility\FunctionArguments.c -> build\lib.win-amd64-3.7\Cython\Utility
copying Cython\Utility\ImportExport.c -> build\lib.win-amd64-3.7\Cython\Utility
copying Cython\Utility\MemoryView_C.c -> build\lib.win-amd64-3.7\Cython\Utility
copying Cython\Utility\ModuleSetupCode.c -> build\lib.win-amd64-3.7\Cython\Utility
copying Cython\Utility\ObjectHandling.c -> build\lib.win-amd64-3.7\Cython\Utility
copying Cython\Utility\Optimize.c -> build\lib.win-amd64-3.7\Cython\Utility
copying Cython\Utility\Overflow.c -> build\lib.win-amd64-3.7\Cython\Utility
copying Cython\Utility\Printing.c -> build\lib.win-amd64-3.7\Cython\Utility
copying Cython\Utility\Profile.c -> build\lib.win-amd64-3.7\Cython\Utility
copying Cython\Utility\StringTools.c -> build\lib.win-amd64-3.7\Cython\Utility
copying Cython\Utility\TestUtilityLoader.c -> build\lib.win-amd64-3.7\Cython\Utility
copying Cython\Utility\TypeConversion.c -> build\lib.win-amd64-3.7\Cython\Utility
copying Cython\Utility\arrayarray.h -> build\lib.win-amd64-3.7\Cython\Utility
copying Cython\Utility\CppSupport.cpp -> build\lib.win-amd64-3.7\Cython\Utility
copying Cython\Debugger\Tests\codefile -> build\lib.win-amd64-3.7\Cython\Debugger\Tests
copying Cython\Debugger\Tests\cfuncs.c -> build\lib.win-amd64-3.7\Cython\Debugger\Tests
warning: build_py: byte-compiling is disabled, skipping.

running build_ext
cythoning C:\Users\Exsul\AppData\Local\Temp\pycharm-packaging\Cython\Cython\Plex\Scanners.py to C:\Users\Exsul\AppData\Local\Temp\pycharm-packaging\Cython\Cython\Plex\Scanners.c
Traceback (most recent call last):
File "<string>", line 1, in <module>
File "C:\Users\Exsul\AppData\Local\Temp\pycharm-packaging\Cython\setup.py", line 336, in <module>
**setup_args
File "C:\Users\Exsul\PycharmProjects\kivyinstall\lib\site-packages\setuptools-39.1.0-py3.7.egg\setuptools\__init__.py", line 129, in setup
File "C:\Users\Exsul\AppData\Local\Programs\Python\Python37\lib\distutils\core.py", line 148, in setup
dist.run_commands()
File "C:\Users\Exsul\AppData\Local\Programs\Python\Python37\lib\distutils\dist.py", line 966, in run_commands
self.run_command(cmd)
File "C:\Users\Exsul\AppData\Local\Programs\Python\Python37\lib\distutils\dist.py", line 985, in run_command
cmd_obj.run()
File "C:\Users\Exsul\PycharmProjects\kivyinstall\lib\site-packages\setuptools-39.1.0-py3.7.egg\setuptools\command\install.py", line 61, in run
File "C:\Users\Exsul\AppData\Local\Programs\Python\Python37\lib\distutils\command\install.py", line 545, in run
self.run_command('build')
File "C:\Users\Exsul\AppData\Local\Programs\Python\Python37\lib\distutils\cmd.py", line 313, in run_command
self.distribution.run_command(command)
File "C:\Users\Exsul\AppData\Local\Programs\Python\Python37\lib\distutils\dist.py", line 985, in run_command
cmd_obj.run()
File "C:\Users\Exsul\AppData\Local\Programs\Python\Python37\lib\distutils\command\build.py", line 135, in run
self.run_command(cmd_name)
File "C:\Users\Exsul\AppData\Local\Programs\Python\Python37\lib\distutils\cmd.py", line 313, in run_command
self.distribution.run_command(command)
File "C:\Users\Exsul\AppData\Local\Programs\Python\Python37\lib\distutils\dist.py", line 985, in run_command
cmd_obj.run()
File "C:\Users\Exsul\AppData\Local\Temp\pycharm-packaging\Cython\Cython\Distutils\old_build_ext.py", line 185, in run
_build_ext.build_ext.run(self)
File "C:\Users\Exsul\AppData\Local\Programs\Python\Python37\lib\distutils\command\build_ext.py", line 340, in run
self.build_extensions()
File "C:\Users\Exsul\AppData\Local\Temp\pycharm-packaging\Cython\Cython\Distutils\old_build_ext.py", line 192, in build_extensions
ext.sources = self.cython_sources(ext.sources, ext)
File "C:\Users\Exsul\AppData\Local\Temp\pycharm-packaging\Cython\Cython\Distutils\old_build_ext.py", line 345, in cython_sources
full_module_name=module_name)
File "C:\Users\Exsul\AppData\Local\Temp\pycharm-packaging\Cython\Cython\Compiler\Main.py", line 684, in compile
return compile_single(source, options, full_module_name)
File "C:\Users\Exsul\AppData\Local\Temp\pycharm-packaging\Cython\Cython\Compiler\Main.py", line 634, in compile_single
return run_pipeline(source, options, full_module_name)
File "C:\Users\Exsul\AppData\Local\Temp\pycharm-packaging\Cython\Cython\Compiler\Main.py", line 455, in run_pipeline
from . import Pipeline
File "C:\Users\Exsul\AppData\Local\Temp\pycharm-packaging\Cython\Cython\Compiler\Pipeline.py", line 9, in <module>
from .Visitor import CythonTransform
File "C:\Users\Exsul\AppData\Local\Temp\pycharm-packaging\Cython\Cython\Compiler\Visitor.py", line 15, in <module>
from . import ExprNodes
File "C:\Users\Exsul\AppData\Local\Temp\pycharm-packaging\Cython\Cython\Compiler\ExprNodes.py", line 2813
await = None
^
SyntaxError: invalid syntax

----------------------------------------

Command "C:\Users\Exsul\PycharmProjects\kivyinstall\Scripts\python.exe -u -c "import setuptools, tokenize;__file__='C:\\Users\\Exsul\\AppData\\Local\\Temp\\pycharm-packaging\\Cython\\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\Exsul\AppData\Local\Temp\pip-record-02mxxfpt\install-record.txt --single-version-externally-managed --compile --install-headers C:\Users\Exsul\PycharmProjects\kivyinstall\include\site\python3.7\Cython" failed with error code 1 in C:\Users\Exsul\AppData\Local\Temp\pycharm-packaging\Cython\
You are using pip version 10.0.1, however version 19.0.3 is available.
You should consider upgrading via the 'python -m pip install --upgrade pip' command.

I get no installation error when I install the default version of cython, 0.29.6, and I don't seem to get any errors when I run import kivy:

Quote:C:\Users\Exsul\PycharmProjects\kivyinstall\Scripts\python.exe C:/Users/Exsul/PycharmProjects/kivia/not_kivia.py
[INFO ] [Logger ] Record log in C:\Users\Exsul\.kivy\logs\kivy_19-03-30_38.txt
[INFO ] [Kivy ] v1.10.1
[INFO ] [Python ] v3.7.3 (v3.7.3:ef4ec6ed12, Mar 25 2019, 22:22:05) [MSC v.1916 64 bit (AMD64)]

Process finished with exit code 0

But then when I try to run any code, e.g.,

import kivy
from kivy.app import App
from kivy.uix.label import Label

class MyApp(App):
    def build(self):
        return Label(text="Text here")

if __name__ == "__main__":
    MyApp().run()
I get these errors:

Quote:C:\Users\Exsul\PycharmProjects\kivyinstall\Scripts\python.exe C:/Users/Exsul/PycharmProjects/kivia/not_kivia.py
[INFO ] [Logger ] Record log in C:\Users\Exsul\.kivy\logs\kivy_19-03-30_39.txt
[INFO ] [Kivy ] v1.10.1
[INFO ] [Python ] v3.7.3 (v3.7.3:ef4ec6ed12, Mar 25 2019, 22:22:05) [MSC v.1916 64 bit (AMD64)]
[INFO ] [Factory ] 194 symbols loaded
[INFO ] [Image ] Providers: img_tex, img_dds, img_gif (img_sdl2, img_pil, img_ffpyplayer ignored)
[CRITICAL] [Text ] Unable to find any valuable Text provider.
sdl2 - ImportError: DLL load failed: The specified module could not be found.
File "C:\Users\Exsul\PycharmProjects\kivyinstall\lib\site-packages\kivy\core\__init__.py", line 59, in core_select_lib
fromlist=[modulename], level=0)
File "C:\Users\Exsul\PycharmProjects\kivyinstall\lib\site-packages\kivy\core\text\text_sdl2.py", line 12, in <module>
from kivy.core.text._text_sdl2 import (_SurfaceContainer, _get_extents,

pil - ModuleNotFoundError: No module named 'PIL'
File "C:\Users\Exsul\PycharmProjects\kivyinstall\lib\site-packages\kivy\core\__init__.py", line 59, in core_select_lib
fromlist=[modulename], level=0)
File "C:\Users\Exsul\PycharmProjects\kivyinstall\lib\site-packages\kivy\core\text\text_pil.py", line 7, in <module>
from PIL import Image, ImageFont, ImageDraw

[CRITICAL] [App ] Unable to get a Text provider, abort.

Process finished with exit code 1
Quote
#5
OMG, I finally figured out what was wrong. Okay, even though Kivy was installed on my machine, and worked fine in the console, it did not work in PyCharm because that, apparently, uses its own virtual environment. So I had to install each module (docutils, pygments, pypiwin32, kivy.deps.sdl2, kivy.deps.glew, kivy.deps.gstreamer, kivy) inside Pycharm itself by going to Settings > Project > Project Interpreter > Install (plus sign). Now it's working.
j.crater likes this post
Quote
#6
(Mar-30-2019, 05:54 PM)Exsul Wrote: OMG, I finally figured out what was wrong. Okay, even though Kivy was installed on my machine, and worked fine in the console, it did not work in PyCharm because that, apparently, uses its own virtual environment. So I had to install each module (docutils, pygments, pypiwin32, kivy.deps.sdl2, kivy.deps.glew, kivy.deps.gstreamer, kivy) inside Pycharm itself by going to Settings > Project > Project Interpreter > Install (plus sign). Now it's working.

YOU ARE A SAINT! THANK YOU SO MUCH THIS WORKS!!!
Exsul likes this post
Quote
#7
(Aug-16-2019, 04:36 PM)FreedomLegion Wrote:
(Mar-30-2019, 05:54 PM)Exsul Wrote: OMG, I finally figured out what was wrong. Okay, even though Kivy was installed on my machine, and worked fine in the console, it did not work in PyCharm because that, apparently, uses its own virtual environment. So I had to install each module (docutils, pygments, pypiwin32, kivy.deps.sdl2, kivy.deps.glew, kivy.deps.gstreamer, kivy) inside Pycharm itself by going to Settings > Project > Project Interpreter > Install (plus sign). Now it's working.

YOU ARE A SAINT! THANK YOU SO MUCH THIS WORKS!!!

After I figured this out, I discovered that you don't actually have to use a virtual environment in PyCharm. Just use the system interpreter.
Quote

Top Page

Possibly Related Threads...
Thread Author Replies Views Last Post
  Unable to update or refresh label text in tkinter jenkins43 3 373 Jul-24-2019, 02:09 PM
Last Post: Friend
  [Kivy] Unable to get a window, abort. hajary8 0 1,407 Dec-13-2018, 06:17 PM
Last Post: hajary8
  [Kivy] Unable to get a wiindow, abort antonmichel 2 1,445 Feb-04-2018, 10:42 AM
Last Post: antonmichel
  [Tkinter] Entry widget : unable to get the text entered dlemper 2 8,550 Oct-11-2016, 12:32 AM
Last Post: dlemper

Forum Jump:


Users browsing this thread: 1 Guest(s)