Py2exe, Runtimeerror with tweepy

谁说胖子不能爱 提交于 2019-11-28 01:37:20

There seems to be a bug in the 0.9.2.2 version of py2exe where the module six.moves.urllib.parse gets into an infinite recursion loop until it reaches the maximum depth.

One way to go around it, if you don't really need the module, is to exclude the module in your setup.py:

options={
    "py2exe": {
        "includes": ["sip", "tweepy"],
        "excludes": ["six.moves.urllib.parse"]
    }
}
易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!