How can I send the runlog.txt file to you???
Are you still having issues getting the application started or now actually downloading stuff? I believe you can attach it to a post in the bitcasa forums. But before you do, please explain whats going on. If you aren't able to get the program started it is likely a simple solution.
I have issues ...
So why not paste the issues here? You can copy the important lines.
Here you are my last test:
11/06/2014 07:36:11 [MainThread][INFO]: Logging loaded c:\BitcasaTMP\runlog.txt 11/06/2014 07:36:13 [MainThread][INFO]: Connection test successfull 11/06/2014 07:36:19 [Queuer 1][INFO]: 11/06/2014 07:36:19 [Queuer 1][ERROR]: Error getting or creating folder Traceback (most recent call last): File "C:\python27\bitcasafilelister-gdrive\python\gdrive.py", line 163, in get_folder_byname children = drive_service.children().list(folderId=parent, q="title = '%s' and mimeType = 'application/vnd.google-apps.folder'" % foldername).execute() File "C:\Python27\lib\site-packages\oauth2client\util.py", line 129, in positional_wrapper return wrapped(_args, *_kwargs) File "C:\Python27\lib\site-packages\googleapiclient\http.py", line 723, in execute raise HttpError(resp, content, uri=self.uri) HttpError: <HttpError 404 when requesting https://www.googleapis.com/drive/v2/files/0ByhUf7xmlNb-RXhNWmRRNlJnOU0%2F0ByhUf7xmlNb-T3lacWd0b011Xzg/children?q=title+%3D+%2710.-+BCN+Traders%27+and+mimeType+%3D+%27application%2Fvnd.google-apps.folder%27&alt=json returned "File not found:"> 11/06/2014 07:36:19 [Queuer 1][ERROR]: Will retry to get/create 10.- BCN Traders 2 more times 11/06/2014 07:36:30 [Queuer 1][ERROR]: Error getting or creating folder Traceback (most recent call last): File "C:\python27\bitcasafilelister-gdrive\python\gdrive.py", line 163, in get_folder_byname children = drive_service.children().list(folderId=parent, q="title = '%s' and mimeType = 'application/vnd.google-apps.folder'" % foldername).execute() File "C:\Python27\lib\site-packages\oauth2client\util.py", line 129, in positional_wrapper return wrapped(_args, *_kwargs) File "C:\Python27\lib\site-packages\googleapiclient\http.py", line 723, in execute raise HttpError(resp, content, uri=self.uri) HttpError: <HttpError 404 when requesting https://www.googleapis.com/drive/v2/files/0ByhUf7xmlNb-RXhNWmRRNlJnOU0%2F0ByhUf7xmlNb-T3lacWd0b011Xzg/children?q=title+%3D+%2710.-+BCN+Traders%27+and+mimeType+%3D+%27application%2Fvnd.google-apps.folder%27&alt=json returned "File not found:"> 11/06/2014 07:36:30 [Queuer 1][ERROR]: Will retry to get/create 10.- BCN Traders 1 more times 11/06/2014 07:36:41 [Queuer 1][ERROR]: Error getting or creating folder Traceback (most recent call last): File "C:\python27\bitcasafilelister-gdrive\python\gdrive.py", line 163, in get_folder_byname children = drive_service.children().list(folderId=parent, q="title = '%s' and mimeType = 'application/vnd.google-apps.folder'" % foldername).execute() File "C:\Python27\lib\site-packages\oauth2client\util.py", line 129, in positional_wrapper return wrapped(_args, *_kwargs) File "C:\Python27\lib\site-packages\googleapiclient\http.py", line 723, in execute raise HttpError(resp, content, uri=self.uri) HttpError: <HttpError 404 when requesting https://www.googleapis.com/drive/v2/files/0ByhUf7xmlNb-RXhNWmRRNlJnOU0%2F0ByhUf7xmlNb-T3lacWd0b011Xzg/children?q=title+%3D+%2710.-+BCN+Traders%27+and+mimeType+%3D+%27application%2Fvnd.google-apps.folder%27&alt=json returned "File not found:"> 11/06/2014 07:36:41 [Queuer 1][ERROR]: Will retry to get/create 10.- BCN Traders 0 more times 11/06/2014 07:36:52 [Queuer 1][ERROR]: Error getting or creating folder Traceback (most recent call last): File "C:\python27\bitcasafilelister-gdrive\python\gdrive.py", line 163, in get_folder_byname children = drive_service.children().list(folderId=parent, q="title = '%s' and mimeType = 'application/vnd.google-apps.folder'" % foldername).execute() File "C:\Python27\lib\site-packages\oauth2client\util.py", line 129, in positional_wrapper return wrapped(_args, *_kwargs) File "C:\Python27\lib\site-packages\googleapiclient\http.py", line 723, in execute raise HttpError(resp, content, uri=self.uri) HttpError: <HttpError 404 when requesting https://www.googleapis.com/drive/v2/files/0ByhUf7xmlNb-RXhNWmRRNlJnOU0%2F0ByhUf7xmlNb-T3lacWd0b011Xzg/children?q=title+%3D+%2710.-+BCN+Traders%27+and+mimeType+%3D+%27application%2Fvnd.google-apps.folder%27&alt=json returned "File not found:"> 11/06/2014 07:36:52 [Queuer 1][ERROR]: Failed to get/create folder 11/06/2014 07:36:54 [Queuer 7][INFO]: Queuer shutting down. All folders processed 11/06/2014 07:36:54 [Queuer 5][INFO]: Queuer shutting down. All folders processed 11/06/2014 07:36:55 [Queuer 4][INFO]: Queuer shutting down. All folders processed 11/06/2014 07:36:55 [Queuer 9][INFO]: Queuer shutting down. All folders processed 11/06/2014 07:36:55 [Queuer 6][INFO]: Queuer shutting down. All folders processed 11/06/2014 07:36:55 [Queuer 3][INFO]: Queuer shutting down. All folders processed 11/06/2014 07:36:55 [Queuer 18][INFO]: Queuer shutting down. All folders processed 11/06/2014 07:36:55 [Queuer 12][INFO]: Queuer shutting down. All folders processed 11/06/2014 07:36:55 [Queuer 2][INFO]: Queuer shutting down. All folders processed 11/06/2014 07:36:57 [Queuer 19][INFO]: Queuer shutting down. All folders processed 11/06/2014 07:36:58 [Queuer 13][INFO]: Queuer shutting down. All folders processed 11/06/2014 07:36:58 [Queuer 1][INFO]: Queuer shutting down. All folders processed 11/06/2014 07:36:59 [Queuer 8][INFO]: Queuer shutting down. All folders processed 11/06/2014 07:36:59 [Queuer 10][INFO]: Queuer shutting down. All folders processed 11/06/2014 07:36:59 [Queuer 20][INFO]: Queuer shutting down. All folders processed 11/06/2014 07:37:01 [Queuer 14][INFO]: Queuer shutting down. All folders processed 11/06/2014 07:37:03 [Queuer 11][INFO]: Queuer shutting down. All folders processed 11/06/2014 07:37:04 [Queuer 15][INFO]: Queuer shutting down. All folders processed 11/06/2014 07:37:07 [Queuer 16][INFO]: Queuer shutting down. All folders processed 11/06/2014 07:37:09 [MainThread][INFO]: Waiting for Downloader to shutdown 11/06/2014 07:37:10 [Queuer 17][INFO]: Queuer shutting down 11/06/2014 07:37:14 [MainThread][INFO]: Waiting for Downloader to shutdown 11/06/2014 07:37:19 [Downloader][INFO]: Downloader shutting down 11/06/2014 07:37:19 [MainThread][INFO]: Waiting for Downloader to shutdown 11/06/2014 07:37:19 [MainThread][INFO]: Total download time: 0 secs 11/06/2014 07:37:19 [MainThread][INFO]: Total run time: 1.12 minutes 11/06/2014 07:37:19 [MainThread][INFO]: Total copy time: 0 secs 11/06/2014 07:37:19 [MainThread][INFO]: Download speed: 0B at 0B/s 11/06/2014 07:37:19 [MainThread][INFO]: Run speed: 0B at 0B/s 11/06/2014 07:37:19 [MainThread][INFO]: Copy speed: 0B at 0B/s 11/06/2014 07:37:19 [MainThread][INFO]: Done
Please run the following series of commands in the same folder as gdrive.py.
Please note order and case matter. Replace
Also, double check that if you login to drive.google.com in the same browser that opens for auth you are logged in to the correct account. If not, logout of google drive, and then perform oauth.
python
from gdrive import GoogleDrive
g = GoogleDrive()
g.test_auth()
g.test_auth("<google drive folder id>")
quit()
Please add the output of this as a comment
I must to go now... to work... later today I will start from the beginning and at this point (Gdrive) I will check what you suggest. In the meantime, if you have some new Update or new release... please, tell me to test instead of the one I have.
As I guess, from you last e-mail... meybe the problem is because I used 2 diferents browsers ... and not the same to get the auth codes...
Sorry because the delay, but I had some problems at work and until now i had no time to do this. Here you are the results... I tried with 3 diferents ways"... but everytime I received the same problem.
PS C:\python27\bitcasafilelister-gdrive\python> python getfiles.py --oauth 11/07/2014 07:25:51 [MainThread][INFO]: Logging loaded ./runlog.txt https://developer.api.bitcasa.com/v1/oauth2/authenticate?redirect=https%3A%2F%2Frose-llc.com%2Fbitcasafilelist%2F&client _id=758ab3de
PS C:\python27\bitcasafilelister-gdrive\python> python getfiles.py --settoken US1_7417c13ece144c7e86841190f9e90038 11/07/2014 07:26:43 [MainThread][INFO]: Logging loaded ./runlog.txt Storing permanent token US1_213c627be4054f098aeb649c3cf740c5_758ab3de
PS C:\python27\bitcasafilelister-gdrive\python> pip install --upgrade google-api-python-client Requirement already up-to-date: google-api-python-client in c:\python27\lib\site-packages Requirement already up-to-date: httplib2>=0.8 in c:\python27\lib\site-packages (from google-api-python-client) Requirement already up-to-date: oauth2client>=1.3 in c:\python27\lib\site-packages (from google-api-python-client) Requirement already up-to-date: uritemplate>=0.6 in c:\python27\lib\site-packages (from google-api-python-client) Requirement already up-to-date: pyasn1==0.1.7 in c:\python27\lib\site-packages (from oauth2client>=1.3->google-api-pytho n-client) Requirement already up-to-date: pyasn1-modules==0.0.5 in c:\python27\lib\site-packages (from oauth2client>=1.3->google-a pi-python-client) Requirement already up-to-date: rsa==3.1.4 in c:\python27\lib\site-packages (from oauth2client>=1.3->google-api-python-c lient) Requirement already up-to-date: simplejson>=2.5.0 in c:\python27\lib\site-packages (from uritemplate>=0.6->google-api-py thon-client) Cleaning up...
PS C:\python27\bitcasafilelister-gdrive\python> python gdrive.py 11/07/2014 07:28:24 [MainThread][INFO]: Logging loaded ./runlog.txt 11/07/2014 07:28:26 [MainThread][INFO]: Connection test successfull auth already available
PS C:\python27\bitcasafilelister-gdrive\python> python Python 2.7.8 (default, Jun 30 2014, 16:08:48) [MSC v.1500 64 bit (AMD64)] on win32 Type "help", "copyright", "credits" or "license" for more information.
from gdrive import GoogleDrive 11/07/2014 07:30:01 [MainThread][INFO]: Logging loaded ./runlog.txt g = GoogleDrive() g.test_auth() 11/07/2014 07:30:33 [MainThread][INFO]: Connection test successfull True g.test_auth("https://drive.google.com/drive/u/1/#folders/0ByhUf7xmlNb-RXhNWmRRNlJnOU0/0ByhUf7xmlNb-T3lacWd0b011Xzg")
11/07/2014 07:31:21 [MainThread][ERROR]: Connection test failed Traceback (most recent call last): File "gdrive.py", line 62, in test_auth drive_service.children().list(folderId=folder_id).execute() File "C:\Python27\lib\site-packages\oauth2client\util.py", line 129, in positional_wrapper return wrapped(_args, *_kwargs) File "C:\Python27\lib\site-packages\googleapiclient\http.py", line 723, in execute raise HttpError(resp, content, uri=self.uri) HttpError: <HttpError 404 when requesting https://www.googleapis.com/drive/v2/files/https%3A%2F%2Fdrive.google.com%2Fdri ve%2Fu%2F1%2F%23folders%2F0ByhUf7xmlNb-RXhNWmRRNlJnOU0%2F0ByhUf7xmlNb-T3lacWd0b011Xzg/children?alt=json returned "File n ot found:"> False
quit() PS C:\python27\bitcasafilelister-gdrive\python>
@BonteConsulting The issue is the folder id you are using. As stated in the wiki you only need the LAST portion of the url which is a random string of letters and numbers. In the example you posted, you should have done this:
g.test_auth("0ByhUf7xmlNb-T3lacWd0b011Xzg")
I am sorry, but I really lost because everytime I get diferents errors... and I follow exactlly your instructions.
1.- For example... Why it store diferent token number than I put in the parameter???
PS C:> cd python27 PS C:\python27> cd bitcasafilelister-master PS C:\python27\bitcasafilelister-master> cd python PS C:\python27\bitcasafilelister-master\python> python getfiles.py --oauth https://developer.api.bitcasa.com/v1/oauth2/authenticate?redirect=https%3A%2F%2Frose-llc.com%2Fbitcasafilelist%2F&cli _id=758ab3de PS C:\python27\bitcasafilelister-master\python> python getfiles.py --settoken US1_256b0b3f357f41d3bf4a9000b35ad36f Storing permanent token US1_4cc3cdce32b14094b2f9f8bc23495171_758ab3de PS C:\python27\bitcasafilelister-master\python>
2.- Following next step, althrough... as you could see... not working for me
PS C:\python27\bitcasafilelister-master\python> python getfiles.py /FNY96SlnRJ2j2x94XiPQxg "C:\BitcasaTMP\05.- RESTAURAN T CAL ROTES S.L" -p --verbose -m 20 11/08/2014 06:24:40 [MainThread][INFO]: Logging loaded 11/08/2014 06:24:40 [MainThread][DEBUG]: Debug is set 11/08/2014 06:24:40 [MainThread][DEBUG]: Initializing Bitcasa 11/08/2014 06:24:40 [MainThread][DEBUG]: src: /FNY96SlnRJ2j2x94XiPQxg 11/08/2014 06:24:40 [MainThread][DEBUG]: dst: C:\BitcasaTMP\05.- RESTAURANT CAL ROTES S.L 11/08/2014 06:24:40 [MainThread][DEBUG]: at: US1_4cc3cdce32b14094b2f9f8bc23495171_758ab3de 11/08/2014 06:24:40 [MainThread][DEBUG]: tmp: None 11/08/2014 06:24:40 [MainThread][DEBUG]: logdir: C:\BitcasaTMP\05.- RESTAURANT CAL ROTES S.L 11/08/2014 06:24:40 [MainThread][DEBUG]: rec: True 11/08/2014 06:24:40 [MainThread][DEBUG]: depth: None 11/08/2014 06:24:40 [MainThread][DEBUG]: mt: 20 11/08/2014 06:24:40 [MainThread][DEBUG]: p: True 11/08/2014 06:24:40 [MainThread][DEBUG]: Getting base folder 11/08/2014 06:24:42 [MainThread][WARNING]: Couldn't get base folder 2001. Will retry 2 more times 11/08/2014 06:24:43 [MainThread][WARNING]: Couldn't get base folder 2001. Will retry 1 more times 11/08/2014 06:24:45 [MainThread][WARNING]: Couldn't get base folder 2001. Will retry 0 more times 11/08/2014 06:24:45 [MainThread][ERROR]: Error could not retreive base folder 11/08/2014 06:24:45 [MainThread][INFO]: Done PS C:\python27\bitcasafilelister-master\python>
That is normal...
Same for me and it works
@cappa83 Please, I update my previous comment... have a look and tell me if you see some thing wrong!!!
Use a short foldername...
Wirhout quotes and without spaces... That should work
But as I can see the problem is not the local name... is the Base64 folder name!!!
Look... first with a short name... second without quotes
PS C:\python27\bitcasafilelister-master\python> python getfiles.py /FNY96SlnRJ2j2x94XiPQxg "C:\BitcasaTMP\05" -p --verbo se -m 20 11/08/2014 06:37:18 [MainThread][INFO]: Logging loaded 11/08/2014 06:37:18 [MainThread][DEBUG]: Debug is set 11/08/2014 06:37:18 [MainThread][DEBUG]: Initializing Bitcasa 11/08/2014 06:37:18 [MainThread][DEBUG]: src: /FNY96SlnRJ2j2x94XiPQxg 11/08/2014 06:37:18 [MainThread][DEBUG]: dst: C:\BitcasaTMP\05 11/08/2014 06:37:18 [MainThread][DEBUG]: at: US1_4cc3cdce32b14094b2f9f8bc23495171_758ab3de 11/08/2014 06:37:18 [MainThread][DEBUG]: tmp: None 11/08/2014 06:37:18 [MainThread][DEBUG]: logdir: C:\BitcasaTMP\05 11/08/2014 06:37:18 [MainThread][DEBUG]: rec: True 11/08/2014 06:37:18 [MainThread][DEBUG]: depth: None 11/08/2014 06:37:18 [MainThread][DEBUG]: mt: 20 11/08/2014 06:37:18 [MainThread][DEBUG]: p: True 11/08/2014 06:37:18 [MainThread][DEBUG]: Getting base folder 11/08/2014 06:37:20 [MainThread][WARNING]: Couldn't get base folder 2001. Will retry 2 more times 11/08/2014 06:37:21 [MainThread][WARNING]: Couldn't get base folder 2001. Will retry 1 more times 11/08/2014 06:37:23 [MainThread][WARNING]: Couldn't get base folder 2001. Will retry 0 more times 11/08/2014 06:37:23 [MainThread][ERROR]: Error could not retreive base folder 11/08/2014 06:37:23 [MainThread][INFO]: Done PS C:\python27\bitcasafilelister-master\python> python getfiles.py /FNY96SlnRJ2j2x94XiPQxg C:\BitcasaTMP\05 -p --verbose -m 20 11/08/2014 06:37:40 [MainThread][INFO]: Logging loaded 11/08/2014 06:37:40 [MainThread][DEBUG]: Debug is set 11/08/2014 06:37:40 [MainThread][DEBUG]: Initializing Bitcasa 11/08/2014 06:37:40 [MainThread][DEBUG]: src: /FNY96SlnRJ2j2x94XiPQxg 11/08/2014 06:37:40 [MainThread][DEBUG]: dst: C:\BitcasaTMP\05 11/08/2014 06:37:40 [MainThread][DEBUG]: at: US1_4cc3cdce32b14094b2f9f8bc23495171_758ab3de 11/08/2014 06:37:40 [MainThread][DEBUG]: tmp: None 11/08/2014 06:37:40 [MainThread][DEBUG]: logdir: C:\BitcasaTMP\05 11/08/2014 06:37:40 [MainThread][DEBUG]: rec: True 11/08/2014 06:37:40 [MainThread][DEBUG]: depth: None 11/08/2014 06:37:40 [MainThread][DEBUG]: mt: 20 11/08/2014 06:37:40 [MainThread][DEBUG]: p: True 11/08/2014 06:37:40 [MainThread][DEBUG]: Getting base folder 11/08/2014 06:37:42 [MainThread][WARNING]: Couldn't get base folder 2001. Will retry 2 more times 11/08/2014 06:37:43 [MainThread][WARNING]: Couldn't get base folder 2001. Will retry 1 more times 11/08/2014 06:37:44 [MainThread][WARNING]: Couldn't get base folder 2001. Will retry 0 more times 11/08/2014 06:37:44 [MainThread][ERROR]: Error could not retreive base folder 11/08/2014 06:37:44 [MainThread][INFO]: Done PS C:\python27\bitcasafilelister-master\python>
I found the way to work properlly for me... it is using this syntax:
python getfiles.py /2aZ9NhuGQ_eyk7WIp_ULtg/FNY96SlnRJ2j2x94XiPQxg "C:\BitcasaTMP\05" -p --verbose -m 20
Then it means that Michael suggestion was wrong??? ...
"...you only need the LAST url part for the folder id "
Well, maybe I confussing you... because Michael's suggestion was in the gdrive wiki, and now I am using only copy from Bitcasa to local drive, because gdrive was not working for me... and time goes and I want to have at least a local copy of all my stuff in Bitcasa before 15th
Oh dear
You Are mixing different versions ans problems together
Also you never do exactly this what we say
In gdrive you Need the last folder In bitcasa the full.
Thankyou I realized now...
By the way, Do you expert in gdrive???
It depends on what you call expert I use it extensive