pat / thinking-sphinx

Sphinx/Manticore plugin for ActiveRecord/Rails
http://freelancing-gods.com/thinking-sphinx
MIT License
1.63k stars 468 forks source link

Can't run capistrano thinking_sphinx #210

Closed blanchma closed 13 years ago

blanchma commented 13 years ago
cap thinking_sphinx:install:sphinx
<internal:lib/rubygems/custom_require>:29:in `require': no such file to load -- vendor/plugins/thinking-sphinx/recipes/../lib/thinking_sphinx/deploy/capistrano (LoadError)
from <internal:lib/rubygems/custom_require>:29:in `require'
from /home/matias/.rvm/gems/ruby-1.9.2-p0/gems/capistrano-2.5.21/lib/capistrano/configuration/loading.rb:152:in `require'
from vendor/plugins/thinking-sphinx/recipes/thinking_sphinx.rb:3:in `load'
from /home/matias/.rvm/gems/ruby-1.9.2-p0/gems/capistrano-2.5.21/lib/capistrano/configuration/loading.rb:93:in `instance_eval'
from /home/matias/.rvm/gems/ruby-1.9.2-p0/gems/capistrano-2.5.21/lib/capistrano/configuration/loading.rb:93:in `load'
from /home/matias/.rvm/gems/ruby-1.9.2-p0/gems/capistrano-2.5.21/lib/capistrano/configuration/loading.rb:172:in `load_from_file'
from /home/matias/.rvm/gems/ruby-1.9.2-p0/gems/capistrano-2.5.21/lib/capistrano/configuration/loading.rb:89:in `load'
from /home/matias/.rvm/gems/ruby-1.9.2-p0/gems/capistrano-2.5.21/lib/capistrano/configuration/loading.rb:86:in `block in load'
from /home/matias/.rvm/gems/ruby-1.9.2-p0/gems/capistrano-2.5.21/lib/capistrano/configuration/loading.rb:86:in `each'
from /home/matias/.rvm/gems/ruby-1.9.2-p0/gems/capistrano-2.5.21/lib/capistrano/configuration/loading.rb:86:in `load'
from Capfile:2:in `block in load'
from Capfile:2:in `each'
from Capfile:2:in `load'
from /home/matias/.rvm/gems/ruby-1.9.2-p0/gems/capistrano-2.5.21/lib/capistrano/configuration/loading.rb:93:in `instance_eval'
from /home/matias/.rvm/gems/ruby-1.9.2-p0/gems/capistrano-2.5.21/lib/capistrano/configuration/loading.rb:93:in `load'
from /home/matias/.rvm/gems/ruby-1.9.2-p0/gems/capistrano-2.5.21/lib/capistrano/configuration/loading.rb:172:in `load_from_file'
from /home/matias/.rvm/gems/ruby-1.9.2-p0/gems/capistrano-2.5.21/lib/capistrano/configuration/loading.rb:89:in `load'
from /home/matias/.rvm/gems/ruby-1.9.2-p0/gems/capistrano-2.5.21/lib/capistrano/configuration/loading.rb:86:in `block in load'
from /home/matias/.rvm/gems/ruby-1.9.2-p0/gems/capistrano-2.5.21/lib/capistrano/configuration/loading.rb:86:in `each'
from /home/matias/.rvm/gems/ruby-1.9.2-p0/gems/capistrano-2.5.21/lib/capistrano/configuration/loading.rb:86:in `load'
from /home/matias/.rvm/gems/ruby-1.9.2-p0/gems/capistrano-2.5.21/lib/capistrano/cli/execute.rb:65:in `block in load_recipes'
from /home/matias/.rvm/gems/ruby-1.9.2-p0/gems/capistrano-2.5.21/lib/capistrano/cli/execute.rb:65:in `each'
from /home/matias/.rvm/gems/ruby-1.9.2-p0/gems/capistrano-2.5.21/lib/capistrano/cli/execute.rb:65:in `load_recipes'
from /home/matias/.rvm/gems/ruby-1.9.2-p0/gems/capistrano-2.5.21/lib/capistrano/cli/execute.rb:31:in `execute!'
from /home/matias/.rvm/gems/ruby-1.9.2-p0/gems/capistrano-2.5.21/lib/capistrano/cli/execute.rb:14:in `execute'
from /home/matias/.rvm/gems/ruby-1.9.2-p0/gems/capistrano-2.5.21/bin/cap:4:in `<top (required)>'
from /home/matias/.rvm/gems/ruby-1.9.2-p0/bin/cap:19:in `load'
from /home/matias/.rvm/gems/ruby-1.9.2-p0/bin/cap:19:in `<main>'
pat commented 13 years ago

Are you using TS as a gem? Or a plugin?

blanchma commented 13 years ago

As a gem.

On 04/20/2011 09:54 PM, freelancing-god wrote:

Are you using TS as a gem? Or a plugin?

pat commented 13 years ago

It looks like you're requiring TS's capistrano file from vendor - which isn't right, because you didn't install it as a gem (docs really should be updated). Try this instead in your deploy.rb file:

require 'thinking_sphinx/deploy/capistrano
blanchma commented 13 years ago

I already have the require in deploy.rb.

pat commented 13 years ago

It looks like you have Thinking Sphinx installed as a plugin as well as a gem, perhaps? Try deleting vendor/plugins/thinking-sphinx.

blanchma commented 13 years ago

I don't have installed as a plugin. Only as a gem.

pat commented 13 years ago

What's the output of ls vendor/plugins? The reason I'm double-checking, is because of this line from the stack trace:

from vendor/plugins/thinking-sphinx/recipes/thinking_sphinx.rb:3
blanchma commented 13 years ago

I solved the problem. Thx.

On 04/27/2011 08:27 PM, freelancing-god wrote:

What's the output of ls vendor/plugins? The reason I'm double-checking, is because of this line from the stack trace:

 from vendor/plugins/thinking-sphinx/recipes/thinking_sphinx.rb:3
pat commented 13 years ago

How did you solve it?

blanchma commented 13 years ago

I have another recipes inside the deploy about thinking_sphinx obtained from some web. I removed all and then the usual require works fine.

On 04/27/2011 08:36 PM, freelancing-god wrote:

How did you solve it?

pat commented 13 years ago

Ah, great :)