hstove / rbtc_arbitrage

A gem for automating arbitrage between Bitcoin exchanges.
MIT License
274 stars 94 forks source link

Doesn't install correctly #10

Closed Wolfos closed 9 years ago

Wolfos commented 10 years ago

I tried this on 3 different machines (Linux server, Windows machine, Mac laptop), and they all got the same thing; the dependencies don't get installed properly. Since this happens on every machine I tested this on, I'm pretty sure you messed up.

Error is something like: fatal: not a git repository could not find minitest-4.7.5, etc.

If I install minitest 4.7.5 manually it'll just come up with something else, and something else, and something else until I just get tired and give up.

ukd1 commented 10 years ago

@Wolfos I just installed fine ~10 minutes ago, so I'm pretty sure you messed up. What did you do to get install this (i.e. paste the commands + output please).

Wolfos commented 10 years ago

Sorry for the 'you messed up thing'.

Here's my steps:

  1. log into the server through SSH
  2. apt-get install gem
  3. gem install rbtc_arbitrage
  4. rbtc

Then I get: WARN: Unresolved specs during Gem::Specification.reset: activemodel (>= 3.1) activesupport (>= 3.1) thor (>= 0) multi_json (>= 1.3.4) hashie (>= 1.2.0) mail (>= 2.0) WARN: Clearing out unresolved specs. Please report a bug if this causes problems. fatal: Not a git repository (or any of the parent directories): .git fatal: Not a git repository (or any of the parent directories): .git /usr/lib/ruby/gems/1.9.1/gems/bundler-1.6.3/lib/bundler/spec_set.rb:92:in block in materialize': Could not find pony-1.8 in any of the sources (Bundler::GemNotFound) from /usr/lib/ruby/gems/1.9.1/gems/bundler-1.6.3/lib/bundler/spec_set.rb:85:inmap!' from /usr/lib/ruby/gems/1.9.1/gems/bundler-1.6.3/lib/bundler/spec_set.rb:85:in materialize' from /usr/lib/ruby/gems/1.9.1/gems/bundler-1.6.3/lib/bundler/definition.rb:133:inspecs' from /usr/lib/ruby/gems/1.9.1/gems/bundler-1.6.3/lib/bundler/definition.rb:178:in specs_for' from /usr/lib/ruby/gems/1.9.1/gems/bundler-1.6.3/lib/bundler/runtime.rb:13:insetup' from /usr/lib/ruby/gems/1.9.1/gems/bundler-1.6.3/lib/bundler.rb:127:in setup' from /usr/lib/ruby/gems/1.9.1/gems/bundler-1.6.3/lib/bundler.rb:132:inrequire' from /usr/lib/ruby/gems/1.9.1/gems/rbtc_arbitrage-2.3.0/lib/rbtc_arbitrage.rb:3:in block in <top (required)>' from /usr/lib/ruby/gems/1.9.1/gems/rbtc_arbitrage-2.3.0/lib/rbtc_arbitrage.rb:2:inchdir' from /usr/lib/ruby/gems/1.9.1/gems/rbtc_arbitrage-2.3.0/lib/rbtc_arbitrage.rb:2:in <top (required)>' from /usr/local/lib/site_ruby/1.9.1/rubygems/core_ext/kernel_require.rb:73:inrequire' from /usr/local/lib/site_ruby/1.9.1/rubygems/core_ext/kernel_require.rb:73:in require' from /usr/lib/ruby/gems/1.9.1/gems/rbtc_arbitrage-2.3.0/bin/rbtc:4:in<top (required)>' from /usr/local/bin/rbtc:19:in load' from /usr/local/bin/rbtc:19:in

'

hstove commented 10 years ago

Would you mind trying to reinstall from the latest version?

gem cleanup rbtc_arbitrage
gem install rbtc_arbitrage
rbtc
Wolfos commented 10 years ago

Nope, same error.

EDIT: Did a full cleanup (gem cleanup) and now the error changed.

fatal: Not a git repository (or any of the parent directories): .git fatal: Not a git repository (or any of the parent directories): .git /usr/lib/ruby/gems/1.9.1/gems/bundler-1.6.3/lib/bundler/spec_set.rb:92:in block in materialize': Could not find minitest-4.7.5 in any of the sources (Bundler::GemNotFound) from /usr/lib/ruby/gems/1.9.1/gems/bundler-1.6.3/lib/bundler/spec_set.rb:85:inmap!' from /usr/lib/ruby/gems/1.9.1/gems/bundler-1.6.3/lib/bundler/spec_set.rb:85:in materialize' from /usr/lib/ruby/gems/1.9.1/gems/bundler-1.6.3/lib/bundler/definition.rb:133:inspecs' from /usr/lib/ruby/gems/1.9.1/gems/bundler-1.6.3/lib/bundler/definition.rb:178:in specs_for' from /usr/lib/ruby/gems/1.9.1/gems/bundler-1.6.3/lib/bundler/runtime.rb:13:insetup' from /usr/lib/ruby/gems/1.9.1/gems/bundler-1.6.3/lib/bundler.rb:127:in setup' from /usr/lib/ruby/gems/1.9.1/gems/bundler-1.6.3/lib/bundler.rb:132:inrequire' from /usr/lib/ruby/gems/1.9.1/gems/rbtc_arbitrage-2.3.0/lib/rbtc_arbitrage.rb:3:in block in <top (required)>' from /usr/lib/ruby/gems/1.9.1/gems/rbtc_arbitrage-2.3.0/lib/rbtc_arbitrage.rb:2:inchdir' from /usr/lib/ruby/gems/1.9.1/gems/rbtc_arbitrage-2.3.0/lib/rbtc_arbitrage.rb:2:in <top (required)>' from /usr/local/lib/site_ruby/1.9.1/rubygems/core_ext/kernel_require.rb:55:inrequire' from /usr/local/lib/site_ruby/1.9.1/rubygems/core_ext/kernel_require.rb:55:in require' from /usr/lib/ruby/gems/1.9.1/gems/rbtc_arbitrage-2.3.0/bin/rbtc:4:in<top (required)>' from /usr/local/bin/rbtc:19:in load' from /usr/local/bin/rbtc:19:in

'

ukd1 commented 10 years ago

try this;

gem install bundler
git clone https://github.com/hstove/rbtc_arbitrage.git
cd rbtc_arbitrage
bundle install
rbtc
Wolfos commented 10 years ago

That did install all the dependencies, but it still doesn't work.

Now it says: WARN: Unresolved specs during Gem::Specification.reset: activemodel (>= 3.1) activesupport (>= 3.1) thor (>= 0) multi_json (>= 1.3.4, ~> 1.3) hashie (>= 1.2.0) pony (>= 0) WARN: Clearing out unresolved specs. Please report a bug if this causes problems. fatal: Not a git repository (or any of the parent directories): .git fatal: Not a git repository (or any of the parent directories): .git /usr/lib/ruby/gems/1.9.1/gems/rbtc_arbitrage-2.4.0/lib/rbtc_arbitrage.rb:5:in require': cannot load such file -- bitstamp (LoadError) from /usr/lib/ruby/gems/1.9.1/gems/rbtc_arbitrage-2.4.0/lib/rbtc_arbitrage.rb:5:in<top (required)>' from /usr/local/lib/site_ruby/1.9.1/rubygems/core_ext/kernel_require.rb:73:in require' from /usr/local/lib/site_ruby/1.9.1/rubygems/core_ext/kernel_require.rb:73:inrequire' from /usr/lib/ruby/gems/1.9.1/gems/rbtc_arbitrage-2.4.0/bin/rbtc:4:in <top (required)>' from /usr/local/bin/rbtc:19:inload' from /usr/local/bin/rbtc:19:in `

'

ukd1 commented 10 years ago

Which ruby version are you running;

ruby -v
Wolfos commented 10 years ago

ruby 1.9.3p0 (2011-10-30 revision 33570) [i686-linux]

ukd1 commented 10 years ago

@Wolfos strange, that should work even though it's out of date by a long way (both 1.9.3 + the fact it's p0).

The error is around bitstamp which we just changed the way it was loaded. Can you confirm you do not have a bitstamp folder in the code directory? Can you also paste your Gemfile + Gemfile.lock here?

hstove commented 10 years ago

Hey @Wolfos, I just release version 2.4.1 which should fix this bug. The problem was introduced when we removed bitstamp from the gemspec in #14. After that, when you ran gem install rbtc_arbitrage, it wouldn't include Bitstamp. I've just added a new fork of the bitstamp gem back into the gemspec, so when you re-install this time, it should eliminate the Bitstamp error you're seeing.

I'm sorry for your problems.

Wolfos commented 10 years ago

For some reason gem install rbtc_arbitrage installs 2.3.0 for me. Tried gem clean and then apt-get remove gem but nope, same thing, same error. If I explicitly ask for 2.4.1 I do get it but still same error.

hstove commented 10 years ago

I was able to reproduce before, but now I'm unable to reproduce the bitstamp not found error in 2.4.1 Here are my steps:

gem uninstall rbtc_arbitrage
**remove everything?** - yes
gem install rbtc_arbitrage

And everything works. I am not sure if it has to do with your errors but I'd recommend installing rvm or similar if you plan on doing much stuff with Ruby in the future, as 1.9.3 is starting to get a little bit old.