【问题标题】:OSError: Unable to uploadOSError:无法上传
【发布时间】:2019-12-02 22:55:44
【问题描述】:

我很难解决这个错误。尝试 ro 运行一个简单的脚本,如下所示:

from instapy_cli import client

username = "username"
password = "password"

image = "Image.jpg"

description = "This is a test"

with client(username, password) as cli:
    cli.upload(image, description)

我收到以下错误:

[IG] not found cookie/cookie_file >> login as default
Error parsing error response: Expecting value: line 1 column 1 (char 0)
Error is >>
    Bad Request

Something went bad.
Please retry or send an issue on https://github.com/b3nab/instapy-cli

Traceback (most recent call last):
  File "c:/Users/Lucas/Desktop/Python/Proyectos/Insta Automation/Matetemático/Posting Script.py", line 15, in <module>
    cli.upload(imagen, text)
  File "C:\Users\Lucas\AppData\Roaming\Python\Python37\site-packages\instapy_cli\cli.py", line 153, in upload
    raise IOError("Unable to upload.")
OSError: Unable to upload.

【问题讨论】:

  • 看看here。看来这个项目已经死了,也许最好 fork 并更新 instagram API,或者只使用 selenium

标签: python instagram


【解决方案1】:

我遇到了同样的问题,我通过卸载然后重新安装解决了它:

pip uninstall instapy-cli
pip install instapy-cli

【讨论】:

  • 试了几次。没有为我工作。您最近尝试过使用 instapy-cli 上传图片吗?
  • 我在 6 个多月前使用它 :) 我认为现在不起作用,事实上,我认为最好的解决方案是使用 selenium :)
  • );恐怕就这样了,回到冰河时代吧
  • 但是,无论如何,尝试使用这个paste.ubuntu.com/p/mxyYmBpryK,希望对你有帮助:)
【解决方案2】:

安装这些包应该大于特定版本 [instabot 0.117.0 需要moviepy>=1.0.1,但你有moviepy 0.2.3.2,这是不兼容的。 instabot 0.117.0 需要 tqdm>=4.41.1,但你有不兼容的 tqdm 4.11.2]

试试这个

【讨论】:

    猜你喜欢
    • 2017-11-19
    • 2022-11-18
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 2021-05-23
    • 2017-09-11
    • 1970-01-01
    • 2016-07-09
    相关资源
    最近更新 更多