python getfiles.py --oauth
I am running python 2.7.3 I edited utils.py and changed lines 4 and 5 to the client ID and secret I got from Bitcasa
When I try to run python getfiles.py --oauth I get the following error:
myUSER@myVPS:/BitcasaFileLister/python$ python getfiles.py --oauth
Traceback (most recent call last):
File "getfiles.py", line 1, in
edit: I get the same error whether I run as sudo or not.
Pip install request
I keep trying to run commands without sudo... pip wasn't installed and needed to be run as sudo, which I didn't know. I'm still getting an error:
Successfully installed requests unidecode Cleaning up... myUSER@myVPS:/BitcasaFileLister/python$ python --version Python 2.7.3 myUSER@myVPS:/BitcasaFileLister/python$ sudo python getfiles.py --oauthA usage: getfiles.py [-h] [--settoken TOKEN] [-t TEMP] [-l LOG] [--depth DEPTH] [-m THREADS] [--norecursion] [--noconsole] [--oauth] [--verbose] [--testauth] [-p] [--version] src dst getfiles.py: error: too few arguments myUSER@myVPS:/BitcasaFileLister/python$ sudo pip install requset Downloading/unpacking requset Could not find any downloads that satisfy the requirement requset No distributions at all found for requset Storing complete log in /root/.pip/pip.log myUSER@myVPS:/BitcasaFileLister/python$ sudo pip install requests unidecod e Requirement already satisfied (use --upgrade to upgrade): requests in /usr/local /lib/python2.7/dist-packages Requirement already satisfied (use --upgrade to upgrade): unidecode in /usr/loca l/lib/python2.7/dist-packages Cleaning up... myUSER@myVPS:/BitcasaFileLister/python$
myUSER@myVPS:/BitcasaFileLister/python$ sudo python getfiles.py --oauthA
I believe the only reason this didn't work is because you had a trailing capitol 'A'. Please run instead:
python getfiles.py --oauth
Not sure where I picked that up... thanks!