Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Problems when getting started on windows #3491

Closed
ailisp opened this issue Jul 9, 2015 · 7 comments
Closed

Problems when getting started on windows #3491

ailisp opened this issue Jul 9, 2015 · 7 comments
Labels
awaiting-reply Waiting for reply from issue opener, will be closed if no reply Platform: Windows Status: Incomplete Issue/PR is incomplete, but it's real

Comments

@ailisp
Copy link

ailisp commented Jul 9, 2015

Hello, everyone here. Thank you for your attention. I have successfully written and run several kivy programs on another computer. But in my computer, it just doesn't work. When running every kivy program in my computer (Windows 7 32 Bit), it will shows
:
[WARNING ] [Image ] Unable to load image <D:\kivy\kivy27\kivy\da
ta\glsl\default.png>
[CRITICAL ] [Window ] Unable to find any valuable Window provider
at all!

And then, it will end up without window. I find out in the official document there are similar problem in Mac OS X: http://kivy.org/docs/installation/troubleshooting-macosx.html
But this solution doesn't work on Windows. Here is my full output:

botstrapping Kivy @ D:\kivy\ with Python D:\kivy\Python27
Setting Environment Variables:
#################################
GST_REGISTRY
D:\kivy\gstreamer\registry.bin
---------------
KIVY_SDL2_PATH
D:\kivy\SDL2\lib;D:\kivy\SDL2\include\SDL2;D:\kivy\SDL2\bin
---------------
USE_SDL2
1
---------------
GST_PLUGIN_PATH:
D:\kivy\gstreamer\lib\gstreamer-1.0
---------------
PATH:
D:\kivy\;D:\kivy\Python27;D:\kivy\tools;D:\kivy\Python27\Scripts;D:\kivy\gstream
er\bin;D:\kivy\MinGW\bin;D:\kivy\SDL2\bin;D:\kivy\Python27\;D:\kivy\Python27\Scr
ipts;d:\watcom-1.3\binnt;d:\watcom-1.3\binw;C:\Windows\system32;C:\Windows;C:\Wi
ndows\System32\Wbem;C:\Windows\System32\WindowsPowerShell\v1.0\;C:\Program Files
\SAS\SharedFiles\Formats;C:\gtk\bin;C:\Program Files\CMake\bin;d:\Program Files\
clisp-2.49;D:\kivy
----------------------------------
PYTHONPATH:
D:\kivy\kivy27;
----------------------------------
##################################
done bootstraping kivy...have fun!\n
running "python.exe D:\kivy\kivy27\examples\tutorials\pong\main.py" \n
[INFO              ] [Logger      ] Record log in C:\Users\Administrator\.kivy\l
ogs\kivy_15-07-09_2.txt
[INFO              ] [Kivy        ] v1.9.0
[INFO              ] [Python      ] v2.7.9 (default, Dec 10 2014, 12:24:55) [MSC
 v.1500 32 bit (Intel)]
[INFO              ] [Factory     ] 173 symbols loaded
[INFO              ] [Image       ] Providers: img_tex, img_dds, img_gif, img_sd
l2, img_pil (img_ffpyplayer ignored)
[INFO              ] [OSC         ] using <thread> for socket
[INFO              ] [Window      ] Provider: sdl2
[INFO              ] [GL          ] GLEW initialization succeeded
[INFO              ] [GL          ] OpenGL version <4.4.0>
[INFO              ] [GL          ] OpenGL vendor <NVIDIA Corporation>
[INFO              ] [GL          ] OpenGL renderer <GeForce GT 640M/PCIe/SSE2>
[INFO              ] [GL          ] OpenGL parsed version: 4, 4
[INFO              ] [GL          ] Shading version <4.40 NVIDIA via Cg compiler
>
[INFO              ] [GL          ] Texture max size <16384>
[INFO              ] [GL          ] Texture max units <32>
[WARNING           ] [Image       ] Unable to load image <D:\kivy\kivy27\kivy\da
ta\glsl\default.png>
[CRITICAL          ] [Window      ] Unable to find any valuable Window provider
at all!
sdl2 - Exception: SDL2: Unable to load image
  File "D:\kivy\kivy27\kivy\core\__init__.py", line 65, in core_select_lib
    cls = cls()
  File "D:\kivy\kivy27\kivy\core\window\window_sdl2.py", line 121, in __init__
    super(WindowSDL, self).__init__()
  File "D:\kivy\kivy27\kivy\core\window\__init__.py", line 616, in __init__
    self.create_window()
  File "D:\kivy\kivy27\kivy\core\window\window_sdl2.py", line 188, in create_win
dow
    super(WindowSDL, self).create_window()
  File "D:\kivy\kivy27\kivy\core\window\__init__.py", line 769, in create_window

    self.render_context = RenderContext()
  File "kivy\graphics\instructions.pyx", line 751, in kivy.graphics.instructions
.RenderContext.__init__ (kivy\graphics\instructions.c:10270)
    tex = Image(filename).texture
  File "D:\kivy\kivy27\kivy\core\image\__init__.py", line 511, in __init__
    self.filename = arg
  File "D:\kivy\kivy27\kivy\core\image\__init__.py", line 699, in _set_filename
    mipmap=self._mipmap, nocache=self._nocache)
  File "D:\kivy\kivy27\kivy\core\image\__init__.py", line 429, in load
    im = loader(filename, **kwargs)
  File "D:\kivy\kivy27\kivy\core\image\__init__.py", line 197, in __init__
    self._data = self.load(filename)
  File "D:\kivy\kivy27\kivy\core\image\img_sdl2.py", line 42, in load
    raise Exception('SDL2: Unable to load image')

[CRITICAL          ] [App         ] Unable to get a Window, abort.

Thank you for your attention! It will be great if you have some idea on it and I suggest to put the solution in the official document to help more new kivy programmer if possible.

Want to back this issue? Post a bounty on it! We accept bounties via Bountysource.

@tito
Copy link
Member

tito commented Jul 13, 2015

Hi, could you give us the log with DEBUG mode? Thanks

@tito tito added the Status: Incomplete Issue/PR is incomplete, but it's real label Jul 13, 2015
@ailisp
Copy link
Author

ailisp commented Jul 15, 2015

Thank you very much. Here is the log with DEBUG mode:
[INFO ] Logger: Record log in C:\Users\Administrator.kivy\logs\kivy_15-07-15_1.txt
[INFO ] Kivy: v1.9.0
[INFO ] Python: v2.7.9 (default, Dec 10 2014, 12:24:55) [MSC v.1500 32 bit (Intel)]
[INFO ] Factory: 173 symbols loaded
[DEBUG ] Cache: register <kv.lang> with limit=None, timeout=None
[DEBUG ] Cache: register <kv.image> with limit=None, timeout=60
[DEBUG ] Cache: register <kv.atlas> with limit=None, timeout=None
[INFO ] Image: Providers: img_tex, img_dds, img_gif, img_sdl2, img_pil (img_ffpyplayer ignored)
[DEBUG ] Cache: register <kv.texture> with limit=1000, timeout=60
[DEBUG ] Cache: register <kv.shader> with limit=1000, timeout=3600
[DEBUG ] App: Loading kv <D:\kivy\kivy27\examples\tutorials\pong\pong.kv>
[INFO ] OSC: using for socket
[INFO ] Window: Provider: sdl2
[INFO ] GL: GLEW initialization succeeded
[INFO ] GL: OpenGL version <4.4.0>
[INFO ] GL: OpenGL vendor
[INFO ] GL: OpenGL renderer <GeForce GT 640M/PCIe/SSE2>
[INFO ] GL: OpenGL parsed version: 4, 4
[INFO ] GL: Shading version <4.40 NVIDIA via Cg compiler>
[INFO ] GL: Texture max size <16384>
[INFO ] GL: Texture max units <32>
[DEBUG ] Shader: Fragment compiled successfully
[DEBUG ] Shader: Vertex compiled successfully
[DEBUG ] ImageSDL2: Load <D:\kivy\kivy27\kivy\data\glsl\default.png>
[WARNING ] Image: Unable to load image <D:\kivy\kivy27\kivy\data\glsl\default.png>
[CRITICAL ] Window: Unable to find any valuable Window provider at all!
sdl2 - Exception: SDL2: Unable to load image
File "D:\kivy\kivy27\kivy\core__init__.py", line 65, in core_select_lib
cls = cls()
File "D:\kivy\kivy27\kivy\core\window\window_sdl2.py", line 121, in init
super(WindowSDL, self).init()
File "D:\kivy\kivy27\kivy\core\window__init__.py", line 616, in init
self.create_window()
File "D:\kivy\kivy27\kivy\core\window\window_sdl2.py", line 188, in create_window
super(WindowSDL, self).create_window()
File "D:\kivy\kivy27\kivy\core\window__init__.py", line 769, in create_window
self.render_context = RenderContext()
File "kivy\graphics\instructions.pyx", line 751, in kivy.graphics.instructions.RenderContext.init (kivy\graphics\instructions.c:10270)
tex = Image(filename).texture
File "D:\kivy\kivy27\kivy\core\image__init__.py", line 511, in init
self.filename = arg
File "D:\kivy\kivy27\kivy\core\image__init__.py", line 699, in set_filename
mipmap=self.mipmap, nocache=self.nocache)
File "D:\kivy\kivy27\kivy\core\image__init
.py", line 429, in load
im = loader(filename, **kwargs)
File "D:\kivy\kivy27\kivy\core\image__init
_.py", line 197, in init
self._data = self.load(filename)
File "D:\kivy\kivy27\kivy\core\image\img_sdl2.py", line 42, in load
raise Exception('SDL2: Unable to load image')

[CRITICAL ] App: Unable to get a Window, abort.

@matham
Copy link
Member

matham commented Jul 15, 2015

Hey, this is difficult to fix over github. Can you join us maybe sometime on #kivy on IRC? That should make it easier to get direct support.

@ailisp
Copy link
Author

ailisp commented Jul 16, 2015

Thank you
----- 原始邮件 -----
发件人:matham notifications@github.com
收件人:kivy/kivy kivy@noreply.github.com
抄送人:ailisp ailisp@sina.com
主题:Re: [kivy] Problems when getting started on windows (#3491)
日期:2015年07月15日 21点58分

Hey, this is difficult to fix over github. Can you join us maybe sometime on #kivy on IRC? That should make it easier to get direct support.


Reply to this email directly or view it on GitHub.

@ailisp
Copy link
Author

ailisp commented Jul 20, 2015

Thanks for help me, I think I am partly solved this problem. I just find that kivy programs can run under Intel HD4000M Graphic cards correctly (Windows 7, 32bit), but when I switch the graphic card to NVIDIA GT640M, it will cause error above and no window shows up. I am sure the driver for GT640M is correctly installed, so is it possible that kivy doesn't support this graphic card well or there is something wrong just on my computer. Does any one else have similar problem with NVIDIA cards here?

@matham
Copy link
Member

matham commented Jul 20, 2015

So it's on the same computer that the intel one works, and the NVIDIA doesn't work? We have had one or two other people with similar problems, but at the time we could not figure it out. At least this narrows it down a bit.

This is likely because of the switch to SDL2. So, as a debugging step, can you try something on the NVIDIA card? Download kivy 1.8.0 from (https://drive.google.com/open?id=0B-ydZwFoA2uQZ2s4aTN3MUpsS28) which still used pygame and see if that works.

@dessant dessant added the Component: graphics kivy/graphics label Dec 9, 2015
@dessant dessant removed the Component: graphics kivy/graphics label Feb 6, 2016
@dessant dessant added the awaiting-reply Waiting for reply from issue opener, will be closed if no reply label Apr 23, 2016
@kivybot
Copy link

kivybot commented Nov 29, 2016

Hey there!

We're automatically closing this issue since the original poster (or another commenter) hasn't yet responded to the question or request made to them 14 days ago. We therefore assume that the user has lost interest or resolved the problem on their own. Closed issues that remain inactive for a long period may get automatically locked.

Don't worry though; if this is in error, let us know with a comment and we'll be happy to reopen the issue.

Thanks!

(Please note that this is an automated comment.)

@kivybot kivybot closed this as completed Nov 29, 2016
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
awaiting-reply Waiting for reply from issue opener, will be closed if no reply Platform: Windows Status: Incomplete Issue/PR is incomplete, but it's real
Projects
None yet
Development

No branches or pull requests

5 participants