来自kivy.app import App错误

时间:2016-10-23 12:48:38

标签: python

我已经在我的电脑上装了kivy大约一个星期,但直到现在我还没有这么做。我按照官方网站上的说明安装了kivy及其依赖项。但是,当我导入kivy时,出现了可怕的错误。

我在命令行导入时出现错误:

>>>from kivy.app import App

[INFO   ] [Logger      ] Record log in C:\Users\Ricardo\.kivy\logs\kivy_16-10-23_0.txt
[INFO   ] [Kivy        ] v1.9.2-dev0
[INFO   ] [Python      ] v2.7.12 (v2.7.12:d33e0cf91556, Jun 27 2016, 15:19:22) [MSC v.1500 32 bit (Intel)]

 Traceback (most recent call last):
   File "<pyshell#1>", line 1, in <module>
     from kivy.app import App
   File "C:\Python27\lib\kivy\app.py", line 319, in <module>
     from kivy.base import runTouchApp, stopTouchApp
   File "C:\Python27\lib\kivy\base.py", line 29, in <module>
     from kivy.clock import Clock
   File "C:\Python27\lib\kivy\clock.py", line 364, in <module>
     from kivy._clock import CyClockBase, ClockEvent, FreeClockEvent, \

 Traceback (most recent call last):
   File "C:\Python27\lib\kivy\logger.py", line 291, in write
     s = self.buffer + s
 UnicodeDecodeError: 'ascii' codec can't decode byte 0xb2 in position 33: ordinal not in range(128)

这是我在脚本中导入时显示的错误:     [INFO] [Logger]记录C:\ Users \ Ricardo.kivy \ logs \ kivy_16-10-23_1.txt中的日志     [INFO] [Kivy] v1.9.2-dev0     [INFO] [Python] v2.7.12(v2.7.12:d33e0cf91556,2016年6月27日,15:19:22)[MSC v.1500 32 bit(Intel)]

 Traceback (most recent call last):
   File "C:/Python27/1.py", line 1, in <module>
     from kivy.app import App
   File "C:\Python27\lib\kivy\app.py", line 319, in <module>
     from kivy.base import runTouchApp, stopTouchApp
   File "C:\Python27\lib\kivy\base.py", line 29, in <module>
     from kivy.clock import Clock
   File "C:\Python27\lib\kivy\clock.py", line 364, in <module>
     from kivy._clock import CyClockBase, ClockEvent, FreeClockEvent, \
 ImportError: DLL load failed: %1 不是有效的 Win32 应用程序。

我在Windows 10上使用Python2.7.12,如果有人可以帮助我,我将非常感激。

0 个答案:

没有答案