json_pure is installed when 'gem install json' is executed

maralc's Avatar

maralc

09 Jun, 2011 07:32 AM

Hi

See below:

gem install json Successfully installed json_pure-1.5.1
1 gem installed
Installing ri documentation for json_pure-1.5.1...
Installing RDoc documentation for json_pure-1.5.1...

bundle check The following gems are missing
* json (1.5.1) Install missing gems with bundle install

bundle show json Could not find json-1.5.1 in any of the sources

Any ideas?

I tried many things already. Cleared all rvm gem and gemset dirs.

Thanks in advance.

Maralc

  1. 1 Posted by maralc on 09 Jun, 2011 07:44 AM

    maralc's Avatar

    I just downloaded the gem file directly and think the file maybe is packaged wrongly?

    gem install --local ~/Downloads/json-1.5.1.gem Successfully installed json_pure-1.5.1
    1 gem installed
    Installing ri documentation for json_pure-1.5.1...
    Installing RDoc documentation for json_pure-1.5.1...

  2. Support Staff 2 Posted by Luis Lavena on 09 Jun, 2011 12:34 PM

    Luis Lavena's Avatar

    Dunno for you, but works for me:

    C:\Users\Luis>gem install json
    Fetching: json-1.5.1.gem (100%)
    Temporarily enhancing PATH to include DevKit...
    Building native extensions.  This could take a while...
    Successfully installed json-1.5.1
    1 gem installed
    
    C:\Users\Luis>gem list json
    
    *** LOCAL GEMS ***
    
    json (1.5.1)
    
  3. 3 Posted by maralc on 09 Jun, 2011 01:03 PM

    maralc's Avatar

    Wicked Luis.

    But any ideas why it is like that over here for me?

  4. Support Staff 4 Posted by Luis Lavena on 09 Jun, 2011 01:06 PM

    Luis Lavena's Avatar

    Can you please try the following:

    Remove any existing json gem: gem uninstall json --all --executables (do the same for json_pure)

    Clear your RubyGems cache: gem sources -c

    Do gem install json --debug -V

    And send us the output so we can take a look what is going on.

    Oh, and never forget: when reporting issues of RubyGems, please always include the output of gem env and the same command you're trying to run with --debug -V flags.

  5. 5 Posted by maralc on 09 Jun, 2011 01:18 PM

    maralc's Avatar

    Hi Luis,

    Follow attached the logs.

    Thanks
    Marcelo

  6. Support Staff 6 Posted by Luis Lavena on 09 Jun, 2011 01:23 PM

    Luis Lavena's Avatar

    For some strange reason you can't remove json_pure, which I could tell you you can remove manually going /Users/maralc/.rvm/gems/ruby-1.9.2-p180 and removing from gems, spec and cache all json references.

    Can you do that?

    Then, seems Ruby is not redownloading the file, perhaps was mistakenly downloaded before, so removing the gemspec, the cache and the installed files will help.

  7. 7 Posted by maralc on 11 Jun, 2011 01:48 PM

    maralc's Avatar

    Hi Luis,

    I tried everything you mentioned. Deleted all possible references of json inside all /.rvm. Still without success.

    Did you see on the previous file I've sent you all the exceptions happening there while executing 'gem install json'? Maybe they are not related?

    I also tried to change version of rubygems and ruby itself without any success.

    Thanks
    Marcelo

  8. Support Staff 8 Posted by Luis Lavena on 11 Jun, 2011 01:57 PM

    Luis Lavena's Avatar

    Lot of these exceptions are normal.

    What I do see is lot of Resource temporarily unavailable - read would block which could indicate a possible network problem (that doesn't happen to me for example)

    It is weird that seems to obtain the gem specification of json, but then attempts to install the json_pure.

    Can you please clean /Users/maralc/.gem/specs/rubygems.org%80 directory?
    (rm -rf)

    Also, remove all the json and json_pure installations, please do it manually removing:

    rm -rf /Users/maralc/.rvm/gems/ruby-1.9.2-p180/gems/json
    rm -rf /Users/maralc/.rvm/gems/ruby-1.9.2-p180/specs/json

    rm -rf /Users/maralc/.rvm/gems/ruby-1.9.2-p180/cache/json*

    After that, please run the command again and let's see from there.

    This is indeed a weird bug.

  9. 9 Posted by maralc on 12 Jun, 2011 09:52 AM

    maralc's Avatar

    Looks like it was going fine until this passage here:

    
    Exception `Errno::EAGAIN' at /Users/maralc/.rvm/rubies/ruby-1.9.2-p180/lib/ruby/1.9.1/net/protocol.rb:135 - Resource temporarily unavailable - read would block
    Fetching: json-1.5.1.gem (100%)
    200 OK
    Exception `Errno::EEXIST' at /Users/maralc/.rvm/rubies/ruby-1.9.2-p180/lib/ruby/1.9.1/fileutils.rb:243 - File exists - /Users/maralc/.rvm/gems/ruby-1.9.2-p180
    Exception `NoMethodError' at /Users/maralc/.rvm/rubies/ruby-1.9.2-p180/lib/ruby/site_ruby/1.9.1/rubygems/package/tar_input.rb:53 - undefined method `readpartial' for #
    Exception `IOError' at /Users/maralc/.rvm/rubies/ruby-1.9.2-p180/lib/ruby/site_ruby/1.9.1/rubygems/format.rb:45 - closed stream
    /Users/maralc/.rvm/gems/ruby-1.9.2-p180/gems/json_pure-1.5.1/CHANGES
    

    It's attached the whole execution. Thanks.

  10. Support Staff 10 Posted by Nick Quaranto on 12 Jun, 2011 05:17 PM

    Nick Quaranto's Avatar

    Can you manually download those files? Let's try:

    wget http://production.s3.rubygems.org/latest_specs.4.8.gz

    also

    wget http://rubygems.org/gems/json-1.5.1.gem

    if not wget, then curl -O. Also, are you behind a proxy?

  11. 11 Posted by maralc on 13 Jun, 2011 12:09 PM

    maralc's Avatar

    Hi Nick,

    I am connected directly to a DSL router.

    Follow the output of the commands:

    
    >curl -O -v http://production.s3.rubygems.org/latest_specs.4.8.gz
    * About to connect() to production.s3.rubygems.org port 80 (#0)
    *   Trying 207.171.187.118... connected
    * Connected to production.s3.rubygems.org (207.171.187.118) port 80 (#0)
    > GET /latest_specs.4.8.gz HTTP/1.1
    > User-Agent: curl/7.19.7 (universal-apple-darwin10.0) libcurl/7.19.7 OpenSSL/0.9.8l zlib/1.2.3
    > Host: production.s3.rubygems.org
    > Accept: */*
    > 
      % Total    % Received % Xferd  Average Speed   Time    Time     Time  Current
                                     Dload  Upload   Total   Spent    Left  Speed
      0     0    0     0    0     0      0      0 --:--:--  0:00:01 --:--:--     0< HTTP/1.1 200 OK
    < x-amz-id-2: zjBRhh2vJBSGPrB6/eSrBwtLLfl4qxDIFmon2hRPaXUIimwDPPXNJelnDcl6jtuF
    < x-amz-request-id: 5AA038B22E8BFBB1
    < Date: Mon, 13 Jun 2011 12:05:47 GMT
    < Last-Modified: Mon, 13 Jun 2011 11:44:44 GMT
    < ETag: "45290cd90d75aa4346d42739c0574eb2"
    < Accept-Ranges: bytes
    < Content-Type: binary/octet-stream
    < Content-Length: 205281
    < Server: AmazonS3
    < 
    { [data not shown]
    100  200k  100  200k    0     0  21223      0  0:00:09  0:00:09 --:--:-- 36824* Connection #0 to host production.s3.rubygems.org left intact
    
    * Closing connection #0
    >
    >
    >curl -O -v http://rubygems.org/gems/json-1.5.1.gem
    * About to connect() to rubygems.org port 80 (#0)
    *   Trying 72.4.120.124... connected
    * Connected to rubygems.org (72.4.120.124) port 80 (#0)
    > GET /gems/json-1.5.1.gem HTTP/1.1
    > User-Agent: curl/7.19.7 (universal-apple-darwin10.0) libcurl/7.19.7 OpenSSL/0.9.8l zlib/1.2.3
    > Host: rubygems.org
    > Accept: */*
    > 
      % Total    % Received % Xferd  Average Speed   Time    Time     Time  Current
                                     Dload  Upload   Total   Spent    Left  Speed
      0     0    0     0    0     0      0      0 --:--:-- --:--:-- --:--:--     0< HTTP/1.1 302 Found
    < Date: Mon, 13 Jun 2011 12:06:06 GMT
    < Server: Apache/2.2.3 (Red Hat) mod_ssl/2.2.3 OpenSSL/0.9.8e-fips-rhel5 Phusion_Passenger/3.0.0
    < X-Powered-By: Phusion Passenger (mod_rails/mod_rack) 3.0.0
    < X-UA-Compatible: IE=Edge,chrome=1
    < X-Runtime: 0.002680
    < Location: http://production.cf.rubygems.org/gems/json-1.5.1.gem
    < Content-Length: 0
    < Status: 302
    < Vary: Accept-Encoding
    < Content-Type: text/html;charset=utf-8
    < 
      0     0    0     0    0     0      0      0 --:--:-- --:--:-- --:--:--     0* Connection #0 to host rubygems.org left intact
    
    * Closing connection #0
    >
    
  12. 12 Posted by maralc on 19 Jun, 2011 12:41 PM

    maralc's Avatar

    Any news on that?

    Thanks
    Marcelo

  13. Support Staff 13 Posted by Luis Lavena on 19 Jun, 2011 03:16 PM

    Luis Lavena's Avatar

    Hello,

    I believe the issue was a CDN/S3 issue, as described in the JSON issue:

    https://github.com/flori/json/issues/68

    Can you try the newer version so we can close this out?

    Thank you.

  14. Support Staff 14 Posted by Luis Lavena on 04 Aug, 2011 05:42 PM

    Luis Lavena's Avatar

    Closing this out due lack of feedback, issue seems solved by now.

  15. Luis Lavena closed this discussion on 04 Aug, 2011 05:42 PM.

Comments are currently closed for this discussion. You can start a new one.

Keyboard shortcuts

Generic

? Show this help
ESC Blurs the current field

Comment Form

r Focus the comment reply box
^ + ↩ Submit the comment

You can use Command ⌘ instead of Control ^ on Mac

Recent Discussions

23 Oct, 2014 05:37 PM
21 Oct, 2014 10:47 AM
18 Oct, 2014 08:39 PM
16 Oct, 2014 12:41 PM
06 Oct, 2014 02:30 PM