Re: [kivy-users] Unable to install kivy

436 views
Skip to first unread message
Message has been deleted

Bhavesh Anand

unread,
Feb 14, 2017, 8:35:44 AM2/14/17
to kivy-...@googlegroups.com
try installing the packages and dependencies by downloading their
wheels from https://pypi.python.org
it will cause no error


Bhavesh Anand
about.me/bhaveshanand


On 14 February 2017 at 18:37, <jcvalverd...@gmail.com> wrote:
> Hello, I've been trying to install kivy folowing the instructions indicated
> in the oficial url
> (https://kivy.org/docs/installation/installation-windows.html#install-win-dist)
> but errors have made it imposible to install this module. I saw in a forum
> that installing this (http://glew.sourceforge.net/index.html) maybe could
> end the problem, but it didnt. In general, the errors I can see in the
> comand promt are the following:
>
> ....
>
> C:\Program Files (x86)\Microsoft Visual Studio
> 14.0\VC\BIN\x86_amd64\link.exe /nologo /INCREMENTAL:NO /LTCG /DLL
> /MANIFEST:EMBED,ID=2 /MANIFESTUAC:NO /LIBPATH:C:\Users\USER\Anaconda3\libs
> /LIBPATH:C:\Users\USER\Anaconda3\PCbuild\amd64 "/LIBPATH:C:\Program Files
> (x86)\Microsoft Visual Studio 14.0\VC\LIB\amd64" "/LIBPATH:C:\Program Files
> (x86)\Windows Kits\10\lib\10.0.10240.0\ucrt\x64" "/LIBPATH:C:\Program Files
> (x86)\Windows Kits\NETFXSDK\4.6.1\lib\um\x64" "/LIBPATH:C:\Program Files
> (x86)\Windows Kits\8.1\lib\winv6.3\um\x64" opengl32.lib glew32.lib
> /EXPORT:PyInit_context
> build\temp.win-amd64-3.6\Release\Users\jUSER\AppData\Local\Temp\pip-build-f2z00gsx\kivy\kivy\graphics\context.obj
> /OUT:build\lib.win-amd64-3.6\kivy\graphics\context.cp36-win_amd64.pyd
> /IMPLIB:build\temp.win-amd64-3.6\Release\Users\USER\AppData\Local\Temp\pip-build-f2z00gsx\kivy\kivy\graphics\context.cp36-win_amd64.lib
> LINK : fatal error LNK1181: cannot open input file 'glew32.lib'
> error: command 'C:\\Program Files (x86)\\Microsoft Visual Studio
> 14.0\\VC\\BIN\\x86_amd64\\link.exe' failed with exit status 1181
>
> ----------------------------------------
> Failed building wheel for kivy
> Running setup.py clean for kivy
> Failed to build kivy
> Installing collected packages: kivy
> Running setup.py install for kivy ... error
> Complete output from command C:\Users\USER\Anaconda3\python.exe -u -c
> "import setuptools,
> tokenize;__file__='C:\\Users\\USER\\AppData\\Local\\Temp\\pip-build-f2z00gsx\\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\USER\Data\Local\Temp\pip-9lilpuob-record\install-record.txt
> --single-version-externally-managed --compile:
> Using distutils
>
> ....
>
> C:\Program Files (x86)\Microsoft Visual Studio
> 14.0\VC\BIN\x86_amd64\link.exe /nologo /INCREMENTAL:NO /LTCG /DLL
> /MANIFEST:EMBED,ID=2 /MANIFESTUAC:NO /LIBPATH:C:\Users\USER\Anaconda3\libs
> /LIBPATH:C:\Users\USER\Anaconda3\PCbuild\amd64 "/LIBPATH:C:\Program Files
> (x86)\Microsoft Visual Studio 14.0\VC\LIB\amd64" "/LIBPATH:C:\Program Files
> (x86)\Windows Kits\10\lib\10.0.10240.0\ucrt\x64" "/LIBPATH:C:\Program Files
> (x86)\Windows Kits\NETFXSDK\4.6.1\lib\um\x64" "/LIBPATH:C:\Program Files
> (x86)\Windows Kits\8.1\lib\winv6.3\um\x64" opengl32.lib glew32.lib
> /EXPORT:PyInit_context
> build\temp.win-amd64-3.6\Release\Users\jUSER\AppData\Local\Temp\pip-build-f2z00gsx\kivy\kivy\graphics\context.obj
> /OUT:build\lib.win-amd64-3.6\kivy\graphics\context.cp36-win_amd64.pyd
> /IMPLIB:build\temp.win-amd64-3.6\Release\Users\USER\AppData\Local\Temp\pip-build-f2z00gsx\kivy\kivy\graphics\context.cp36-win_amd64.lib
> LINK : fatal error LNK1181: cannot open input file 'glew32.lib'
> error: command 'C:\\Program Files (x86)\\Microsoft Visual Studio
> 14.0\\VC\\BIN\\x86_amd64\\link.exe' failed with exit status 1181
>
> ----------------------------------------
> Command "C:\Users\USER\Anaconda3\python.exe -u -c "import setuptools,
> tokenize;__file__='C:\\Users\\USER\\AppData\\Local\\Temp\\pip-build-f2z00gsx\\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\jUSER\AppData\Local\Temp\pip-9lilpuob-record\install-record.txt
> --single-version-externally-managed --compile" failed with error code 1 in
> C:\Users\jc-vh\AppData\Local\Temp\pip-build-f2z00gsx\kivy\
>
>
> ...
>
> I have installed python 3.5 and installed visual studio 2015 because it was
> an error that apeared before, if you need more info I will give it to you.
> Thanks in advance.
>
> --
> You received this message because you are subscribed to the Google Groups
> "Kivy users support" group.
> To unsubscribe from this group and stop receiving emails from it, send an
> email to kivy-users+...@googlegroups.com.
> For more options, visit https://groups.google.com/d/optout.
Message has been deleted

Bhavesh Anand

unread,
Feb 15, 2017, 6:08:57 AM2/15/17
to kivy-...@googlegroups.com
try using the Usage Example on https://kivy.org/#home

from kivy.app import App
from kivy.uix.button import Button

class TestApp(App):
def build(self):
return Button(text='Hello World')

TestApp().run()


Bhavesh Anand
about.me/bhaveshanand


On 15 February 2017 at 07:47, <jcvalverd...@gmail.com> wrote:
> It turns out I have python 3.6 instead of 3.5, I read that they recomend
> installing the nightly version so I did and installed the dependencies but
> still, I cant compile Kivy. It seems it is installed but when I test it,
> this comes up:
>
> python: can't open file 'share\kivy-examples\demo\showcase\main.py': [Errno
> 2] No such file or directory

Bhavesh Anand

unread,
Feb 16, 2017, 1:03:18 AM2/16/17
to kivy-...@googlegroups.com
Is it working, let me know !!!



Bhavesh Anand
about.me/bhaveshanand
Message has been deleted

Bhavesh Anand

unread,
Feb 16, 2017, 1:58:54 PM2/16/17
to kivy-...@googlegroups.com
edit the interpreter options in settings to your version in which kivy
is installed


Bhavesh Anand
about.me/bhaveshanand


On 16 February 2017 at 19:26, Juan Carlos Valverde-Hernández
<jcvalverd...@gmail.com> wrote:
> It worked in the python console and in Spyder flawless, but it didnt work in
> PyCharm. Thanks! What could have been the problem? Any ideas on how can I
> make it work on PyCharm?
>> You received this message because you are subscribed to a topic in the
>> Google Groups "Kivy users support" group.
>> To unsubscribe from this topic, visit
>> https://groups.google.com/d/topic/kivy-users/RwR5CmQuzBc/unsubscribe.
>> To unsubscribe from this group and all its topics, send an email to
Reply all
Reply to author
Forward
Message has been deleted
0 new messages