加入收藏 | 设为首页 | 会员中心 | 我要投稿 李大同 (https://www.lidatong.com.cn/)- 科技、建站、经验、云计算、5G、大数据,站长网!
当前位置: 首页 > 编程开发 > Python > 正文

python – kivy iOS部署错误

发布时间:2020-12-16 21:37:02 所属栏目:Python 来源:网络整理
导读:我正试图在我的kivy应用程序中使用龙卷风.在 Linux和Mac上它工作正常,但在iOS龙卷风上没有导入. 2013-07-21 16:50:11.862 application[818:907] [Springtomize]: Loading into sb-external process2013-07-21 16:50:12.868 application[818:907] PythonHome
我正试图在我的kivy应用程序中使用龙卷风.在 Linux和Mac上它工作正常,但在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上部署时正确包含模块?

解决方法

您需要在应用程序中包含所需的所有python模块.请记住,你为龙卷风做过像pip install或easy_install这样的事情吗?然后你需要将自己包含在你的项目中.

(这将改变一天,当kivy-ios能够将纯python模块安装到工具链中时,就像python-for-android一样.)

(编辑:李大同)

【声明】本站内容均来自网络,其相关言论仅代表作者个人观点,不代表本站立场。若无意侵犯到您的权利,请及时与联系站长删除相关内容!

    推荐文章
      热点阅读