BitcasaFileLister icon indicating copy to clipboard operation
BitcasaFileLister copied to clipboard

python getfiles.py --oauth

Open skeeve42 opened this issue 12 years ago • 4 comments

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 from bitcasa import BitcasaClient, BitcasaFolder, BitcasaFile File "/BitcasaFileLister/python/bitcasa/init.py", line 2, in from .client import BitcasaClient File "/BitcasaFileLister/python/bitcasa/client.py", line 3, in import requests ImportError: No module named requests myUSER@myVPS:/BitcasaFileLister/python$

edit: I get the same error whether I run as sudo or not.

skeeve42 avatar Nov 05 '14 06:11 skeeve42

Pip install request

ghost avatar Nov 05 '14 06:11 ghost

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$

skeeve42 avatar Nov 05 '14 06:11 skeeve42

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

reallistic avatar Nov 05 '14 06:11 reallistic

Not sure where I picked that up... thanks!

skeeve42 avatar Nov 05 '14 08:11 skeeve42