Comments (6)
I ran the rake test:
sudo rake test
Password:
fatal: Not a git repository (or any of the parent directories): .git
fatal: Not a git repository (or any of the parent directories): .git
fatal: Not a git repository (or any of the parent directories): .git
/System/Library/Frameworks/Ruby.framework/Versions/2.0/usr/bin/ruby -I"lib:test" -I"/Library/Ruby/Gems/2.0.0/gems/rake-10.4.2/lib" "/Library/Ruby/Gems/2.0.0/gems/rake-10.4.2/lib/rake/rake_test_loader.rb" "test/babelish/commands/test_command_android2csv.rb" "test/babelish/commands/test_command_csv2android.rb" "test/babelish/commands/test_command_csv2strings.rb" "test/babelish/commands/test_command_strings2csv.rb" "test/babelish/test_android2csv.rb" "test/babelish/test_base2csv.rb" "test/babelish/test_bins.rb" "test/babelish/test_commandline.rb" "test/babelish/test_csv2android.rb" "test/babelish/test_csv2base.rb" "test/babelish/test_csv2json.rb" "test/babelish/test_csv2php.rb" "test/babelish/test_csv2strings.rb" "test/babelish/test_json2csv.rb" "test/babelish/test_php2csv.rb" "test/babelish/test_strings2csv.rb" "test/babelish/test_xcode_macros.rb"
Loaded suite /Library/Ruby/Gems/2.0.0/gems/rake-10.4.2/lib/rake/rake_test_loader
Started
........Creating translations.csv
Done
.[["app_name", "action_greetings", "ANOTHER_STRING", "empty"], {"test/data/android.xml"=>{"app_name"=>"android2csv", "action_greetings"=>"Hello", "ANOTHER_STRING"=>"testEN", "empty"=>""}}]
.Creating translations.csv
Done
.Creating myfile.csv
Done
.Creating enfr.csv
Done
.Done
....Created 1 files.
List of created files:
- /Library/Ruby/Gems/2.0.0/gems/babelish-0.3.3/en.lproj/Localizable.strings
.Fetching csv file my_strings from Google Drive
1. Open this page:
https://accounts.google.com/o/oauth2/auth?access_type=offline&client_id=asdf0-egr1f18o96acjjvpadfo1d.apps.googleusercontent.com&redirect_uri=urn:ietf:wg:oauth:2.0:oob&response_type=code&scope=https://www.googleapis.com/auth/drive%20https://spreadsheets.google.com/feeds/%20https://docs.google.com/feeds/%20https://docs.googleusercontent.com/
2. Enter the authorization code shown in the page: 4/AdfgmuYqKasdf3autaLPhmpAg9H3df_k.0h-WidOIE80fgfg038sCsdfKAwilAI
Could not download the requested file: my_strings
F
===============================================================================
Failure:
test_csv2strings_with_google_doc(TestBins)
/Library/Ruby/Gems/2.0.0/gems/babelish-0.3.3/test/babelish/test_bins.rb:9:in `test_csv2strings_with_google_doc'
6: assert_nothing_raised do
7: system("./bin/babelish csv2strings --fetch --filename my_strings --langs English:en")
8: end
=> 9: assert_equal $?.exitstatus, 0
10: end
11:
12: def test_csv2strings_with_google_doc_missing_langs
<1> expected but was
<0>
diff:
? 1
? 0
===============================================================================
Fetching csv file my_strings from Google Drive
Could not download the requested file: my_strings
...Created 2 files.
List of created files:
- /Library/Ruby/Gems/2.0.0/gems/babelish-0.3.3/values-en/strings.xml
- /Library/Ruby/Gems/2.0.0/gems/babelish-0.3.3/values-fr/strings.xml
.Created 2 files.
List of created files:
- /Library/Ruby/Gems/2.0.0/gems/babelish-0.3.3/mynewlocation/values-en/strings.xml
- /Library/Ruby/Gems/2.0.0/gems/babelish-0.3.3/mynewlocation/values-fr/strings.xml
...............Created 1 files.
List of created files:
- /Library/Ruby/Gems/2.0.0/gems/babelish-0.3.3/en.lproj/Localizable.strings
generating macros
.Created 1 files.
List of created files:
- /Library/Ruby/Gems/2.0.0/gems/babelish-0.3.3/en.lproj/Localizable.strings
.Fetching csv file my_strings from Google Drive
Could not download the requested file: my_strings
F
===============================================================================
Failure:
Exception raised:
SystemExit(<exit>)
test_csv2strings_with_fetch_google_doc(TestCSV2StringsCommand)
/Library/Ruby/Gems/2.0.0/gems/babelish-0.3.3/test/babelish/commands/test_command_csv2strings.rb:42:in `test_csv2strings_with_fetch_google_doc'
39: :langs => {"English" => "en", "French" => "fr"},
40: :fetch => true
41: }
=> 42: assert_nothing_raised do
43: Commandline.new([], options).csv2strings
44: end
45:
===============================================================================
Fetching csv file my_strings from Google Drive
Could not download the requested file: my_strings
Finished in 21.562059 seconds.
41 tests, 53 assertions, 2 failures, 0 errors, 0 pendings, 0 omissions, 0 notifications
95.122% passed
1.90 tests/s, 2.46 assertions/s
[Coveralls] Outside the Travis environment, not sending data.
rake aborted!
Command failed with status (1): [ruby -I"lib:test" -I"/Library/Ruby/Gems/2.0.0/gems/rake-10.4.2/lib" "/Library/Ruby/Gems/2.0.0/gems/rake-10.4.2/lib/rake/rake_test_loader.rb" "test/babelish/commands/test_command_android2csv.rb" "test/babelish/commands/test_command_csv2android.rb" "test/babelish/commands/test_command_csv2strings.rb" "test/babelish/commands/test_command_strings2csv.rb" "test/babelish/test_android2csv.rb" "test/babelish/test_base2csv.rb" "test/babelish/test_bins.rb" "test/babelish/test_commandline.rb" "test/babelish/test_csv2android.rb" "test/babelish/test_csv2base.rb" "test/babelish/test_csv2json.rb" "test/babelish/test_csv2php.rb" "test/babelish/test_csv2strings.rb" "test/babelish/test_json2csv.rb" "test/babelish/test_php2csv.rb" "test/babelish/test_strings2csv.rb" "test/babelish/test_xcode_macros.rb" ]
Tasks: TOP => test
(See full trace by running task with --trace)
from babelish.
This was NOT solved by deleting the .babelish.token file! I only discovered that functionality while debugging.
Please reopen this issue.
from babelish.
This was NOT solved by deleting the .babelish.token file! I only discovered that functionality while debugging.
Please reopen this issue.
I found the solution
Problem
The Google Drive file I used was the "test_data_multiple_langs.csv" file from the examples. I uploaded it to Google Drive and converted it to a Google Spreadsheet file. But somehow this seems to break the babelish or Google Drive and throws this 400 error (which does not make sense here and confused me).
Solution
Create a blank Google Spreadsheet file and use that, don't upload a csv file.
from babelish.
Interesting, I'll have a look when possible, but probably related to https://github.com/gimite/google-drive-ruby
from babelish.
I think it is more related to Google than the drive-ruby thing. Google returns wrong information for those kinds of files.
Anyway I will open a ticket at google-drive-ruby
from babelish.
See gimite/google-drive-ruby#122
from babelish.
Related Issues (20)
- Fetching csv file from google drive error HOT 3
- Sign in with Google temporarily disabled for this app HOT 17
- Cannot load such file -- babelish/keys HOT 5
- Ruby version 2.7.0 warnings
- Support OneDrive HOT 1
- Android strings.xml indented with tabs instead of spaces HOT 2
- Google disabled this app HOT 4
- Can't update fastlane due to dependency lock HOT 5
- Apostrophe Issue HOT 1
- docker image not working
- Ask credentials if invalid token
- android2csv: <plurals> are removed HOT 3
- Cannot found client_secret for Android Application when creating OAuth Client Id. HOT 1
- Omit Empty translations CSV2Any HOT 2
- Error while running `babelish csv2android` because of thor dependency HOT 3
- Custom CSV2STRINGS -> cannot load such file -- babelish/keys HOT 1
- can't read text when convert japanese HOT 6
- Unexpected error: #<Faraday::ConnectionFailed wrapped=#<Net::OpenTimeout: execution expired>> HOT 1
- Problem with MacOS 12.3 Monterey HOT 2
- Google issue HOT 5
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from babelish.