久久久久久久av_日韩在线中文_看一级毛片视频_日本精品二区_成人深夜福利视频_武道仙尊动漫在线观看

        <bdo id='keU7h'></bdo><ul id='keU7h'></ul>

      1. <small id='keU7h'></small><noframes id='keU7h'>

      2. <i id='keU7h'><tr id='keU7h'><dt id='keU7h'><q id='keU7h'><span id='keU7h'><b id='keU7h'><form id='keU7h'><ins id='keU7h'></ins><ul id='keU7h'></ul><sub id='keU7h'></sub></form><legend id='keU7h'></legend><bdo id='keU7h'><pre id='keU7h'><center id='keU7h'></center></pre></bdo></b><th id='keU7h'></th></span></q></dt></tr></i><div class="qwawimqqmiuu" id='keU7h'><tfoot id='keU7h'></tfoot><dl id='keU7h'><fieldset id='keU7h'></fieldset></dl></div>
      3. <tfoot id='keU7h'></tfoot><legend id='keU7h'><style id='keU7h'><dir id='keU7h'><q id='keU7h'></q></dir></style></legend>

        Kivy 1.9.0 Windows 包 KeyError: 'rthooks'

        Kivy 1.9.0 Windows package KeyError: #39;rthooks#39;(Kivy 1.9.0 Windows 包 KeyError: rthooks)
            <tbody id='zaUNE'></tbody>
          • <bdo id='zaUNE'></bdo><ul id='zaUNE'></ul>
            <tfoot id='zaUNE'></tfoot>

            • <legend id='zaUNE'><style id='zaUNE'><dir id='zaUNE'><q id='zaUNE'></q></dir></style></legend>

                <small id='zaUNE'></small><noframes id='zaUNE'>

                  <i id='zaUNE'><tr id='zaUNE'><dt id='zaUNE'><q id='zaUNE'><span id='zaUNE'><b id='zaUNE'><form id='zaUNE'><ins id='zaUNE'></ins><ul id='zaUNE'></ul><sub id='zaUNE'></sub></form><legend id='zaUNE'></legend><bdo id='zaUNE'><pre id='zaUNE'><center id='zaUNE'></center></pre></bdo></b><th id='zaUNE'></th></span></q></dt></tr></i><div class="qwawimqqmiuu" id='zaUNE'><tfoot id='zaUNE'></tfoot><dl id='zaUNE'><fieldset id='zaUNE'></fieldset></dl></div>

                • 本文介紹了Kivy 1.9.0 Windows 包 KeyError: 'rthooks'的處理方法,對大家解決問題具有一定的參考價值,需要的朋友們下面隨著小編來一起學習吧!

                  問題描述

                  我正在嘗試為 Windows 打包我的 Kivy 應用程序,但遇到了一些問題.按照 kivy docs 中的說明,我創建并編輯了規范文件.我既不使用 pygame 也不使用 SDL2(我的意思是我不直接導入它們來運行我的程序),但在 Kivy 日志中我看到 pygame 仍然提供我的窗口:

                  I'm trying to package my Kivy app for Windows, but I'm having some issues. Following the instructions in the kivy docs, I created and edited the spec file. I don't use neither pygame nor SDL2 (I mean I don't import them directly to run my program), but in the Kivy log I see pygame still provides my window:

                  [INFO              ] [Text        ] Provider: pygame
                  [INFO              ] [Window      ] Provider: pygame
                  

                  我不明白為什么,因為我使用的是 kivy 1.9.0.

                  I don't understand why, since I'm using kivy 1.9.0.

                  也就是說,我在構建規范時遇到了這個問題:

                  Said that, I'm having this problem when building the spec:

                  (...)
                  202 WARNING: stderr:    File "C:Program FilesPython Kivy-1.9.0-py3.4-win32-x86kivy34kivy	oolspackagingpyinstaller_hooks\__init__.py", line 13, in install_hooks
                      sym['rthooks']['kivy'] = [join(curdir, 'rt-hook-kivy.py')]
                  202 WARNING: stderr:    sym['rthooks']['kivy'] = [join(curdir, 'rt-hook-kivy.py')]
                      KeyError: 'rthooks'
                  202 WARNING: stderr: KeyError: 'rthooks'
                  

                  我對編輯規范有點困惑(我需要導入 pygame/SDL2?),這可能是我的問題.我正在使用 Windows 7 x86、Python 3.4.3 和 Kivy 1.9.0.任何幫助表示贊賞.

                  I'm a little confused about editing the spec (I need to import pygame/SDL2?), and that's probably my problem. I'm using Windows 7 x86, Python 3.4.3 and Kivy 1.9.0. Any help is appreciated.

                  推薦答案

                  2015 年 10 月 1 日更新:

                  事實證明這是一個錯誤.截至 2015 年 9 月 24 日的最新進展Kivy 版本應該沒有這個問題.

                  It turns out this is a bug. As of 24 September 2015 the latest development version of Kivy should be free of this issue.

                  從源代碼在 Windows 上安裝 Kivy,不使用 Christoph Gohlke 的預編譯輪子,雖然是另一個難以破解的難題,所以在實踐中,如果你真的渴望 Python 3.x 兼容性,可能最簡單的方法是等到 Kivy 團隊發布 1.9.0 之后的另一個版本,然后 Gohlke 的腳本生成簡單的- 安裝二進制文件.

                  Installing Kivy on Windows from source code, without the use of Christoph Gohlke's pre-compiled wheels, is another tough nut to crack though, so in practice if you truly crave Python 3.x compatibility it may be easiest to wait until the Kivy team issues another release past 1.9.0, and Gohlke's script to generate the easy-to-install binary.

                  我已經部分解決了這個問題:

                  I've partially troubleshooted this:

                  您引用的 kivy docs 提到將以下三行添加到頂部.spec 文件:

                  The kivy docs you reference mention adding the following three lines to the top of the .spec file:

                  from kivy.tools.packaging.pyinstaller_hooks import install_hooks
                  import os
                  install_hooks(globals())
                  

                  錯誤發生在 install_hooks(globals()) 中,定義在 Libsite-packageskivy oolspackagingpyinstaller_hooks\__init__.py:

                  The error is happening in install_hooks(globals()), which is defined at Libsite-packageskivy oolspackagingpyinstaller_hooks\__init__.py:

                  from os.path import dirname, join
                  from functools import partial
                  
                  curdir = dirname(__file__)
                  
                  def install_hooks(sym, hookspath=None):
                  
                      _hookspath = [curdir]
                      if hookspath is not None:
                          _hookspath += hookspath
                  
                      sym['rthooks']['kivy'] = [join(curdir, 'rt-hook-kivy.py')]
                      sym['Analysis'] = partial(sym['Analysis'], hookspath=_hookspath)
                  

                  但倒數第二行導致消息:WARNING: stderr: KeyError: 'rthooks'.

                  But the second last line is causing the message: WARNING: stderr: KeyError: 'rthooks'.

                  所以看起來它期望一個變量 rthooks 在全局命名空間中,但事實并非如此.

                  So it looks like it's expecting a variable rthooks to be in the global namespace, but it's not.

                  我不確定下一步該做什么.

                  I'm not sure what to do next.

                  這篇關于Kivy 1.9.0 Windows 包 KeyError: 'rthooks'的文章就介紹到這了,希望我們推薦的答案對大家有所幫助,也希望大家多多支持html5模板網!

                  【網站聲明】本站部分內容來源于互聯網,旨在幫助大家更快的解決問題,如果有圖片或者內容侵犯了您的權益,請聯系我們刪除處理,感謝您的支持!

                  相關文檔推薦

                  How to make a discord bot that gives roles in Python?(如何制作一個在 Python 中提供角色的不和諧機器人?)
                  Discord bot isn#39;t responding to commands(Discord 機器人沒有響應命令)
                  Can you Get the quot;About mequot; feature on Discord bot#39;s? (Discord.py)(你能得到“關于我嗎?Discord 機器人的功能?(不和諧.py))
                  message.channel.id Discord PY(message.channel.id Discord PY)
                  How do I host my discord.py bot on heroku?(如何在 heroku 上托管我的 discord.py 機器人?)
                  discord.py - Automaticaly Change an Role Color(discord.py - 自動更改角色顏色)
                    <bdo id='pza7n'></bdo><ul id='pza7n'></ul>
                  • <legend id='pza7n'><style id='pza7n'><dir id='pza7n'><q id='pza7n'></q></dir></style></legend>
                  • <tfoot id='pza7n'></tfoot>
                    <i id='pza7n'><tr id='pza7n'><dt id='pza7n'><q id='pza7n'><span id='pza7n'><b id='pza7n'><form id='pza7n'><ins id='pza7n'></ins><ul id='pza7n'></ul><sub id='pza7n'></sub></form><legend id='pza7n'></legend><bdo id='pza7n'><pre id='pza7n'><center id='pza7n'></center></pre></bdo></b><th id='pza7n'></th></span></q></dt></tr></i><div class="qwawimqqmiuu" id='pza7n'><tfoot id='pza7n'></tfoot><dl id='pza7n'><fieldset id='pza7n'></fieldset></dl></div>

                      <tbody id='pza7n'></tbody>

                    <small id='pza7n'></small><noframes id='pza7n'>

                            主站蜘蛛池模板: 成人免费视频观看 | 国产一区二区三区在线 | 青青草精品视频 | 日本a视频 | 中文字幕一区二区三区不卡在线 | www国产成人免费观看视频 | 精品欧美一区二区三区久久久小说 | 亚洲综合视频 | 午夜久久久久 | 毛片一区二区三区 | 日日干夜夜操 | 911精品美国片911久久久 | 午夜天堂精品久久久久 | 精品国产一区二区三区日日嗨 | 久久久久久艹 | a级毛片基地 | 欧美日韩中文在线 | 国产乱码精品一区二区三区五月婷 | 国产精品国产a级 | 亚洲成人在线免费 | 综合网在线 | 亚洲精品一区二区在线观看 | 日韩电影免费在线观看中文字幕 | 最新中文字幕 | aa级毛片毛片免费观看久 | 日本a∨视频 | 久久这里有精品 | 红桃成人在线 | 视频在线观看一区二区 | 日韩一区二区三区在线视频 | 一区二区三区不卡视频 | 日韩中文字幕视频 | 久久久www | 久久久久久国产精品免费免费男同 | 久久一日本道色综合久久 | 欧美日韩在线观看视频网站 | 国产精品夜间视频香蕉 | 国产视频一区二区在线观看 | 欧美日本韩国一区二区三区 | 中文字幕在线免费视频 | 日韩在线 |