Closed renevt closed 5 years ago
sudo chown -R your_username:your_username *
This like looks like some bad thing to me. I don't think we need to ask users to do any sudo
command.
But if this will sole current problem for a specific case - ok.
@maxdevblock
ok Max requirements.txt installed
://bot/instabot/examples$ python multi_script_CLI.py Traceback (most recent call last):
File "multi_script_CLI.py", line 527, in
I do really appriciated your help ``
@renevt try
chown your_username:your_username hashtagsdb.txt
in the dir where the file is
nothing, I've tried with all the fixing that all you posted here, and it doesn't work as well. @renevt @maxdevblock I really appreciate your work
@silvio2810 sorry about that. You have to wait for the fix to be merged and then
pip install -U instabot
to update your system installed instabot.
Keep an eye out for fix updating
@maxdevblock
i do really sorry max but i dont get out of it downloaded your fixed file but nothing change still the same error
y cat 2019-01-18 12:35:38,283 - INFO - Instabot Started Which account do you want to use? (Type number) 1: * 0: add another account. -1: delete all accounts. 1 2019-01-18 12:35:40,252 - INFO - Logged-in successfully as '*** the cookie! 2019-01-18 12:35:40,253 - INFO - Going to like media with hashtag #cat. 2019-01-18 12:35:42,612 - INFO - Going to like 85 medias. 0%| | 0/85 [00:00<?, ?it/s]2019-01-18 12:35:42,757 - ERROR - Request returns 405 error!
Media ID error!
@renevt same.
You have to wait for the fix to be merged and then
pip install -U instabot
to update your system installed instabot.
Keep an eye out for fix updating
pip install -U instabot
//volume1/web/instabot/examples$ pip install -U instabotRequirement already up-to-date: instabot in /usr/lib/python2.7/site-packages (0.4.5) Requirement already satisfied, skipping upgrade: tqdm in /usr/lib/python2.7/site-packages (from instabot) (4.28.1) Requirement already satisfied, skipping upgrade: requests-toolbelt in /usr/lib/python2.7/site-packages (from instabot) (0.8.0) Requirement already satisfied, skipping upgrade: requests in /usr/lib/python2.7/site-packages (from instabot) (2.20.0) Requirement already satisfied, skipping upgrade: schedule in /usr/lib/python2.7/site-packages (from instabot) (0.5.0) Requirement already satisfied, skipping upgrade: future in /usr/lib/python2.7/site-packages (from instabot) (0.17.1) Requirement already satisfied, skipping upgrade: six in /usr/lib/python2.7/site-packages (from instabot) (1.12.0) Requirement already satisfied, skipping upgrade: huepy in /usr/lib/python2.7/site-packages (from instabot) (0.9.8.1) Requirement already satisfied, skipping upgrade: certifi>=2017.4.17 in /usr/lib/python2.7/site-packages/certifi-2018.11.29-py2.7.egg (from requests->instabot) (2018.11.29) Requirement already satisfied, skipping upgrade: chardet<3.1.0,>=3.0.2 in /usr/lib/python2.7/site-packages/chardet-3.0.4-py2.7.egg (from requests->instabot) (3.0.4) Requirement already satisfied, skipping upgrade: idna<2.8,>=2.5 in /usr/lib/python2.7/site-packages (from requests->instabot) (2.7) Requirement already satisfied, skipping upgrade: urllib3<1.25,>=1.21.1 in /usr/lib/python2.7/site-packages/urllib3-1.24.1-py2.7.egg (from requests->instabot) (1.24.1) administrator@DS216play://volume1/web/instabot/examples$ python like_hashtags.py cat 2019-01-18 12:37:54,640 - INFO - Instabot Started Which account do you want to use? (Type number) 1: 0: add another account. -1: delete all accounts. 1 2019-01-18 12:37:56,303 - INFO - Logged-in successfully as '' using the cookie! 2019-01-18 12:37:56,306 - INFO - Going to like media with hashtag #cat. 2019-01-18 12:37:58,827 - INFO - Going to like 85 medias. 0%| | 0/85 [00:00<?, ?it/s]2019-01-18 12:37:59,189 - ERROR - Request returns 405 error!
Media ID error!
Mabye something to do with the version of python?
I use the python and with python3 i get the error
/instabot/examples$ python3 like_users.py Traceback (most recent call last):
File "like_users.py", line 13, in
@renevt i say... YOU HAVE TO WAIT for the fix to get merged into master banch
@renevt i say... YOU HAVE TO WAIT for the fix to get merged into master banch
Then i need to say thank you very much for your patient and help
Have good weekend
Not only merge but also pushed to pypi
For me autopost doesn't work well. I get an error with the current version, and strange thing is that the autopost in the fix-instabot works only once after installation and then it gets error. Anyone else with the same issue? This started happening at the same time when get_media error appeared.
@alminkokasibovic autopost is totally another issue.
Is there a thread for autopost as well?
Yes but I'm waiting for this issue to get fixed to update di PR
Hello Max having the same problem got your branch Max ( open it in a new directory) but when i added my accounts 405 showed with liking (commenting does work!!!)
So we'll have to wait then.
have a nice weekend
Installed instabot from the branch that had the fix. Still doesn't work: image
@ImranDoet
did you previously install instabot via pip
?
In this case, the imported package is the system one not the local, so the patch have no effect.
I've download latest version of code but still giving 405 error... :/ image
To check if you got instabot installed in system directories, download, unzip and run this script check_instabot_756.py.zip
To check if you got instabot installed in system directories, download, unzip and run this script check_instabot_756.py.zip
C:\Users\Fers4t\Desktop>python check_instabot_756.py
=====> INSTABOT FOUND IN YOUR SYSTEM DIRECTORIES /
=====> CECHKING /api/api.py Traceback (most recent call last): File "check_instabot_756.py", line 14, in
with open("{}api/api.py".format(instabot_dir), 'r') as f: FileNotFoundError: [Errno 2] No such file or directory: '/api/api.py'
To check if you got instabot installed in system directories, download, unzip and run this script check_instabot_756.py.zip
C:\Users\Fers4t\Desktop>python check_instabot_756.py
=====> INSTABOT FOUND IN YOUR SYSTEM DIRECTORIES /
=====> CECHKING /api/api.py Traceback (most recent call last): File "check_instabot_756.py", line 14, in with open("{}api/api.py".format(instabot_dir), 'r') as f: FileNotFoundError: [Errno 2] No such file or directory: '/api/api.py'
Will fix for windows, this script is for *Nix
To check if you got instabot installed in system directories, download, unzip and run this script check_instabot_756.py.zip
C:\Users\Fers4t\Desktop>python check_instabot_756.py =====> INSTABOT FOUND IN YOUR SYSTEM DIRECTORIES / =====> CECHKING /api/api.py Traceback (most recent call last): File "check_instabot_756.py", line 14, in with open("{}api/api.py".format(instabot_dir), 'r') as f: FileNotFoundError: [Errno 2] No such file or directory: '/api/api.py'
Anyhow, that means you've got instabot in your system directories. You have to wait the pip package to be update.
To check if you got instabot installed in system directories, download, unzip and run this script check_instabot_756.py.zip
C:\Users\Fers4t\Desktop>python check_instabot_756.py
=====> INSTABOT FOUND IN YOUR SYSTEM DIRECTORIES / =====> CECHKING /api/api.py Traceback (most recent call last): File "check_instabot_756.py", line 14, in with open("{}api/api.py".format(instabot_dir), 'r') as f: FileNotFoundError: [Errno 2] No such file or directory: '/api/api.py'
Will fix for windows, this script is for *Nix
Is there a working code or do i making bad someting? If I delete instabot from/with pip and run it manually, will does codes work?
I've uninstalled instabot with pip and run codes manually but still doesn't work..
C:\Users\Fers4t\Desktop>python check_instabot_756.py
=====> ←[1;31mINSTABOT NOT FOUND IN YOUR SYSTEM DIRECTORIES←[0m
2019-01-19 12:55:58,841 - ERROR - Request returns 403 error!
2019-01-19 12:55:59,547 - ERROR - Request returns 404 error!
2019-01-19 12:55:59,547 - INFO - error, read exception bellow
2019-01-19 12:55:59,548 - INFO - Expecting value: line 1 column 1 (char 0)
I've uninstalled instabot with pip and run codes manually but still doesn't work..
C:\Users\Fers4t\Desktop>python check_instabot_756.py =====> ←[1;31mINSTABOT NOT FOUND IN YOUR SYSTEM DIRECTORIES←[0m
2019-01-19 12:55:58,841 - ERROR - Request returns 403 error! 2019-01-19 12:55:59,547 - ERROR - Request returns 404 error! 2019-01-19 12:55:59,547 - INFO - error, read exception bellow 2019-01-19 12:55:59,548 - INFO - Expecting value: line 1 column 1 (char 0)
Wait, working on it
check_instabot_756.py.zip Try with this.
I've uninstalled instaboth with pip... So no result. What should I do now?
C:\Users\Fers4t\Desktop>python check_instabot_756.py
=====> INSTABOT NOT FOUND IN YOUR SYSTEM DIRECTORIES
C:\Users\Fers4t\Desktop>
I've uninstalled instaboth with pip... So no result. What should I do now?
C:\Users\Fers4t\Desktop>python check_instabot_756.py =====> INSTABOT NOT FOUND IN YOUR SYSTEM DIRECTORIES C:\Users\Fers4t\Desktop>
create a directory and
git clone --single-branch --branch fix-issue-#756 https://github.com/maxdevblock/instabot.git
Then try and example in examples folder you find there.
It's merged isnt it?
It's merged isnt it?
nope.
Look #758 still waiting for review.
Everybody who installed via pip
and applied the patch on their system installed instabot have solved the issue.
The fix in #758 is the solution.
@maxdevblock
Thank you for your hard work but i dont get it how to fix it. I rent a linux server since yesterday so i can use all the commands. Can you tell me stepp by stepp what i need to do please. ? I understand install by pip but do not understand applied the patch.
Merged.
Still doesn't work for me btw, I used pip uninstall instabot, then pip install -U git+https://github.com/instagrambot/instabot.git https://i.imgur.com/HhLwz66.png
thanks
Ok guys it seems the bot is working ..
Very interesting discussion! Thanks to everyone that participated!
Still get a 405. After running pip uninstall instabot and then pip install instabot.
Try to install bleeding edge version from github:
pip install -U git+https://github.com/instagrambot/instabot.git
Please follow the guide below
x
into all the boxes [ ] relevant to your issue (like so [x]).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 -V
:Code: Python 2.7.12
`` python like_hashtags.py * 2019-01-17 10:34:31,202 - INFO - Instabot Started Which account do you want to use? (Type number) 1: ** 2: **** 0: add another account. -1: delete all accounts. 2 2019-01-17 10:34:36,600 - INFO - Logged-in successfully as '*.nl' using the cookie! 2019-01-17 10:34:36,601 - INFO - Going to like media with hashtag #*****. 2019-01-17 10:34:38,642 - INFO - Going to like 77 medias. 0%| | 0/77 [00:00<?, ?it/s]2019-01-17 10:34:38,792 - ERROR - Request returns 405 error!
Media ID error! ^C Traceback (most recent call last): File "like_hashtags.py", line 27, in
bot.like_hashtag(hashtag)
File "/usr/lib/python2.7/site-packages/instabot/bot/bot.py", line 431, in like_hashtag
return like_hashtag(self, hashtag, amount)
File "/usr/lib/python2.7/site-packages/instabot/bot/bot_like.py", line 92, in like_hashtag
return self.like_medias(medias)
File "/usr/lib/python2.7/site-packages/instabot/bot/bot.py", line 419, in like_medias
return like_medias(self, media_ids, check_media)
File "/usr/lib/python2.7/site-packages/instabot/bot/bot_like.py", line 53, in like_medias
self.error_delay()
File "/usr/lib/python2.7/site-packages/instabot/bot/bot.py", line 272, in error_delay
time.sleep(10)
KeyboardInterrupt
2019-01-17 10:34:43,064 - INFO - Bot stopped. Worked: 0:04:23.970103
2019-01-17 10:34:43,065 - INFO - Total requests: 9
Describe your issue
Hi
Since a day or two i got this error, the bot wouldnt like anything anymore . Follow, unfollow ,comment and etc. works normaly.