Closed rbs250 closed 8 years ago
@rbs250 change it to:
self.logger.log('InstaBot v0.1 will like ' + str(self.total_likes) + ' photos in total')
@eshem hey man, thanks a lot! I almost got it working... Now I'm getting
MacBook-Pro-3:instabot-master USER$ python3 src/instabot.py Traceback (most recent call last): File "src/instabot.py", line 1, in <module> import yaml, requests, random, time, datetime, json, sys ImportError: No module named 'yaml'
Have any suggestions? Thanks again!
@rbs250 Glad you liked it! You have to install the dependencies, using sudo pip install -r config/dependencies.txt
. If you don't have pip
installed, brew install python
should do it. If you don't have homebrew installed, follow these instructions.
@bmpasini Hey Bruno, Thanks for the support!! I did all of it, however still getting this syntax error for some reason :/
MacBook-Pro-3:InstaBot user$ python3 src/instabot.py File "src/instabot.py", line 19 self.logger.log('InstaBot v0.1 will like ' + str(self.total_likes) + ' photos in total')) ^ SyntaxError: invalid syntax
All the dependencies are satisfied, pip is installed through homebrew. And when trying the fix @eshem suggested, I'm getting
MacBook-Pro-3:InstaBot user$ python3 src/instabot.py Traceback (most recent call last): File "src/instabot.py", line 1, in <module> import yaml, requests, random, time, datetime, json, sys ImportError: No module named 'yaml'
Any ideas on how to solve this? Thank you very much!!
@rbs250 Try
sudo pip install pyyaml On Oct 18, 2016 9:16 PM, "rbs250" notifications@github.com wrote:
@bmpasini https://github.com/bmpasini Hey Bruno, Thanks for the support!! I did all of it, however still getting this syntax error for some reason :/
MacBook-Pro-3:InstaBot user$ python3 src/instabot.py File "src/instabot.py", line 19 self.logger.log('InstaBot v0.1 will like ' + str(self.total_likes) + ' photos in total')) ^ SyntaxError: invalid syntax
All the dependencies are satisfied, pip is installed through homebrew. And when trying the fix @eshem https://github.com/eshem suggested, I'm getting
MacBook-Pro-3:InstaBot user$ python3 src/instabot.py Traceback (most recent call last): File "src/instabot.py", line 1, in
import yaml, requests, random, time, datetime, json, sys ImportError: No module named 'yaml' Any ideas on how to solve this? Thank you very much!!
— You are receiving this because you are subscribed to this thread. Reply to this email directly, view it on GitHub https://github.com/bmpasini/instabot/issues/1#issuecomment-254626261, or mute the thread https://github.com/notifications/unsubscribe-auth/AUPGknhoABo9gMR2vqfeQebZhNbXFR-5ks5q1SkogaJpZM4KPwuw .
Hey @virginsince1997 Did that too already, I'm getting this now:
MacBook-Pro-3:src user$ sudo pip install pyyaml Password: The directory '/Users/user/Library/Caches/pip/http' or its parent directory is not owned by the current user and the cache has been disabled. Please check the permissions and owner of that directory. If executing pip with sudo, you may want sudo's -H flag. The directory '/Users/user/Library/Caches/pip' or its parent directory is not owned by the current user and caching wheels has been disabled. check the permissions and owner of that directory. If executing pip with sudo, you may want sudo's -H flag. Requirement already satisfied (use --upgrade to upgrade): pyyaml in /Library/Python/2.7/site-packages
Might be the cause of the issue?
sudo -H pip install foo sudo -H pip install pyyaml On Oct 18, 2016 9:27 PM, "rbs250" notifications@github.com wrote:
Hey @virginsince1997 https://github.com/virginsince1997 Did that too already, I'm getting this now:
MacBook-Pro-3:src user$ sudo pip install pyyaml Password: The directory '/Users/user/Library/Caches/pip/http' or its parent directory is not owned by the current user and the cache has been disabled. Please check the permissions and owner of that directory. If executing pip with sudo, you may want sudo's -H flag. The directory '/Users/user/Library/Caches/pip' or its parent directory is not owned by the current user and caching wheels has been disabled. check the permissions and owner of that directory. If executing pip with sudo, you may want sudo's -H flag. Requirement already satisfied (use --upgrade to upgrade): pyyaml in /Library/Python/2.7/site-packages
Might be the cause of the issue?
— You are receiving this because you were mentioned. Reply to this email directly, view it on GitHub https://github.com/bmpasini/instabot/issues/1#issuecomment-254629248, or mute the thread https://github.com/notifications/unsubscribe-auth/AUPGkmSC-IAKGG2WSSzUvsleYAVtEd95ks5q1Su-gaJpZM4KPwuw .
brew install libyaml sudo python -m easy_install pyyaml
Try Em On Oct 18, 2016 9:27 PM, "rbs250" notifications@github.com wrote:
Hey @virginsince1997 https://github.com/virginsince1997 Did that too already, I'm getting this now:
MacBook-Pro-3:src user$ sudo pip install pyyaml Password: The directory '/Users/user/Library/Caches/pip/http' or its parent directory is not owned by the current user and the cache has been disabled. Please check the permissions and owner of that directory. If executing pip with sudo, you may want sudo's -H flag. The directory '/Users/user/Library/Caches/pip' or its parent directory is not owned by the current user and caching wheels has been disabled. check the permissions and owner of that directory. If executing pip with sudo, you may want sudo's -H flag. Requirement already satisfied (use --upgrade to upgrade): pyyaml in /Library/Python/2.7/site-packages
Might be the cause of the issue?
— You are receiving this because you were mentioned. Reply to this email directly, view it on GitHub https://github.com/bmpasini/instabot/issues/1#issuecomment-254629248, or mute the thread https://github.com/notifications/unsubscribe-auth/AUPGkmSC-IAKGG2WSSzUvsleYAVtEd95ks5q1Su-gaJpZM4KPwuw .
@virginsince1997 Thanks, but still not luck :/
Getting this:
MacBook-Pro-3:instabot-master user$ sudo -H pip install foo Password: Collecting foo Could not find a version that satisfies the requirement foo (from versions: ) No matching distribution found for foo MacBook-Pro-3:instabot-master user$ sudo -H pip install pyyaml Requirement already satisfied (use --upgrade to upgrade): pyyaml in /Library/Python/2.7/site-packages MacBook-Pro-3:instabot-master user$ brew install libyaml sudo python -m easy_install pyyaml Error: No available formula with the name "sudo" ==> Searching for similarly named formulae... Error: No similarly named formulae found. ==> Searching taps... Error: No formulae found in taps.
Thanks for the assistance!! :)
brew install libyaml sudo python -m easy_install pyyaml
If it doesn't work try upgrading pyyaml On Oct 18, 2016 9:51 PM, "rbs250" notifications@github.com wrote:
@virginsince1997 https://github.com/virginsince1997 Thanks, but still not luck :/
Getting this: MacBook-Pro-3:instabot-master user$ sudo -H pip install foo Password: Collecting foo Could not find a version that satisfies the requirement foo (from versions: ) No matching distribution found for foo MacBook-Pro-3:instabot-master user$ sudo -H pip install pyyaml Requirement already satisfied (use --upgrade to upgrade): pyyaml in /Library/Python/2.7/site-packages MacBook-Pro-3:instabot-master user$ brew install libyaml sudo python -m easy_install pyyaml Error: No available formula with the name "sudo" ==> Searching for similarly named formulae... Error: No similarly named formulae found. ==> Searching taps... Error: No formulae found in taps.
Thanks for the assistance!! :)
— You are receiving this because you were mentioned. Reply to this email directly, view it on GitHub https://github.com/bmpasini/instabot/issues/1#issuecomment-254635586, or mute the thread https://github.com/notifications/unsubscribe-auth/AUPGklhdtU0L4ZkUpss6yC0d8fg1rnNmks5q1TE-gaJpZM4KPwuw .
@rbs250, please try this:
sudo chmod -R 777 /Users/user/Library/Caches/pip
Then try installing pyyaml again.
sudo pip install pyyaml
@rbs250, I just noticed that pyyaml
has been installed already for you, but for Python version 2.7. This scripts only work with python 3+ versions. Try installing pip3
:
http://stackoverflow.com/questions/29712519/how-to-use-pip3-with-python-3-4
Then, install pyyaml using your new pip
, or pip3
Yep, that was the issue. 😊 It's working now! Thank you so much, all of you!!!🙌🏻
Hi bmpasini, thank you for such an awesome code!
I did everything as instructed, and all went smooth, but I get this error when I try to run the last command:
MacBook-Pro-3:instabot-master USER$ python3 src/instabot.py File "src/instabot.py", line 19 self.logger.log('InstaBot v0.1 will like ' + str(self.total_likes) + ' photos in total')) ^ SyntaxError: invalid syntax
Can you tell me what I'm doing wrong? Thank you!!! 🙌🏻