2013-07-22 44 views
5

我想在我的kivy應用程序中使用龍捲風。在Linux和Mac上,它工作正常,但是在iOS上,龍捲風沒有被導入。kivy iOS部署錯誤

2013-07-21 16:50:11.862 application[818:907] [Springtomize]: Loading into sb-external process 

2013-07-21 16:50:12.868 application[818:907] PythonHome is: /var/mobile/Applications/B621455C-94BF-4AA7-97A3-B051F090C68A/application.app 

2013-07-21 16:50:12.873 application[818:907] Initializing python 

2013-07-21 16:50:13.232 application[818:907] Running main.pyo: /var/mobile/Applications/B621455C-94BF-4AA7-97A3-B051F090C68A/application.app/YourApp/main.pyo 

[INFO    ] Kivy v1.7.1 

[INFO    ] [Factory  ] 144 symbols loaded 

[DEBUG    ] [Cache  ] register <kv.lang> with limit=None, timeout=Nones 

[DEBUG    ] [Cache  ] register <kv.image> with limit=None, timeout=60s 

[DEBUG    ] [Cache  ] register <kv.atlas> with limit=None, timeout=Nones 

[DEBUG    ] [Image  ] option <dds> ignored by config 

[DEBUG    ] [Image  ] option <pygame> ignored by config 

[DEBUG    ] [Image  ] option <pil> ignored by config 

[DEBUG    ] [Image  ] option <gif> ignored by config 

[INFO    ] [Image  ] Providers: img_imageio, img_tex (img_dds, img_pygame, img_pil, img_gif ignored) 

[DEBUG    ] [Cache  ] register <kv.texture> with limit=1000, timeout=60s 

[DEBUG    ] [Cache  ] register <kv.shader> with limit=1000, timeout=3600s 

[DEBUG    ] [Text  ] Ignored <pygame> (import error) 

[INFO    ] [Text  ] Provider: sdlttf(['text_pygame'] ignored) 

Traceback (most recent call last): 

    File "/Users/0/Desktop/kivy-ios/app-application/YourApp/main.py", line 31, in <module> 

**ImportError: No module named tornado.ioloop** 

2013-07-21 16:50:14.449 application[818:907] Application quit abnormally! 

2013-07-21 16:50:14.496 application[818:907] Leaving 

如何在使用kivy構建和在iOS上部署時正確包含模塊?

+0

也許[這](https://開頭pyobjus .readthedocs.org/en/latest/quickstart.html)可能有幫助嗎?讓我知道如果它。 –

回答

3

您需要在應用程序中包含所需的所有python模塊。請記住,你做過類似pip installeasy_install的龍捲風嗎?然後你需要將自己納入你的項目。

(這將改變有一天,當kivy-IOS就可以安裝純Python模塊插入工具鏈,如蟒蛇換Android提供。)

+0

如何特別將python模塊添加到應用程序中? – leech