Skip to content
This repository has been archived by the owner on Apr 19, 2023. It is now read-only.

Team Drive Support #260

Open
dav1303 opened this issue Feb 18, 2017 · 41 comments
Open

Team Drive Support #260

dav1303 opened this issue Feb 18, 2017 · 41 comments

Comments

@dav1303
Copy link

dav1303 commented Feb 18, 2017

Hi

Can we use gdrive with team drives ?
I've done a test but it not see my main folder

Thanks

@stevenjswanson
Copy link

+1 this would be very useful.

@aryabhatt
Copy link

+1 please add the feature

@vitalidze
Copy link

+1 for this feature

@davidvered
Copy link

+1 for this too

@bethsheets
Copy link

+1 would greatly appreciate this feature

@mxmader
Copy link

mxmader commented Mar 25, 2018

seems this project is no longer actively maintained. has anyone found a solution for programmatically sending files to a Team Drive?

@obradovic
Copy link

Looks like its part of the v3 API: https://developers.google.com/drive/v3/reference/teamdrives

@russell-j
Copy link

Also would love to use gdrive with Team Drives, getting the same errors as people above:

Failed to get file: googleapi: Error 404: File not found: id., notFound

where id is my team drive folder ID.

https://developers.google.com/drive/api/v3/enable-teamdrives

@iSWORD
Copy link

iSWORD commented Jun 21, 2018

Maybe we could use this as an alternative?
https://github.com/gsuitedevs/PyDrive

@mxmader
Copy link

mxmader commented Jun 21, 2018 via email

@petrpulc
Copy link

petrpulc commented Nov 1, 2018

I just added support for team drives in petrpulc@99488f9 (see #409 )

@ghost
Copy link

ghost commented Dec 17, 2018

So I've downloaded v2.1.0 - how do I access my team drive? Nothing in the help text indicates what I need to do....

@petrpulc
Copy link

@mattb98 try to download my version from https://drive.google.com/drive/folders/12GSQhLLdKDdKzq_a-7WOrip5HnFmm1v9

The only change it brings right now, is that it marks the requests as Team-drive-compatible. Proceed as I usually do: open the google drive in browser, locate the item ids to manipulate with (last segment of URL) and use them in gdrive

@timpauvictor
Copy link

@mattb98 try to download my version from https://drive.google.com/drive/folders/12GSQhLLdKDdKzq_a-7WOrip5HnFmm1v9

The only change it brings right now, is that it marks the requests as Team-drive-compatible. Proceed as I usually do: open the google drive in browser, locate the item ids to manipulate with (last segment of URL) and use them in gdrive

How do I use the team id's with it?

@petrpulc
Copy link

The team drive object IDs are handled the same way as any other object IDs.

Assume that the file on team drive has ID 12345abcde, you can use the same gdrive download 12345abcde

@Confurious
Copy link

I am using the linux system and would like to download the team drive-compatible version of gdrive, could you point to me which version exactly it is as there are many in the link you provided? Thanks

@petrpulc
Copy link

The version is dependent on your platform.

On a "regular" and recent PC/Laptop use linux-x64.
On older (32-bit) PC use linux-386.

@sylvanosullivan
Copy link

@petrpulc lifesaver, thanks man!

@Oblivious02
Copy link

The version is dependent on your platform.

On a "regular" and recent PC/Laptop use linux-x64.
On older (32-bit) PC use linux-386.

Is there any way I can upload directly to team drive?

@petrpulc
Copy link

Is there any way I can upload directly to team drive?

Of course, if you use the version with teamdrive support, use the ID of the folder you want to upload to. The fastest way to obtain the ID is to navigate to the shard drive with your browser and copy the last segment of URL

@Oblivious02
Copy link

Is there any way I can upload directly to team drive?

Of course, if you use the version with teamdrive support, use the ID of the folder you want to upload to. The fastest way to obtain the ID is to navigate to the shard drive with your browser and copy the last segment of URL

Can you give me an example for the command I'm typing?

@petrpulc
Copy link

petrpulc commented Apr 29, 2019

Is there any way I can upload directly to team drive?

Of course, if you use the version with teamdrive support, use the ID of the folder you want to upload to. The fastest way to obtain the ID is to navigate to the shard drive with your browser and copy the last segment of URL

Can you give me an example for the command I'm typing?

  1. Navigate with browser to the folder/team drive you want to upload to
  2. Get last segment from URL, i.e.: drive.google.com/drive/u/1/folders/ID
  3. Execute gdrive upload -p ID /path/on/pc

@Oblivious02
Copy link

Is there any way I can upload directly to team drive?

Of course, if you use the version with teamdrive support, use the ID of the folder you want to upload to. The fastest way to obtain the ID is to navigate to the shard drive with your browser and copy the last segment of URL

Can you give me an example for the command I'm typing?

  1. Navigate with browser to the folder/team drive you want to upload to
  2. Get last segment from URL, i.e.: drive.google.com/drive/u/1/folders/ID
  3. Execute gdrive upload -p ID /path/on/pc

"Failed to get file: googleapi: Error 404: File not found"
And I'm pretty sure I got the ID right

@Oblivious02
Copy link

Is there any way I can upload directly to team drive?

Of course, if you use the version with teamdrive support, use the ID of the folder you want to upload to. The fastest way to obtain the ID is to navigate to the shard drive with your browser and copy the last segment of URL

Can you give me an example for the command I'm typing?

  1. Navigate with browser to the folder/team drive you want to upload to
  2. Get last segment from URL, i.e.: drive.google.com/drive/u/1/folders/ID
  3. Execute gdrive upload -p ID /path/on/pc

I tried to reinstall again and I got this error:

root@97498:~# drive
/usr/local/bin/drive: line 1: syntax error near unexpected token <' /usr/local/bin/drive: line 1: <style>@font-face{font-family:'Roboto';font-style:italic;font-weight:400;src:local('Roboto Italic'),local('Roboto-Italic'),url(//fonts.gstatic.com/s/roboto/v18/KFOkCnqEu92Fr1Mu51xGIzc.ttf)format('truetype');}@font-face{font-family:'Roboto';font-style:normal;font-weight:300;src:local('Roboto Light'),local('Roboto-Light'),url(//fonts.gstatic.com/s/roboto/v18/KFOlCnqEu92Fr1MmSU5fChc9.ttf)format('truetype');}@font-face{font-family:'Roboto';font-style:normal;font-weight:400;src:local('Roboto Regular'),local('Roboto-Regular'),url(//fonts.gstatic.com/s/roboto/v18/KFOmCnqEu92Fr1Mu7GxP.ttf)format('truetype');}@font-face{font-family:'Roboto';font-style:normal;font-weight:700;src:local('Roboto Bold'),local('Roboto-Bold'),url(//fonts.gstatic.com/s/roboto/v18/KFOlCnqEu92Fr1MmWUlfChc9.ttf)format('truetype');}</style><title>gdrive-linux-arm - „Google“ diskas</title><script>docs_flag_initialData={"docs-ails":"docs_cold","docs-fwds":"docs_sdf","docs-crs":"docs_crs_nfd","docs-tfh":"","info_params":{},"docosEmbedApiJs":"//docs.google.com/comments/d/AAHRpnXtsBn58El_e9z1Wi53ajyfO3lM-6IyceI1gSTdvIb4EJ8m_AOhf7dBYbL8MGu7CD0Kbt5GCeHT3i5dMRSitK4WsJU4Nw/api/js?hl\u003dlt","docs-edcsp":false,"docs-eohmo":false,"uls":"","icso":false,"docs-obsImUrl":"https://ssl.gstatic.com/docs/common/netcheck.gif","docs-ce":false,"buildLabel":"texmex_2019.17-Fri_RC00","docs-show_debug_info":false,"ondlburl":"https://docs.google.com","drive_url":"https://drive.google.com","app_url":"https://drive.google.com/file/","docs-mid":2048,"docs-eicd":false,"docs-icdmt":[],"docs-sup":"/file","docs-seu":"https://drive.google.com/file/d/1enssEMj7FXEZUkbu8AVabOeKRmWt99wa/edit","docs-ecvca":true,"docs-uptc":["lsrp","ca","sh","noreplica","ouid","dl","dods","usp","urp","utm_source","utm_medium","utm_campaign","utm_term","utm_content","sle"],"docs-doddn":"","docs-dodn":"","docs-uddn":"","docs-udn":"","docs-cwsd":"","docs-gsmd":"","docs-epil":false,"docs-al":[0,0,0,1,0],"docs-deculmu":"","docs-deuoflmu":"","docs-deodlmu":"","docs-eaclivu":false,"docs-ndt":"Untitled Texmex","docs-prn":"","docs-sfcnidt":false,"docs-ecat":false,"docs-sfcnidtwi":false,"docs-as":"","docs-ack":"","docs-etdimo":false,"docs-mdck":"","docs-etiff":false,"docs-spfe":true,"docs-mriim":1800000,"docs-eccbs":false,"docos-sosj":false,"docs-rlmp":false,"docs-mmpt":15000,"docs-erd":false,"docs-erfar":false,"docs-ensb":false,"docs-ddts":false,"docs-uootuns":false,"docs-amawso":false,"docs-mdso":false,"docs-ofmpp":false,"docs-anlpfdo":false,"docs-pid":"","docs-ebbouf":false,"docs-efs":false,"docs-ricocpb":false,"docs-eali":false,"docs-ecaws":false,"docs-etauihm":false,"docs-egs":false,"docs-eeott":false,"docs-efoecc":false,"docs-eac":false,"docs-camxbtim":15000,"docs-camnbtim":5000,"docs-edsi":false,"docs-edp":false,"docs-edlo":false,"docs-ecas":false,"docs-offline-enccpd":false,"docs-edsl":false,"docs-eaiicwt":false,"docs-elmfv":false,"docs-ecafdo":false,"docs-efmsh":false,"ecid":true,"docs-pedd":true,"docs-eir":false,"docs-edll":false,"server_time_ms":1556739582729,"gaia_session_id":"","app-bc":"#d1d1d1","enable_iframed_embed_api":true,"docs-fut":"https://drive.google.com#folders/{folderId}","esid":true,"esubid":false,"docs-etbs":true,"docs-isb":false,"docs-enct":false,"docs-emtrlrc":false,"docs-emtrb1r":false,"docs-mtrb1c":"","docs-mtrb2c":"","docs-mtrb3c":"","docs-agdc":false,"docs-anddc":true,"docs-adndldc":false,"docs-efts":false,"docs-cp":false,"docs-dd":"","docs-dwc":false,"docs-amcacd":false,"docs-depquafr":false,"docs-ecqlr":false,"docs-elsr":false,"docs-elmc":false,"docs-emtrb2r":false,"docs-emtrb3r":false,"docs-esclr":false,"docs-frbanmc":false,"docs-rldce":false,"docs-sasic":false,"docs-daa":false,"docs-dom":false,"docs-ebidu":false,"docs-edamc":false,"docs-edomic":false,"docs-eddm":false,"docs-fwd":false,"docs-eflimt":false,"docs-elds":false,"docs-mcssa":false,"docs-eoaip":false,"docs-eosenzi":false,"docs-eppd":false,"docs-tdd":false,"docs-mib":5242880,"docs-mip":6250000,"docs-rsc":"","docs-ssi":false,"docs-gth":"","docs-po":"https://drive.google.com","docs-to":"https://drive.google.com","projector_view_url":"https://drive.google.com/file/d/1enssEMj7FXEZUkbu8AVabOeKRmWt99wa/view?usp\u003ddocs_web","opendv":false,"onePickImportDocumentUrl":"","opmbs":5242880,"opmpd":2500,"opbu":"https://docs.google.com/picker","opru":"https://drive.google.com/relay.html","opdu":false,"opccp":false,"ophi":"texmex","opst":"000770F2036F8AE927E7C7151D7D8C8E0C92A3A4560F862FD1::1556739582732","opuci":"","docs-eopiiv2":true,"docs-dm":"application/x-executable","docs-ndsom":[],"docs-sdsom":[],"jobset":"prod","docs-ealre":false,"docs-etauo":false,"docs-ecad":false,"docs-etblb":false,"docs-eeb":false,"docs-eqsruatbu":false,"docs-se":false,"docs-egf":false,"docs-enhpc":false,"docs-spdy":false,"xdbcfAllowHostNamePrefix":true,"xdbcfAllowXpc":true,"docs-iror":true,"enable_pinned_revisions":false,"enable_edit_blob_revisions":false,"upload_url":"https://drive.google.com/upload/resumableupload","promo_url":"","promo_title":"","promo_title_prefix":"","promo_content_html":"","promo_more_element_text":"","promo_element_id":"","promo_orientation":1,"promo_arrow_alignment":0,"promo_show_on_click":false,"promo_hide_arrow":false,"promo_show_on_load":false,"promo_mark_dismissed_on_show":false,"promo_use_global_preference":false,"promo_close_button_text":"","promo_icon_url":"","promo_action_id":"","promo_impression_id":0,"maps_api_uri":"https://maps.googleapis.com/maps/api/js?key\u003dAIzaSyCMp6sr4oTC18AWkE2Ii4UBZHTHEpGZWZM\u0026sensor\u003dfalse","maps_display_uri":"https://maps.google.com/maps","docs-eghrcw":true,"docs-epcc":false,"docs_abuse_link":"https://drive.google.com/abuse?id\u003d1enssEMj7FXEZUkbu8AVabOeKRmWt99wa","docs-msoil":"docs_spanner","docs-gsoil":"docs_gsabs","docs-fsd":false,"docs_oogt":"NONE"}; docs_flag_cek= null ;</script><script>;this.gbar={CONFIG:[[[0,"www.gstatic.com","og.qtm.en_US.e6VlxnDfWAw.O","lt","lt","25",0,[4,2,".40.40.40.40.40.40.","","1300102,3700275","245673782","0"],null,"vXJXMaZLIOWzwK8oJPICA",null,0,"og.qtm.1y16skrswu7vk.L.X.O","AA2YrTv_ocHdZd8TCg0n9umWZp1E0Q0MMg","AA2YrTs89fDlDTD-EJcqCHCrUNinzohs-A","",2,0,200,"LTU",null,null,"25","25",1],null,null,null,[0,0,0,null,"","","",""],[0,0,"",1,0,0,0,0,0,0,0,0,0,null,0,0,null,0,0,0,0,"","","","","","","",0,0,0,0,0,1,1,1,"rgba(32,33,36,1)","rgba(255,255,255,1)",0],null,null,["1","gci_91f30755d6a6b787dcc2a4062e6e9824.js","googleapis.client:plusone:gapi.iframes","","lt"],null,null,null,null,["m;//scs/abc-static//js/k=gapi.gapi.en.NqPOw1G8B3I.O/rt=j/d=1/rs=AHpOoo9Un2bnlKyVHr37bEqQCNKVG9ZmzA/m=features","https://apis.google.com","","","","",null,1,"es_plusone_gc_20190408.0_p0","lt",null,0],[0.009999999776482582,"lt","25",[null,"","w",null,1,5184000,1,0,"",0,1,"",0,0,0,0,0,0],null,[["","","0",0,0,-1]],null,0,null,null,["5061451","google\.(com|ru|ca|by|kz|com\.mx|com\.tr)$",1]],[1,1,0,27043,25,"LTU","lt","245673782.0",8,0.009999999776482582,0,0,null,null,0,0,"",1,1,1,"vXJXMaZLIOWzwK8oJPICA"],[[null,null,null,"https://www.gstatic.com/og//js/k=og.qtm.en_US.e6VlxnDfWAw.O/rt=j/m=q_d,qmutsd,qbg,qbd/exm=qaaw,qabr,qadd,qaid,qalo,qebr,qein,qhaw,qhbr,qhch,qhga,qhid,qhin,qhlo,qhmn,qhpc,qhpr,qhsf,qhtb,qhtt/d=1/ed=1/rs=AA2YrTv_ocHdZd8TCg0n9umWZp1E0Q0MMg"],[null,null,null,"https://www.gstatic.com/og//ss/k=og.qtm.1y16skrswu7vk.L.X.O/m=q_d/excm=qaaw,qabr,qadd,qaid,qalo,qebr,qein,qhaw,qhbr,qhch,qhga,qhid,qhin,qhlo,qhmn,qhpc,qhpr,qhsf,qhtb,qhtt/d=1/ed=1/rs=AA2YrTs89fDlDTD-EJcqCHCrUNinzohs-A"]],null,null,[""]]],};this.gbar_=this.gbar_||{};(function(_){var window=this;'

@petrpulc
Copy link

petrpulc commented May 2, 2019

"Failed to get file: googleapi: Error 404: File not found"
And I'm pretty sure I got the ID right

Do you have the version that is compiled with team drive support?

I have such version available for most of the platforms on https://github.com/petrpulc/gdrive

@Oblivious02
Copy link

"Failed to get file: googleapi: Error 404: File not found"
And I'm pretty sure I got the ID right

Do you have the version that is compiled with team drive support?

I have such version available for most of the platforms on https://github.com/petrpulc/gdrive

Yes, I've installed the linux 64x for my Ubuntu 16 and got this error:

Is there any way I can upload directly to team drive?

Of course, if you use the version with teamdrive support, use the ID of the folder you want to upload to. The fastest way to obtain the ID is to navigate to the shard drive with your browser and copy the last segment of URL

Can you give me an example for the command I'm typing?

  1. Navigate with browser to the folder/team drive you want to upload to
  2. Get last segment from URL, i.e.: drive.google.com/drive/u/1/folders/ID
  3. Execute gdrive upload -p ID /path/on/pc

I tried to reinstall again and I got this error:

root@97498:~# drive
/usr/local/bin/drive: line 1: syntax error near unexpected token <' /usr/local/bin/drive: line 1: <style>@font-face{font-family:'Roboto';font-style:italic;font-weight:400;src:local('Roboto Italic'),local('Roboto-Italic'),url(//fonts.gstatic.com/s/roboto/v18/KFOkCnqEu92Fr1Mu51xGIzc.ttf)format('truetype');}@font-face{font-family:'Roboto';font-style:normal;font-weight:300;src:local('Roboto Light'),local('Roboto-Light'),url(//fonts.gstatic.com/s/roboto/v18/KFOlCnqEu92Fr1MmSU5fChc9.ttf)format('truetype');}@font-face{font-family:'Roboto';font-style:normal;font-weight:400;src:local('Roboto Regular'),local('Roboto-Regular'),url(//fonts.gstatic.com/s/roboto/v18/KFOmCnqEu92Fr1Mu7GxP.ttf)format('truetype');}@font-face{font-family:'Roboto';font-style:normal;font-weight:700;src:local('Roboto Bold'),local('Roboto-Bold'),url(//fonts.gstatic.com/s/roboto/v18/KFOlCnqEu92Fr1MmWUlfChc9.ttf)format('truetype');}</style><title>gdrive-linux-arm - „Google“ diskas</title><script>docs_flag_initialData={"docs-ails":"docs_cold","docs-fwds":"docs_sdf","docs-crs":"docs_crs_nfd","docs-tfh":"","info_params":{},"docosEmbedApiJs":"//docs.google.com/comments/d/AAHRpnXtsBn58El_e9z1Wi53ajyfO3lM-6IyceI1gSTdvIb4EJ8m_AOhf7dBYbL8MGu7CD0Kbt5GCeHT3i5dMRSitK4WsJU4Nw/api/js?hl\u003dlt","docs-edcsp":false,"docs-eohmo":false,"uls":"","icso":false,"docs-obsImUrl":"https://ssl.gstatic.com/docs/common/netcheck.gif","docs-ce":false,"buildLabel":"texmex_2019.17-Fri_RC00","docs-show_debug_info":false,"ondlburl":"https://docs.google.com","drive_url":"https://drive.google.com","app_url":"https://drive.google.com/file/","docs-mid":2048,"docs-eicd":false,"docs-icdmt":[],"docs-sup":"/file","docs-seu":"https://drive.google.com/file/d/1enssEMj7FXEZUkbu8AVabOeKRmWt99wa/edit","docs-ecvca":true,"docs-uptc":["lsrp","ca","sh","noreplica","ouid","dl","dods","usp","urp","utm_source","utm_medium","utm_campaign","utm_term","utm_content","sle"],"docs-doddn":"","docs-dodn":"","docs-uddn":"","docs-udn":"","docs-cwsd":"","docs-gsmd":"","docs-epil":false,"docs-al":[0,0,0,1,0],"docs-deculmu":"","docs-deuoflmu":"","docs-deodlmu":"","docs-eaclivu":false,"docs-ndt":"Untitled Texmex","docs-prn":"","docs-sfcnidt":false,"docs-ecat":false,"docs-sfcnidtwi":false,"docs-as":"","docs-ack":"","docs-etdimo":false,"docs-mdck":"","docs-etiff":false,"docs-spfe":true,"docs-mriim":1800000,"docs-eccbs":false,"docos-sosj":false,"docs-rlmp":false,"docs-mmpt":15000,"docs-erd":false,"docs-erfar":false,"docs-ensb":false,"docs-ddts":false,"docs-uootuns":false,"docs-amawso":false,"docs-mdso":false,"docs-ofmpp":false,"docs-anlpfdo":false,"docs-pid":"","docs-ebbouf":false,"docs-efs":false,"docs-ricocpb":false,"docs-eali":false,"docs-ecaws":false,"docs-etauihm":false,"docs-egs":false,"docs-eeott":false,"docs-efoecc":false,"docs-eac":false,"docs-camxbtim":15000,"docs-camnbtim":5000,"docs-edsi":false,"docs-edp":false,"docs-edlo":false,"docs-ecas":false,"docs-offline-enccpd":false,"docs-edsl":false,"docs-eaiicwt":false,"docs-elmfv":false,"docs-ecafdo":false,"docs-efmsh":false,"ecid":true,"docs-pedd":true,"docs-eir":false,"docs-edll":false,"server_time_ms":1556739582729,"gaia_session_id":"","app-bc":"#d1d1d1","enable_iframed_embed_api":true,"docs-fut":"https://drive.google.com#folders/{folderId}","esid":true,"esubid":false,"docs-etbs":true,"docs-isb":false,"docs-enct":false,"docs-emtrlrc":false,"docs-emtrb1r":false,"docs-mtrb1c":"","docs-mtrb2c":"","docs-mtrb3c":"","docs-agdc":false,"docs-anddc":true,"docs-adndldc":false,"docs-efts":false,"docs-cp":false,"docs-dd":"","docs-dwc":false,"docs-amcacd":false,"docs-depquafr":false,"docs-ecqlr":false,"docs-elsr":false,"docs-elmc":false,"docs-emtrb2r":false,"docs-emtrb3r":false,"docs-esclr":false,"docs-frbanmc":false,"docs-rldce":false,"docs-sasic":false,"docs-daa":false,"docs-dom":false,"docs-ebidu":false,"docs-edamc":false,"docs-edomic":false,"docs-eddm":false,"docs-fwd":false,"docs-eflimt":false,"docs-elds":false,"docs-mcssa":false,"docs-eoaip":false,"docs-eosenzi":false,"docs-eppd":false,"docs-tdd":false,"docs-mib":5242880,"docs-mip":6250000,"docs-rsc":"","docs-ssi":false,"docs-gth":"","docs-po":"https://drive.google.com","docs-to":"https://drive.google.com","projector_view_url":"https://drive.google.com/file/d/1enssEMj7FXEZUkbu8AVabOeKRmWt99wa/view?usp\u003ddocs_web","opendv":false,"onePickImportDocumentUrl":"","opmbs":5242880,"opmpd":2500,"opbu":"https://docs.google.com/picker","opru":"https://drive.google.com/relay.html","opdu":false,"opccp":false,"ophi":"texmex","opst":"000770F2036F8AE927E7C7151D7D8C8E0C92A3A4560F862FD1::1556739582732","opuci":"","docs-eopiiv2":true,"docs-dm":"application/x-executable","docs-ndsom":[],"docs-sdsom":[],"jobset":"prod","docs-ealre":false,"docs-etauo":false,"docs-ecad":false,"docs-etblb":false,"docs-eeb":false,"docs-eqsruatbu":false,"docs-se":false,"docs-egf":false,"docs-enhpc":false,"docs-spdy":false,"xdbcfAllowHostNamePrefix":true,"xdbcfAllowXpc":true,"docs-iror":true,"enable_pinned_revisions":false,"enable_edit_blob_revisions":false,"upload_url":"https://drive.google.com/upload/resumableupload","promo_url":"","promo_title":"","promo_title_prefix":"","promo_content_html":"","promo_more_element_text":"","promo_element_id":"","promo_orientation":1,"promo_arrow_alignment":0,"promo_show_on_click":false,"promo_hide_arrow":false,"promo_show_on_load":false,"promo_mark_dismissed_on_show":false,"promo_use_global_preference":false,"promo_close_button_text":"","promo_icon_url":"","promo_action_id":"","promo_impression_id":0,"maps_api_uri":"https://maps.googleapis.com/maps/api/js?key\u003dAIzaSyCMp6sr4oTC18AWkE2Ii4UBZHTHEpGZWZM\u0026sensor\u003dfalse","maps_display_uri":"https://maps.google.com/maps","docs-eghrcw":true,"docs-epcc":false,"docs_abuse_link":"https://drive.google.com/abuse?id\u003d1enssEMj7FXEZUkbu8AVabOeKRmWt99wa","docs-msoil":"docs_spanner","docs-gsoil":"docs_gsabs","docs-fsd":false,"docs_oogt":"NONE"}; docs_flag_cek= null ;</script><script>;this.gbar={CONFIG:[[[0,"www.gstatic.com","og.qtm.en_US.e6VlxnDfWAw.O","lt","lt","25",0,[4,2,".40.40.40.40.40.40.","","1300102,3700275","245673782","0"],null,"vXJXMaZLIOWzwK8oJPICA",null,0,"og.qtm.1y16skrswu7vk.L.X.O","AA2YrTv_ocHdZd8TCg0n9umWZp1E0Q0MMg","AA2YrTs89fDlDTD-EJcqCHCrUNinzohs-A","",2,0,200,"LTU",null,null,"25","25",1],null,null,null,[0,0,0,null,"","","",""],[0,0,"",1,0,0,0,0,0,0,0,0,0,null,0,0,null,0,0,0,0,"","","","","","","",0,0,0,0,0,1,1,1,"rgba(32,33,36,1)","rgba(255,255,255,1)",0],null,null,["1","gci_91f30755d6a6b787dcc2a4062e6e9824.js","googleapis.client:plusone:gapi.iframes","","lt"],null,null,null,null,["m;//scs/abc-static//js/k=gapi.gapi.en.NqPOw1G8B3I.O/rt=j/d=1/rs=AHpOoo9Un2bnlKyVHr37bEqQCNKVG9ZmzA/m=features","https://apis.google.com","","","","",null,1,"es_plusone_gc_20190408.0_p0","lt",null,0],[0.009999999776482582,"lt","25",[null,"","w",null,1,5184000,1,0,"",0,1,"",0,0,0,0,0,0],null,[["","","0",0,0,-1]],null,0,null,null,["5061451","google.(com|ru|ca|by|kz|com.mx|com.tr)$",1]],[1,1,0,27043,25,"LTU","lt","245673782.0",8,0.009999999776482582,0,0,null,null,0,0,"",1,1,1,"vXJXMaZLIOWzwK8oJPICA"],[[null,null,null,"https://www.gstatic.com/og//js/k=og.qtm.en_US.e6VlxnDfWAw.O/rt=j/m=q_d,qmutsd,qbg,qbd/exm=qaaw,qabr,qadd,qaid,qalo,qebr,qein,qhaw,qhbr,qhch,qhga,qhid,qhin,qhlo,qhmn,qhpc,qhpr,qhsf,qhtb,qhtt/d=1/ed=1/rs=AA2YrTv_ocHdZd8TCg0n9umWZp1E0Q0MMg"],[null,null,null,"https://www.gstatic.com/og//ss/k=og.qtm.1y16skrswu7vk.L.X.O/m=q_d/excm=qaaw,qabr,qadd,qaid,qalo,qebr,qein,qhaw,qhbr,qhch,qhga,qhid,qhin,qhlo,qhmn,qhpc,qhpr,qhsf,qhtb,qhtt/d=1/ed=1/rs=AA2YrTs89fDlDTD-EJcqCHCrUNinzohs-A"]],null,null,[""]]],};this.gbar_=this.gbar_||{};(function(_){var window=this;'

@petrpulc
Copy link

petrpulc commented May 2, 2019

I tried to reinstall again and I got this error:

root@97498:~# drive
/usr/local/bin/drive: line 1: syntax error near unexpected token <' /usr/local/bin/drive: line 1: <style>@font-face{font-family:'Roboto';font-style:italic;font-weight:400;src:local('Roboto
...

It looks like you saved the webpage with "preview" of google drive while downloading the gdrive-linux-arm. You need to push the download button, man...

@petrpulc
Copy link

petrpulc commented May 2, 2019

And are you sure you have ARM processor in your machine?

@Oblivious02
Copy link

I tried to reinstall again and I got this error:
root@97498:~# drive
/usr/local/bin/drive: line 1: syntax error near unexpected token <' /usr/local/bin/drive: line 1: <style>@font-face{font-family:'Roboto';font-style:italic;font-weight:400;src:local('Roboto
...

It looks like you saved the webpage with "preview" of google drive while downloading the gdrive-linux-arm. You need to push the download button, man...

Oh, that's one stupid mistake lol, I'm trying to download it but it keeps installing as HTML, when I press download it just downloads on the PC I'm using, can you give me a link to the Linux x64?

And are you sure you have ARM processor in your machine?

No, since x64 didn't work I was just trying ARM

@petrpulc
Copy link

petrpulc commented May 2, 2019

I tried to reinstall again and I got this error:
root@97498:~# drive
/usr/local/bin/drive: line 1: syntax error near unexpected token <' /usr/local/bin/drive: line 1: <style>@font-face{font-family:'Roboto';font-style:italic;font-weight:400;src:local('Roboto
...

It looks like you saved the webpage with "preview" of google drive while downloading the gdrive-linux-arm. You need to push the download button, man...

Oh, that's one stupid mistake lol, I'm trying to download it but it keeps installing as HTML, when I press download it just downloads on the PC I'm using, can you give me a link to the Linux x64?

And are you sure you have ARM processor in your machine?

No, since x64 didn't work I was just trying ARM

https://drive.google.com/open?id=1iIjBty1FKxdGvyc4GATngwgbzQdPYz2p

Just click the download button...

ARM version will not work on Intel or AMD CPUs because of a different instruction set.

And, BTW, this is an issue that discusses new feature, not a way how to get gdrive on your particular machine. Please, next time try to: 1) Read, 2) Think, 3) Try, 4) Try again, 5) And only if nothing works and you tried everything, ask. Following such procedure will be much appreciated.

@BoDJensen
Copy link

BoDJensen commented May 10, 2019

Hi,

Cheers for the gdive-"program"!

I have installed gdive via. LINUX (command line) on my seedbox (seedhost.eu).

I took the x64 Linux file from: https://github.com/gdrive-org/gdrive#downloads

I got the token accepted, and I tried to "fool around" to learn the commands.

I can upload files and directorys from my seedbox to my google drive without problems, even sepcifying a specific folder in google drive, and not only place the uploads in the root of my google drive.

However (and sorry for the long story up to now) I am not able to upload stuff to my "Team Drive" on the google drive.

When I write:

gdrive upload -r Testfolder -p folder-ID (a folder inside my personale google drive)
Everything works.

When I write:

gdrive upload -r Testfolder -p folder-ID (a folder I just made inside my team drive)

Then it reports an error (i am sorry I can't provide the exact lyrics about the error, but I am away from my personel computer with putty installed)

It seems that gdrive doesn't have acces to my team drive, and when I write:

gdrive list

Then the list only shows the folders and files inside my personel google drive.

Any thoughts what is wrong? As I have understanded, the gdrive was not able to handle team drive, but this was added in v3 of gdrive, but now it is also added in the 2.1 version, which is the one I have downloaded on the link here over(?)

Again thanks for all the hard work provided to us LINUX noobs ;o)

@petrpulc
Copy link

However (and sorry for the long story up to now) I am not able to upload stuff to my "Team Drive" on the google drive.

To do that, you need to use a version compiled with a team drive support, not this version.

If you have read this thread prior to asking, you would get a link do my version that has team drive support.

TLDR: Try to use version form here: https://drive.google.com/drive/folders/12GSQhLLdKDdKzq_a-7WOrip5HnFmm1v9

The changes are available in pull request: #409

@BoDJensen
Copy link

Aaaaaaah.. Sorry!

I have actually read the whote thread, and also some other threads around on the web.

Somewhere I came to the understanding, that everything (at some point) had been compiled into the version in my link.. ("One version to rule them all")

Well that makes sense then.

(Now I also understand why Mohammed2277 have problems: The link from my link can be used directly in the command line program in Linux.. Where the link you are providing to the other version has a "download button" which we can't direct link to inside the command line (might be because the downloadbutton changes link, so that other persons can't deeplink directly to it)..

But we should just download the file you link to, rename it to "gdrive", upload it to the root of our seedbox/LINUX system, and then follow the tutorial we already used, including creating a token to grant access, and then it should work.)

Thank you!

Will try it later, when I am back at my personel computer and putty.

@petrpulc
Copy link

("One version to rule them all")

Oh, yes, it should be like that, but this repository does not sadly include the merge requests as quickly as it should.

And as for the links, sorry for my laziness, passing a link to a Google Drive folder is much easier than linking all versions individually...

@BoDJensen
Copy link

You deserve a bit of laziness!
And us noobs need the "learning by fooling around" so that we can evolve.. So all is good!

@TonyHoyleRps
Copy link

Alas the files at https://drive.google.com/drive/folders/12GSQhLLdKDdKzq_a-7WOrip5HnFmm1v9 appear to have been banned by google - 'Sign in with Google temporarily disabled for this app'

Workarounds involve recompiling it which really isn't an option in this case.

@petrpulc
Copy link

petrpulc commented Jun 15, 2020

I am aware of that, this is sadly caused by a rather new change to Google APIs, will try to authorize the app in next week.

EDIT: sorry, had no time to do so :(

@Elbandi
Copy link

Elbandi commented Jan 22, 2021

I use @petrpulc commit, but changed two things:

  • SupportsTeamDrives is deprecated, so use SupportsAllDrives
  • some calls didnt use SupportsAllDrives

here is the commits: Elbandi/gdrive@06e9562...Elbandi:ff5def1a5ec210cd6e09a0f845710c6ab08ac3a3

@tsukiikekaoru
Copy link

I use @petrpulc commit, but changed two things:

  • SupportsTeamDrives is deprecated, so use SupportsAllDrives
  • some calls didnt use SupportsAllDrives

here is the commits: Elbandi/gdrive@06e9562...Elbandi:ff5def1a5ec210cd6e09a0f845710c6ab08ac3a3

did you remove download file of gdrive-linux-x64 version? i can download other platform files but only get 404 when i open download link of gdrive-linux-x64.

@petrpulc
Copy link

did you remove download file of gdrive-linux-x64 version? i can download other platform files but only get 404 when i open download link of gdrive-linux-x64.

No (check https://drive.google.com/drive/folders/12GSQhLLdKDdKzq_a-7WOrip5HnFmm1v9), but I suppose that the compiled version is way too outdated now.

@tsukiikekaoru
Copy link

did you remove download file of gdrive-linux-x64 version? i can download other platform files but only get 404 when i open download link of gdrive-linux-x64.

No (check https://drive.google.com/drive/folders/12GSQhLLdKDdKzq_a-7WOrip5HnFmm1v9), but I suppose that the compiled version is way too outdated now.

you are right. it has been outdated. it is a pity :(

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests