af tunnel cannot find caldecott #27

Closed
schmkr opened this Issue Jan 12, 2013 · 19 comments

Projects

None yet
@schmkr
schmkr commented Jan 12, 2013

Hi,

When I run af tunnel I get the message that I need to install Caldecott, so I installed it via sudo gem install caldecott.

But when I run af tunnel again, I keep getting the same message. I checked if it was installed (with gem list) and I can see caldecott installed (version 0.0.5).

Why do I keep getting the message, could it be related to multiple version of e.g. Ruby installed?

Cheers!
Alwin

@aoopvn
aoopvn commented Mar 10, 2013

I got with the same error.

Thanks for your help!

I have tried some solutions in this http://support.cloudfoundry.com/entries/20693163-trouble-installing-caldecott but nothing works.

My env:

  • OS: Mac OS X 10.7.5
  • Here my gem list:

actionmailer (3.2.12)
actionpack (3.2.12)
activemodel (3.2.12)
activerecord (3.2.12)
activeresource (3.2.12)
activesupport (3.2.12)
addressable (2.3.3, 2.2.8)
af (0.3.18.12)
arel (3.0.2)
async_sinatra (0.5.0)
bigdecimal (1.2.0)
builder (3.0.4)
bundler (1.3.2)
caldecott (0.0.5)
em-http-request (0.3.0)
em-websocket (0.3.8)
erubis (2.7.0)
escape_utils (0.3.2)
eventmachine (1.0.1)
hike (1.2.1)
i18n (0.6.4)
interact (0.4.8)
io-console (0.4.2)
journey (1.0.4)
json (1.7.7, 1.6.8)
json_pure (1.6.8)
mail (2.4.4)
mime-types (1.21)
minitest (4.3.2)
multi_json (1.6.1)
polyglot (0.3.3)
psych (2.0.0)
rack (1.5.2, 1.4.5)
rack-cache (1.2)
rack-protection (1.4.0)
rack-ssl (1.3.3)
rack-test (0.6.2)
rails (3.2.12)
railties (3.2.12)
rake (10.0.3, 0.9.6)
rb-readline (0.4.2)
rdoc (4.0.0, 3.12.2)
rest-client (1.6.7)
rubygems-bundler (1.1.1)
rubyzip (0.9.9)
rvm (1.11.3.6)
sinatra (1.3.5)
sprockets (2.2.2)
terminal-table (1.4.5)
test-unit (2.0.0.0)
thor (0.17.0)
tilt (1.3.5)
treetop (1.4.12)
tzinfo (0.3.36)
uuidtools (2.1.3)

  • note:
    caldecott & af are in the same dir: /Users/mac/.rvm/gems/ruby-2.0.0-p0/gems/
@gopikrish2000

Exactly Same error i'm also getting with caldecott 0.0.5

@riyazMuhammad

Even I see the same error.
I am running it on windows 7.

Please help !

@Gorgoroth

Same Problem on Linux Mint 14 x64 with RVM and Ruby-2.0.0-dev

Install Gem

$ gem install caldecott
Successfully installed caldecott-0.0.5
Parsing documentation for caldecott-0.0.5
Installing ri documentation for caldecott-0.0.5
1 gem installed

Verify

$ gem list | grep caldecott
caldecott (0.0.5) 

Use af tunnel

$ af tunnel
To use `af tunnel', you must first install Caldecott:
[...]
Error: Caldecott is not installed.

// Edit

Switching back to Ruby 1.9.3 works, though

$ rvm use 1.9.3-dev
$ gem install af
[...]
$ gem install caldecott
[... long list of dependencies being installed which didn't happen for Ruby 2.0]
$ af login
$ af tunnel
@dalehurley

Same issue.

Dales-MacBook-Pro:Build Form dale-hurley$ sudo gem install caldecott
Password:
Successfully installed caldecott-0.0.5
Parsing documentation for caldecott-0.0.5
1 gem installed
Dales-MacBook-Pro:Build Form dale-hurley$ af tunnel
To use `af tunnel', you must first install Caldecott:

    gem install caldecott

Note that you'll need a C compiler. If you're on OS X, Xcode
will provide one. If you're on Windows, try DevKit.

This manual step will be removed in the future.

Error: Caldecott is not installed.
@brianherbert

I'm running into this now as well. Same output as @dalehurley above.

@itsluke
itsluke commented Aug 27, 2013

Same issue using ruby 1.9.3p448

Dales-MacBook-Pro:Build Form dale-hurley$ sudo gem install caldecott
Password:
Successfully installed caldecott-0.0.5
Parsing documentation for caldecott-0.0.5
1 gem installed
Dales-MacBook-Pro:Build Form dale-hurley$ af tunnel
To use `af tunnel', you must first install Caldecott:

    gem install caldecott

Note that you'll need a C compiler. If you're on OS X, Xcode
will provide one. If you're on Windows, try DevKit.

This manual step will be removed in the future.

Error: Caldecott is not installed.
@dalehurley

Found that
$ rvm use 1.9.3-dev
$ af login
$ af tunnel

@juniovitorino

Same problem here with rbenv.

To use `af tunnel', you must first install Caldecott:

gem install caldecott

Note that you'll need a C compiler. If you're on OS X, Xcode
will provide one. If you're on Windows, try DevKit.

This manual step will be removed in the future.

Error: Caldecott is not installed.

@slava-sh

I manually added require 'caldecott' to ~/.gem/ruby/2.0.0/gems/af-0.3.18.12/lib/cli/commands/services.rb and I got the following error when running af tunnel:

Unable to activate caldecott-0.0.5, because json-1.7.7 conflicts with json (~> 1.6.1)
/usr/lib/ruby/2.0.0/rubygems/specification.rb:1990:in `raise_if_conflicts'
/usr/lib/ruby/2.0.0/rubygems/specification.rb:1163:in `activate'
/usr/lib/ruby/2.0.0/rubygems.rb:181:in `rescue in try_activate'
/usr/lib/ruby/2.0.0/rubygems.rb:178:in `try_activate'
/usr/lib/ruby/2.0.0/rubygems/core_ext/kernel_require.rb:109:in `rescue in require'
/usr/lib/ruby/2.0.0/rubygems/core_ext/kernel_require.rb:35:in `require'
/home/slava/.gem/ruby/2.0.0/gems/af-0.3.18.12/lib/cli/commands/services.rb:2:in `<top (required)>'

In ~/.gem/ruby/2.0.0/specifications/caldecott-0.0.5.gemspec I substituted every

      s.add_runtime_dependency(%q<json>, ["~> 1.6.1"])

with

       s.add_runtime_dependency(%q<json>, ["~> 1.7.7"])

Now af tunnel seems to be working.

@paulopatto

Sended #55 eq. recommend @slava-sh.

@cdnsteve

I had to switch to Ruby 1.93 as mentioned above then it worked

@t-anjan
t-anjan commented Jan 21, 2014

This bug still exists. The workaround suggested by @slava-sh works. But since I use rvm, the paths were slightly different. The services.rb file was found at ~/.rvm/gems/<gemset>/gems/af-0.3.18.12/lib/cli/commands/services.rb.

The caldecott-0.0.5.gemspec file was found at ~/.rvm/gems/<gemset>/specifications/caldecott-0.0.5.gemspec.

@Hoonng
Hoonng commented Jul 12, 2014

I reinstall ruby1.9 replace ruby2.0,then the gem install caldecott can work and the af tunnel work too.
Thx

@shanestillwell

@slava-sh answer worked great for me on OS X 10.9 with Ruby 2.0.0.

@vyrcoop
vyrcoop commented Oct 18, 2014

Is there any way to get this working properly -> as in appfog actually solving this? I cannot downgrade to ruby 1.9.3 as suggested, so that is not an option.

Update
I wasted all day trying to get this to work, even tried it on Windows, seems like a same problem.

@appfog-dev

Update 2
Oh, new day, new thoughts, managed to install ruby 1.9.3 - it works now... phew.. remember to reinstall af and caldecott under ruby 1.9.3..

@cfjedimaster

This bug still exists for me.

@cfjedimaster

I tried the workaround, but my ~/.gem/ruby/2.0.0/ folder doesn't have a gems subdirectory.

@jakeo
Contributor
jakeo commented Dec 23, 2014

The af gem on Rubygems has been updated https://rubygems.org/gems/af. It bundles caldecott and has been tested on Ruby 2.0.0, 2.1.5, and 1.9.3.

Please let us know if you have any other issues!

@jakeo jakeo closed this Dec 23, 2014
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment