ohld / igbot

🐙 Free scripts, bots and Python API wrapper. Get free followers with our auto like, auto follow and other scripts!
https://hikerapi.com/p/N2P6iqiM
Apache License 2.0
4.69k stars 1.47k forks source link

upload_photos.py doesn't work #1010

Closed bigmim closed 4 years ago

bigmim commented 5 years ago

Bot starts, logins successfully, finds the photo, tells the photo does not have a compatible aspect ratio (and it's true), so it's not uploaded....something went wrong. Instead, I expected the photo was cropped and resized and then uploaded.


Before submitting an issue, make sure you have:

Purpose of your issue?


The following sections requests more details for particular types of issues, you can remove any section (the contents between the triple ---) not applicable to your issue.


For a bug report, you must include the Python version used, code that will reproduce the error, and the error log/traceback.

Paste the output of python 3.7 here:

Code:


bot.logger.info("Uploading pic `{pic}` with caption: `{caption}`".format(pic=pic, caption=caption))
        if not bot.upload_photo(os.path.dirname(os.path.realpath(__file__)) + "/media/" + pic, caption=caption):
            bot.logger.error("Something went wrong...")
            break

---

### Describe your issue

Explanation of your issue goes here. Please make sure the description is worded well enough to be understood with as much context and examples as possible.
disayner commented 5 years ago

where is the error text? And what is your photo called?

bigmim commented 5 years ago

The error is that the program stops and says: the photo does not have a compatible aspect ratio. Photo is not uploaded ....something went wrong.

I'm referring to the upload_photos.py script and not to auto_upload.py.

I know that auto_upload.py can not upload photos not having compatible aspect ratio. Instead, upload_photos.py should be able to manage photos, cropping and resizing, and upload with right aspect ratio. That's the matter.

bigmim commented 5 years ago

The error is that the program stops and says: the photo does not have a compatible aspect ratio. Photo is not uploaded ....something went wrong.

I'm referring to the upload_photos.py script and not to auto_upload.py.

I know that auto_upload.py can not upload photos not having compatible aspect ratio. Instead, upload_photos.py should be able to manage photos, cropping and resizing, and upload with right aspect ratio. But it doesn't and that's the matter.

Il giorno mer 21 ago 2019 alle ore 12:58 disayner notifications@github.com ha scritto:

where is the error text? And what is your photo called?

— You are receiving this because you were mentioned. Reply to this email directly, view it on GitHub https://github.com/instagrambot/instabot/issues/1010?email_source=notifications&email_token=AMRZTL43FDZLGQZJY37WQZLQFUNWBA5CNFSM4IMQG2GKYY3PNVWWK3TUL52HS4DFVREXG43VMVBW63LNMVXHJKTDN5WW2ZLOORPWSZGOD4ZI6QA#issuecomment-523407168, or mute the thread https://github.com/notifications/unsubscribe-auth/AMRZTL3GWCF4S5CHRDZIAMLQFUNWBANCNFSM4IMQG2GA .

stale[bot] commented 4 years ago

This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions.

phcamargo23 commented 4 years ago

I have same problem