【问题标题】:Command "python setup.py egg_info" failed with error code 1 | can't install throught python and pycharm命令“python setup.py egg_info”失败,错误代码为 1 |无法通过 python 和 pycharm 安装
【发布时间】:2019-04-22 18:32:04
【问题描述】:

我正在为使用 pochta.ru 的 API 的 VK 设置一个机器人 由于命令“python setup.py egg_info”失败,错误代码为 1,我无法安装 suds setuptools 是最新版本

我不使用Linux,我使用PyCharm,但是通过Python它也不起作用

【问题讨论】:

    标签: python suds


    【解决方案1】:

    对于大于 3.2 的 python 版本,您应该尝试使用“suds-jurko”而不是“suds”。

    【讨论】:

    • ` 文件“D:/Python/WeatherBot/meh.py”,第 28 行,在 结果 = client.service.getOperationHistory(inject={'msg':message} ) 文件“D:\Python\WeatherBot\venv\lib\site-packages\suds\client.py”,第 521 行,在 _call 中返回 client.invoke(args, kwargs)文件“D:\Python\WeatherBot\venv\lib\site-packages\suds\client.py”,第 760 行,在调用中断言 msg.__class_ is suds.byte_str_class AssertionError`
    • 请检查以下帖子以了解此断言错误。它不应该是模块错误。 stackoverflow.com/questions/41936558/assertion-error-with-suds
    • 没有修复NameError:未定义名称“消息”
    【解决方案2】:
      File "D:/Python/WeatherBot/meh.py", line 28, in <module>
    result = client.service.getOperationHistory(__inject={'msg':message})
    

    调用中的文件“D:\Python\WeatherBot\venv\lib\site-packages\suds\client.py”,第 521 行 返回 client.invoke(args, kwargs) 文件“D:\Python\WeatherBot\venv\lib\site-packages\suds\client.py”,第 760 行,在调用中 断言 msg.class 是 suds.byte_str_class 断言错误

    【讨论】:

      猜你喜欢
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 2016-12-18
      相关资源
      最近更新 更多