Jul-04-2018, 05:14 PM
Hi Python Forum,
I'm struggling with getting a twphotos to work, I found the script here and I think based on what others have said it is working for them. I cant get it to work in the command line so I've posted some detailed commands used and outputs.
https://github.com/shichao-an/twitter-ph...r/twphotos
I've installed Python, Xcode command line, and have tested python is working.
And so I run
Returns
returns the correct information in the config file
returns
returns
returns
or
Returns
returns (for info on locations)
Returns
for more info I run the command:
returns:
If you can explain what it is that needs checking and how things work, or any links to read further into what might cause this they would be much appreciated.
Regards XTR
I'm struggling with getting a twphotos to work, I found the script here and I think based on what others have said it is working for them. I cant get it to work in the command line so I've posted some detailed commands used and outputs.
https://github.com/shichao-an/twitter-ph...r/twphotos
I've installed Python, Xcode command line, and have tested python is working.
And so I run
1 |
pip install twitter - photos |
Output:Requirement already satisfied: twitter-photos in ./Library/Python/2.7/lib/python/site-packages (0.4.0)
Requirement already satisfied: python-twitter in /Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/site-packages (from twitter-photos) (3.4.2)
Requirement already satisfied: requests in /Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/site-packages (from twitter-photos) (2.19.1)
Requirement already satisfied: urllib3 in /Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/site-packages (from twitter-photos) (1.23)
Requirement already satisfied: future in /Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/site-packages (from python-twitter->twitter-photos) (0.16.0)
Requirement already satisfied: requests-oauthlib in /Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/site-packages (from python-twitter->twitter-photos) (1.0.0)
Requirement already satisfied: certifi>=2017.4.17 in /Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/site-packages (from requests->twitter-photos) (2018.4.16)
Requirement already satisfied: chardet<3.1.0,>=3.0.2 in /Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/site-packages (from requests->twitter-photos) (3.0.4)
Requirement already satisfied: idna<2.8,>=2.5 in /Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/site-packages (from requests->twitter-photos) (2.7)
Requirement already satisfied: oauthlib>=0.6.2 in /Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/site-packages (from requests-oauthlib->python-twitter->twitter-photos) (2.1.0)
Checked credentials are set using1 |
cat ~ / .twphotos |
1 |
pip install python - twitter |
Output:Requirement already satisfied: python-twitter in /Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/site-packages (3.4.2)
Requirement already satisfied: future in /Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/site-packages (from python-twitter) (0.16.0)
Requirement already satisfied: requests-oauthlib in /Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/site-packages (from python-twitter) (1.0.0)
Requirement already satisfied: requests in /Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/site-packages (from python-twitter) (2.19.1)
Requirement already satisfied: oauthlib>=0.6.2 in /Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/site-packages (from requests-oauthlib->python-twitter) (2.1.0)
Requirement already satisfied: certifi>=2017.4.17 in /Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/site-packages (from requests->python-twitter) (2018.4.16)
Requirement already satisfied: chardet<3.1.0,>=3.0.2 in /Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/site-packages (from requests->python-twitter) (3.0.4)
Requirement already satisfied: urllib3<1.24,>=1.21.1 in /Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/site-packages (from requests->python-twitter) (1.23)
Requirement already satisfied: idna<2.8,>=2.5 in /Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/site-packages (from requests->python-twitter) (2.7)
1 |
pip install requests |
Output:Requirement already satisfied: requests in /Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/site-packages (2.19.1)
Requirement already satisfied: certifi>=2017.4.17 in /Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/site-packages (from requests) (2018.4.16)
Requirement already satisfied: chardet<3.1.0,>=3.0.2 in /Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/site-packages (from requests) (3.0.4)
Requirement already satisfied: urllib3<1.24,>=1.21.1 in /Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/site-packages (from requests) (1.23)
Requirement already satisfied: idna<2.8,>=2.5 in /Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/site-packages (from requests) (2.7)
1 |
pip install urllib3 |
Output:Requirement already satisfied: urllib3 in /Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/site-packages (1.23)
BUT when running command 1 |
twitter - photos |
1 |
twphotos |
Output:-bash: twitter-photos: command not found
OrOutput:-bash: twphotos: command not found
1 |
pip uninstall twitter - photos |
Output:Uninstalling twitter-photos-0.4.0:
Would remove:
/Users/local/Library/Python/2.7/bin/twphotos
/Users/local/Library/Python/2.7/lib/python/site-packages/twitter_photos-0.4.0-py2.7.egg-info
/Users/local/Library/Python/2.7/lib/python/site-packages/twphotos/*
I tried another command and it works OK1 |
pip uninstall twitter - photos |
Output:Successfully uninstalled twitter-photos-0.4.0
Then tried 1 |
pip install - - user twitter - photos |
Output:Using cached https://files.pythonhosted.org/packages/b0/d9/40da537d49971c07f5c2255844fde46cd4e40bc0da7e06e616a64d94b1ef/twitter-photos-0.4.0.tar.gz
Requirement already satisfied: python-twitter in /Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/site-packages (from twitter-photos) (3.4.2)
Requirement already satisfied: requests in /Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/site-packages (from twitter-photos) (2.19.1)
Requirement already satisfied: urllib3 in /Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/site-packages (from twitter-photos) (1.23)
Requirement already satisfied: future in /Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/site-packages (from python-twitter->twitter-photos) (0.16.0)
Requirement already satisfied: requests-oauthlib in /Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/site-packages (from python-twitter->twitter-photos) (1.0.0)
Requirement already satisfied: certifi>=2017.4.17 in /Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/site-packages (from requests->twitter-photos) (2018.4.16)
Requirement already satisfied: chardet<3.1.0,>=3.0.2 in /Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/site-packages (from requests->twitter-photos) (3.0.4)
Requirement already satisfied: idna<2.8,>=2.5 in /Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/site-packages (from requests->twitter-photos) (2.7)
Requirement already satisfied: oauthlib>=0.6.2 in /Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/site-packages (from requests-oauthlib->python-twitter->twitter-photos) (2.1.0)
Installing collected packages: twitter-photos
Running setup.py install for twitter-photos ... done
Successfully installed twitter-photos-0.4.0
Then tried running again and same problem errorfor more info I run the command:
1 |
echo $PATH |
Output:/Users/local/.rvm/gems/ruby-2.5.1/bin:/Users/local/.rvm/gems/ruby-2.5.1@global/bin:/Users/local/.rvm/rubies/ruby-2.5.1/bin:/usr/local/bin:/usr/bin:/bin:/usr/sbin:/sbin:/Users/local/.rvm/bin
Thank you for look at this in advance, I hope I've included all the right information. Please ask for any outputs or details and I'll come back with them.If you can explain what it is that needs checking and how things work, or any links to read further into what might cause this they would be much appreciated.
Regards XTR