Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

rake mono aborts with 'cannot load such file -- zip/zip' #70

Closed
draptik opened this issue Sep 4, 2013 · 4 comments
Closed

rake mono aborts with 'cannot load such file -- zip/zip' #70

draptik opened this issue Sep 4, 2013 · 4 comments

Comments

@draptik
Copy link

draptik commented Sep 4, 2013

Hi,

following the instructions on https://github.com/NancyFx/Nancy/wiki/Running-Nancy-on-your-Raspberry-Pi I end up with the following error:

pi@rpidev ~/code/Nancy $ rake mono --trace
rake aborted!
cannot load such file -- zip/zip
/usr/lib/ruby/1.9.1/rubygems/custom_require.rb:36:in `require'
/usr/lib/ruby/1.9.1/rubygems/custom_require.rb:36:in `require'
/var/lib/gems/1.9.1/gems/albacore-0.3.5/lib/albacore/zipdirectory.rb:2:in `<top (required)>'
/usr/lib/ruby/1.9.1/rubygems/custom_require.rb:36:in `require'
/usr/lib/ruby/1.9.1/rubygems/custom_require.rb:36:in `require'
/var/lib/gems/1.9.1/gems/albacore-0.3.5/lib/albacore.rb:9:in `block in <top (required)>'
/var/lib/gems/1.9.1/gems/albacore-0.3.5/lib/albacore.rb:9:in `each'
/var/lib/gems/1.9.1/gems/albacore-0.3.5/lib/albacore.rb:9:in `<top (required)>'
/usr/lib/ruby/1.9.1/rubygems/custom_require.rb:60:in `require'
/usr/lib/ruby/1.9.1/rubygems/custom_require.rb:60:in `rescue in require'
/usr/lib/ruby/1.9.1/rubygems/custom_require.rb:35:in `require'
/home/pi/code/Nancy/rakefile.rb:3:in `<top (required)>'
/usr/lib/ruby/vendor_ruby/rake/rake_module.rb:25:in `load'
/usr/lib/ruby/vendor_ruby/rake/rake_module.rb:25:in `load_rakefile'
/usr/lib/ruby/vendor_ruby/rake/application.rb:501:in `raw_load_rakefile'
/usr/lib/ruby/vendor_ruby/rake/application.rb:82:in `block in load_rakefile'
/usr/lib/ruby/vendor_ruby/rake/application.rb:133:in `standard_exception_handling'
/usr/lib/ruby/vendor_ruby/rake/application.rb:81:in `load_rakefile'
/usr/lib/ruby/vendor_ruby/rake/application.rb:65:in `block in run'
/usr/lib/ruby/vendor_ruby/rake/application.rb:133:in `standard_exception_handling'
/usr/lib/ruby/vendor_ruby/rake/application.rb:63:in `run'
/usr/bin/rake:27:in `<main>'

I hope this is the correct place to ask. If not: who should I ask about this?

Am I doing anything wrong here? What should I do to resolve this error?

Versions used:

pi@rpidev ~/code/Nancy $ uname -a
Linux rpidev 3.6.11+ #474 PREEMPT Thu Jun 13 17:14:42 BST 2013 armv6l GNU/Linux
pi@rpidev ~/code/Nancy $ ruby --version
ruby 1.9.3p194 (2012-04-20 revision 35410) [arm-linux-eabi]
pi@rpidev ~/code/Nancy $ rake --version
rake, version 0.9.2.2
pi@rpidev ~/code/Nancy $ sudo gem list

*** LOCAL GEMS ***

albacore (0.3.5)
rubyzip (1.0.0)

TIA,

Patrick

@AnthonyMastrean
Copy link
Member

Looks like we're using an open ended dependency on rubyzip and they just published a breaking change.

@haf
Copy link
Member

haf commented Sep 5, 2013

Yup, just put a hard dependency in gemfile:

gem 'rubyzip', '=0.9.9'

Can you send a pull request for fixing the gem?

@draptik
Copy link
Author

draptik commented Sep 6, 2013

Thanks for the quick fix!
I can confirm this works with the albacore gem created from current dev branch:

pi@rpidev ~/code/albacore $ sudo gem list

*** LOCAL GEMS ***

albacore (0.4.0)
bundler (1.3.5)
mini_portile (0.5.1)
nokogiri (1.6.0)
rake (10.1.0)
rubyzip (0.9.9)

@AnthonyMastrean
Copy link
Member

Fixed in the latest prerelease gem, please gem install albacore --pre

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants