7even / vkontakte_api

Ruby-адаптер для ВКонтакте API
http://7even.github.com/vkontakte_api
MIT License
282 stars 67 forks source link

Проблема с зависисмотями #93

Closed denisoster closed 6 years ago

denisoster commented 6 years ago

ruby '2.5.1'

Ребят поправьте проблему c зависимостями

require 'vkontakte_api' Gem::LoadError: can't activate faraday-0.12.2, already activated faraday-0.14.0 from /home/denis/.rbenv/versions/2.5.1/lib/ruby/2.5.0/rubygems/specification.rb:2315:in 'check_version_conflict'

7even commented 6 years ago

Gem::LoadError: can't activate faraday-0.12.2, already activated faraday-0.14.0

@denisoster из этого эксепшена непонятно, какой гем требует faraday-0.12.2. Сам vkontakte_api этого не делает.

denisoster commented 6 years ago

@7even image

7even commented 6 years ago

@denisoster непохоже, чтобы проблема была в геме vkontakte_api.

$ docker run -it ruby bash
Unable to find image 'ruby:latest' locally
latest: Pulling from library/ruby
cc1a78bfd46b: Already exists
6861473222a6: Pull complete
7e0b9c3b5ae0: Pull complete
3ec98735f56f: Pull complete
9b311b87a021: Pull complete
598f3b74c68f: Pull complete
dc9c8646092c: Pull complete
43770554a112: Pull complete
Digest: sha256:07ae38136a1bcc4a14bc4fcdbd675575fc697ff21ee05417581548ed01f55645
Status: Downloaded newer image for ruby:latest
root@356610d8504d:/# gem install vkontakte_api
Fetching: multipart-post-2.0.0.gem (100%)
Successfully installed multipart-post-2.0.0
Fetching: faraday-0.12.2.gem (100%)
Successfully installed faraday-0.12.2
Fetching: faraday_middleware-0.12.2.gem (100%)
Successfully installed faraday_middleware-0.12.2
Fetching: oj-3.6.2.gem (100%)
Building native extensions. This could take a while...
Successfully installed oj-3.6.2
Fetching: jwt-1.5.6.gem (100%)
Successfully installed jwt-1.5.6
Fetching: multi_json-1.13.1.gem (100%)
Successfully installed multi_json-1.13.1
Fetching: multi_xml-0.6.0.gem (100%)
Successfully installed multi_xml-0.6.0
Fetching: rack-2.0.5.gem (100%)
Successfully installed rack-2.0.5
Fetching: oauth2-1.4.0.gem (100%)
Successfully installed oauth2-1.4.0
Fetching: hashie-3.5.7.gem (100%)
Successfully installed hashie-3.5.7
Fetching: faraday_middleware-multi_json-0.0.6.gem (100%)
Successfully installed faraday_middleware-multi_json-0.0.6
Fetching: vkontakte_api-1.4.4.gem (100%)
Successfully installed vkontakte_api-1.4.4
12 gems installed
root@356610d8504d:/# irb
irb(main):001:0> require 'vkontakte_api'
=> true
irb(main):002:0> VkontakteApi::VERSION
=> "1.4.4"

Видимо, кто-то загружает более новый faraday до строки require 'vkontakte_api'. Может, дело в .irbrc?

denisoster commented 6 years ago

@7even файла .irbrc у меня нет.

7even commented 6 years ago

@denisoster а если запустить irb и посмотреть, что выведет Faraday::VERSION?