質問をすることでしか得られない、回答やアドバイスがある。

15分調べてもわからないことは、質問しよう!

新規登録して質問してみよう
ただいま回答率
85.48%
Ruby

Rubyはプログラミング言語のひとつで、オープンソース、オブジェクト指向のプログラミング開発に対応しています。

Ruby on Rails 6

Ruby on Rails 6は、オープンソースのWebアプリケーションフレームワークです。「同じことを繰り返さない」というRailsの基本理念のもと、他のフレームワークより少ないコードで簡単に開発できるよう設計されています。

Q&A

0回答

1763閲覧

cannot load such file -- faraday (LoadError)について

vonxar

総合スコア0

Ruby

Rubyはプログラミング言語のひとつで、オープンソース、オブジェクト指向のプログラミング開発に対応しています。

Ruby on Rails 6

Ruby on Rails 6は、オープンソースのWebアプリケーションフレームワークです。「同じことを繰り返さない」というRailsの基本理念のもと、他のフレームワークより少ないコードで簡単に開発できるよう設計されています。

0グッド

0クリップ

投稿2020/07/22 07:33

前提・実現したいこと

gem 'google_drive'を使いスプレットシートの書き換え、変更

ここに質問の内容を詳しく書いてください。
gem 'google_drive'をbundle installするとrails s, rails cなどを実行しとうとすると
エラーが出る。アンインストールすれば正常に動く
是非お知恵を貸してください。

発生している問題・エラーメッセージ

Traceback (most recent call last): 9: from hello.rb:1:in `<main>' 8: from hello.rb:1:in `require' 7: from /home/ec2-user/environment/Scraping/vendor/bundle/ruby/2.6.0/gems/google_drive-3.0.5/lib/google_drive.rb:5:in `<top (required)>' 6: from /home/ec2-user/environment/Scraping/vendor/bundle/ruby/2.6.0/gems/google_drive-3.0.5/lib/google_drive.rb:5:in `require' 5: from /home/ec2-user/environment/Scraping/vendor/bundle/ruby/2.6.0/gems/googleauth-0.13.0/lib/googleauth.rb:30:in `<top (required)>' 4: from /home/ec2-user/environment/Scraping/vendor/bundle/ruby/2.6.0/gems/googleauth-0.13.0/lib/googleauth.rb:30:in `require' 3: from /home/ec2-user/environment/Scraping/vendor/bundle/ruby/2.6.0/gems/googleauth-0.13.0/lib/googleauth/application_default.rb:30:in `<top (required)>' 2: from /home/ec2-user/environment/Scraping/vendor/bundle/ruby/2.6.0/gems/googleauth-0.13.0/lib/googleauth/application_default.rb:30:in `require' 1: from /home/ec2-user/environment/Scraping/vendor/bundle/ruby/2.6.0/gems/googleauth-0.13.0/lib/googleauth/compute_engine.rb:30:in `<top (required)>' /home/ec2-user/environment/Scraping/vendor/bundle/ruby/2.6.0/gems/googleauth-0.13.0/lib/googleauth/compute_engine.rb:30:in `require': cannot load such file -- faraday (LoadError)

該当のソースコード

Gemfile

1source 'https://rubygems.org' 2git_source(:github) { |repo| "https://github.com/#{repo}.git" } 3 4ruby '2.6.3' 5 6# Bundle edge Rails instead: gem 'rails', github: 'rails/rails' 7gem 'rails', '~> 6.0.3', '>= 6.0.3.2' 8# Use sqlite3 as the database for Active Record 9gem 'sqlite3', '~> 1.4' 10# Use Puma as the app server 11gem 'puma', '~> 4.1' 12# Use SCSS for stylesheets 13gem 'sass-rails', '>= 6' 14# Transpile app-like JavaScript. Read more: https://github.com/rails/webpacker 15gem 'webpacker', '~> 4.0' 16# Turbolinks makes navigating your web application faster. Read more: https://github.com/turbolinks/turbolinks 17gem 'turbolinks', '~> 5' 18# Build JSON APIs with ease. Read more: https://github.com/rails/jbuilder 19gem 'jbuilder', '~> 2.7' 20# Use Redis adapter to run Action Cable in production 21# gem 'redis', '~> 4.0' 22# Use Active Model has_secure_password 23# gem 'bcrypt', '~> 3.1.7' 24 25# Use Active Storage variant 26# gem 'image_processing', '~> 1.2' 27 28# Reduces boot times through caching; required in config/boot.rb 29gem 'bootsnap', '>= 1.4.2', require: false 30 31group :development, :test do 32 # Call 'byebug' anywhere in the code to stop execution and get a debugger console 33 gem 'byebug', platforms: [:mri, :mingw, :x64_mingw] 34end 35 36group :development do 37 # Access an interactive console on exception pages or by calling 'console' anywhere in the code. 38 gem 'web-console', '>= 3.3.0' 39 gem 'listen', '~> 3.2' 40 # Spring speeds up development by keeping your application running in the background. Read more: https://github.com/rails/spring 41 gem 'spring' 42 gem 'spring-watcher-listen', '~> 2.0.0' 43end 44 45group :test do 46 # Adds support for Capybara system testing and selenium driver 47 gem 'capybara', '>= 2.15' 48 gem 'selenium-webdriver' 49 # Easy installation and use of web drivers to run system tests with browsers 50 gem 'webdrivers' 51end 52 53 54---以下のgemのみ追加 55gem 'faraday' 56gem 'google_drive'

試したこと

gem 'faraday'のインストール
google_driveのインストールし直し

補足情報(FW/ツールのバージョンなど)

rails6.0.3
ruby2.6.3
cloud9

気になる質問をクリップする

クリップした質問は、後からいつでもMYページで確認できます。

またクリップした質問に回答があった際、通知やメールを受け取ることができます。

バッドをするには、ログインかつ

こちらの条件を満たす必要があります。

guest

あなたの回答

tips

太字

斜体

打ち消し線

見出し

引用テキストの挿入

コードの挿入

リンクの挿入

リストの挿入

番号リストの挿入

表の挿入

水平線の挿入

プレビュー

まだ回答がついていません

会員登録して回答してみよう

アカウントをお持ちの方は

15分調べてもわからないことは
teratailで質問しよう!

ただいまの回答率
85.48%

質問をまとめることで
思考を整理して素早く解決

テンプレート機能で
簡単に質問をまとめる

質問する

関連した質問