You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@deltacloud.apache.org by "Ronelle Landy (JIRA)" <ji...@apache.org> on 2012/08/01 15:00:38 UTC
[jira] [Created] (DTACLOUD-291) LoadError when running rake with
bundler on Fedora 17
Ronelle Landy created DTACLOUD-291:
--------------------------------------
Summary: LoadError when running rake with bundler on Fedora 17
Key: DTACLOUD-291
URL: https://issues.apache.org/jira/browse/DTACLOUD-291
Project: DeltaCloud
Issue Type: Bug
Components: Native/Frontend
Environment: deltacloud commit version: 1ed49681482d64fb1578fc6ab6989e32d7cc8cc2
Fedora 17
ruby 1.9.3p194 (2012-04-20 revision 35410) [x86_64-linux]
Reporter: Ronelle Landy
On Fedora 17, running any rake task with 'bundle' included in the Rakefile causes a LoadError as shown below ...
[root@nec-em6 server]# rake mock:features:reset
rake aborted!
There was a LoadError while evaluating deltacloud-core.gemspec:
cannot load such file -- rake from
/home/dcloud/workspace/deltacloud/server/deltacloud-core.gemspec:17:in `<main>'
Does it try to require a relative path? That doesn't work in Ruby 1.9.
Commenting out the following in the Rakefile fixes the problem:
begin
require "bundler"
Bundler.setup
rescue LoadError
$stderr.puts "Please install bundler with 'gem install bundler'"
exit(1)
end
--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira
[jira] [Commented] (DTACLOUD-291) LoadError when running rake with
bundler on Fedora 17
Posted by "Michal Fojtik (JIRA)" <ji...@apache.org>.
[ https://issues.apache.org/jira/browse/DTACLOUD-291?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13426592#comment-13426592 ]
Michal Fojtik commented on DTACLOUD-291:
----------------------------------------
I suggest to add NO_BUNDLER=1 environment variable that will disable bundler loading. What do you think David?
> LoadError when running rake with bundler on Fedora 17
> -----------------------------------------------------
>
> Key: DTACLOUD-291
> URL: https://issues.apache.org/jira/browse/DTACLOUD-291
> Project: DeltaCloud
> Issue Type: Bug
> Components: Native/Frontend
> Environment: deltacloud commit version: 1ed49681482d64fb1578fc6ab6989e32d7cc8cc2
> Fedora 17
> ruby 1.9.3p194 (2012-04-20 revision 35410) [x86_64-linux]
> Reporter: Ronelle Landy
> Assignee: David Lutterkort
>
> On Fedora 17, running any rake task with 'bundle' included in the Rakefile causes a LoadError as shown below ...
> [root@nec-em6 server]# rake mock:features:reset
> rake aborted!
> There was a LoadError while evaluating deltacloud-core.gemspec:
> cannot load such file -- rake from
> /home/dcloud/workspace/deltacloud/server/deltacloud-core.gemspec:17:in `<main>'
>
> Does it try to require a relative path? That doesn't work in Ruby 1.9.
> Commenting out the following in the Rakefile fixes the problem:
> begin
> require "bundler"
> Bundler.setup
> rescue LoadError
> $stderr.puts "Please install bundler with 'gem install bundler'"
> exit(1)
> end
--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira
[jira] [Resolved] (DTACLOUD-291) LoadError when running rake with
bundler on Fedora 17
Posted by "Michal Fojtik (JIRA)" <ji...@apache.org>.
[ https://issues.apache.org/jira/browse/DTACLOUD-291?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Michal Fojtik resolved DTACLOUD-291.
------------------------------------
Resolution: Fixed
Assignee: Michal Fojtik (was: David Lutterkort)
commit a563ba6b77e5d758fd35f1be337acf38f3bf7a35
Author: Michal Fojtik <mf...@redhat.com>
Date: Wed Aug 22 10:04:39 2012 +0200
Remove 'rake' require from gemspec
* This require cause errors in bundler when Ruby distribution
does not bundle 'rake'.
Signed-off-by: Michal fojtik <mf...@redhat.com>
> LoadError when running rake with bundler on Fedora 17
> -----------------------------------------------------
>
> Key: DTACLOUD-291
> URL: https://issues.apache.org/jira/browse/DTACLOUD-291
> Project: DeltaCloud
> Issue Type: Bug
> Components: Native/Frontend
> Environment: deltacloud commit version: 1ed49681482d64fb1578fc6ab6989e32d7cc8cc2
> Fedora 17
> ruby 1.9.3p194 (2012-04-20 revision 35410) [x86_64-linux]
> Reporter: Ronelle Landy
> Assignee: Michal Fojtik
>
> On Fedora 17, running any rake task with 'bundle' included in the Rakefile causes a LoadError as shown below ...
> [root@nec-em6 server]# rake mock:features:reset
> rake aborted!
> There was a LoadError while evaluating deltacloud-core.gemspec:
> cannot load such file -- rake from
> /home/dcloud/workspace/deltacloud/server/deltacloud-core.gemspec:17:in `<main>'
>
> Does it try to require a relative path? That doesn't work in Ruby 1.9.
> Commenting out the following in the Rakefile fixes the problem:
> begin
> require "bundler"
> Bundler.setup
> rescue LoadError
> $stderr.puts "Please install bundler with 'gem install bundler'"
> exit(1)
> end
--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira
[jira] [Commented] (DTACLOUD-291) LoadError when running rake with
bundler on Fedora 17
Posted by "Michal Fojtik (JIRA)" <ji...@apache.org>.
[ https://issues.apache.org/jira/browse/DTACLOUD-291?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13427256#comment-13427256 ]
Michal Fojtik commented on DTACLOUD-291:
----------------------------------------
Btw. just to track down this issue, I got similar problem with OpenShift:
remote: ~/git/deltacloud.git ~/git/deltacloud.git
remote: ~/git/deltacloud.git
remote: Running .openshift/action_hooks/pre_build
remote: Bundling RubyGems based on Gemfile/Gemfile.lock to repo/vendor/bundle with 'bundle install --deployment'
remote: There was a LoadError while evaluating deltacloud-core.gemspec:
remote: no such file to load -- rake from
remote: /var/lib/stickshift/a852134dca944ed0855e517752cb769a/app-root/runtime/repo/deltacloud-core.gemspec:17
remote: Precompiling with 'bundle exec rake assets:precompile'
remote: There was a LoadError while evaluating deltacloud-core.gemspec:
remote: no such file to load -- rake from
remote: /var/lib/stickshift/a852134dca944ed0855e517752cb769a/app-root/runtime/repo/deltacloud-core.gemspec:17
After removing require "rake" from gemspec:
remote: ~/git/deltacloud.git ~/git/deltacloud.git
remote: ~/git/deltacloud.git
remote: Running .openshift/action_hooks/pre_build
remote: Restoring previously bundled RubyGems (note: you can commit .openshift/markers/force_clean_build at the root of your repo to force a clean bundle)
remote: Bundling RubyGems based on Gemfile/Gemfile.lock to repo/vendor/bundle with 'bundle install --deployment'
remote: /var/lib/stickshift/a852134dca944ed0855e517752cb769a/app-root/runtime/repo/deltacloud-core.gemspec:33: uninitialized constant FileList (NameError)
remote: from /usr/lib/ruby/site_ruby/1.8/rubygems/specification.rb:425:in `initialize'
remote: from /var/lib/stickshift/a852134dca944ed0855e517752cb769a/app-root/runtime/repo/deltacloud-core.gemspec:17:in `new'
remote: from /var/lib/stickshift/a852134dca944ed0855e517752cb769a/app-root/runtime/repo/deltacloud-core.gemspec:17
(PS: slowly starting to hate bundler ;-)
> LoadError when running rake with bundler on Fedora 17
> -----------------------------------------------------
>
> Key: DTACLOUD-291
> URL: https://issues.apache.org/jira/browse/DTACLOUD-291
> Project: DeltaCloud
> Issue Type: Bug
> Components: Native/Frontend
> Environment: deltacloud commit version: 1ed49681482d64fb1578fc6ab6989e32d7cc8cc2
> Fedora 17
> ruby 1.9.3p194 (2012-04-20 revision 35410) [x86_64-linux]
> Reporter: Ronelle Landy
> Assignee: David Lutterkort
>
> On Fedora 17, running any rake task with 'bundle' included in the Rakefile causes a LoadError as shown below ...
> [root@nec-em6 server]# rake mock:features:reset
> rake aborted!
> There was a LoadError while evaluating deltacloud-core.gemspec:
> cannot load such file -- rake from
> /home/dcloud/workspace/deltacloud/server/deltacloud-core.gemspec:17:in `<main>'
>
> Does it try to require a relative path? That doesn't work in Ruby 1.9.
> Commenting out the following in the Rakefile fixes the problem:
> begin
> require "bundler"
> Bundler.setup
> rescue LoadError
> $stderr.puts "Please install bundler with 'gem install bundler'"
> exit(1)
> end
--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira
[jira] [Commented] (DTACLOUD-291) LoadError when running rake with
bundler on Fedora 17
Posted by "Michal Fojtik (JIRA)" <ji...@apache.org>.
[ https://issues.apache.org/jira/browse/DTACLOUD-291?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13427258#comment-13427258 ]
Michal Fojtik commented on DTACLOUD-291:
----------------------------------------
Another funny problem with this stuff: https://github.com/carlhuda/bundler/issues/2041
(i'm trying to restore openshift task)
> LoadError when running rake with bundler on Fedora 17
> -----------------------------------------------------
>
> Key: DTACLOUD-291
> URL: https://issues.apache.org/jira/browse/DTACLOUD-291
> Project: DeltaCloud
> Issue Type: Bug
> Components: Native/Frontend
> Environment: deltacloud commit version: 1ed49681482d64fb1578fc6ab6989e32d7cc8cc2
> Fedora 17
> ruby 1.9.3p194 (2012-04-20 revision 35410) [x86_64-linux]
> Reporter: Ronelle Landy
> Assignee: David Lutterkort
>
> On Fedora 17, running any rake task with 'bundle' included in the Rakefile causes a LoadError as shown below ...
> [root@nec-em6 server]# rake mock:features:reset
> rake aborted!
> There was a LoadError while evaluating deltacloud-core.gemspec:
> cannot load such file -- rake from
> /home/dcloud/workspace/deltacloud/server/deltacloud-core.gemspec:17:in `<main>'
>
> Does it try to require a relative path? That doesn't work in Ruby 1.9.
> Commenting out the following in the Rakefile fixes the problem:
> begin
> require "bundler"
> Bundler.setup
> rescue LoadError
> $stderr.puts "Please install bundler with 'gem install bundler'"
> exit(1)
> end
--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira
[jira] [Closed] (DTACLOUD-291) LoadError when running rake with
bundler on Fedora 17
Posted by "Ronelle Landy (JIRA)" <ji...@apache.org>.
[ https://issues.apache.org/jira/browse/DTACLOUD-291?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Ronelle Landy closed DTACLOUD-291.
----------------------------------
Closing this issue as fixed in deltacloud git commit version dbdffa5bd7363ace59b46a4bf9e516f49c27494d.
running >> rake test
from deltacloud/server directory gives:
19 tests, 131 assertions, 0 failures, 0 errors, 0 skips
8 tests, 32 assertions, 0 failures, 0 errors, 0 skips
.......
> LoadError when running rake with bundler on Fedora 17
> -----------------------------------------------------
>
> Key: DTACLOUD-291
> URL: https://issues.apache.org/jira/browse/DTACLOUD-291
> Project: DeltaCloud
> Issue Type: Bug
> Components: Native/Frontend
> Environment: deltacloud commit version: 1ed49681482d64fb1578fc6ab6989e32d7cc8cc2
> Fedora 17
> ruby 1.9.3p194 (2012-04-20 revision 35410) [x86_64-linux]
> Reporter: Ronelle Landy
> Assignee: Michal Fojtik
>
> On Fedora 17, running any rake task with 'bundle' included in the Rakefile causes a LoadError as shown below ...
> [root@nec-em6 server]# rake mock:features:reset
> rake aborted!
> There was a LoadError while evaluating deltacloud-core.gemspec:
> cannot load such file -- rake from
> /home/dcloud/workspace/deltacloud/server/deltacloud-core.gemspec:17:in `<main>'
>
> Does it try to require a relative path? That doesn't work in Ruby 1.9.
> Commenting out the following in the Rakefile fixes the problem:
> begin
> require "bundler"
> Bundler.setup
> rescue LoadError
> $stderr.puts "Please install bundler with 'gem install bundler'"
> exit(1)
> end
--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira
[jira] [Assigned] (DTACLOUD-291) LoadError when running rake with
bundler on Fedora 17
Posted by "Michal Fojtik (JIRA)" <ji...@apache.org>.
[ https://issues.apache.org/jira/browse/DTACLOUD-291?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Michal Fojtik reassigned DTACLOUD-291:
--------------------------------------
Assignee: David Lutterkort
> LoadError when running rake with bundler on Fedora 17
> -----------------------------------------------------
>
> Key: DTACLOUD-291
> URL: https://issues.apache.org/jira/browse/DTACLOUD-291
> Project: DeltaCloud
> Issue Type: Bug
> Components: Native/Frontend
> Environment: deltacloud commit version: 1ed49681482d64fb1578fc6ab6989e32d7cc8cc2
> Fedora 17
> ruby 1.9.3p194 (2012-04-20 revision 35410) [x86_64-linux]
> Reporter: Ronelle Landy
> Assignee: David Lutterkort
>
> On Fedora 17, running any rake task with 'bundle' included in the Rakefile causes a LoadError as shown below ...
> [root@nec-em6 server]# rake mock:features:reset
> rake aborted!
> There was a LoadError while evaluating deltacloud-core.gemspec:
> cannot load such file -- rake from
> /home/dcloud/workspace/deltacloud/server/deltacloud-core.gemspec:17:in `<main>'
>
> Does it try to require a relative path? That doesn't work in Ruby 1.9.
> Commenting out the following in the Rakefile fixes the problem:
> begin
> require "bundler"
> Bundler.setup
> rescue LoadError
> $stderr.puts "Please install bundler with 'gem install bundler'"
> exit(1)
> end
--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira
[jira] [Commented] (DTACLOUD-291) LoadError when running rake with
bundler on Fedora 17
Posted by "David Lutterkort (JIRA)" <ji...@apache.org>.
[ https://issues.apache.org/jira/browse/DTACLOUD-291?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13427030#comment-13427030 ]
David Lutterkort commented on DTACLOUD-291:
-------------------------------------------
Do we have any idea what's causing this ?
Do we have to require rake in the gemspec ?
Also, do other things have this problem in F17, e.g. rails ? What happens if you set up a new rails 3.2.6 app on F17 and then run rake ? If that works, we need to find a way to fix our code ...
> LoadError when running rake with bundler on Fedora 17
> -----------------------------------------------------
>
> Key: DTACLOUD-291
> URL: https://issues.apache.org/jira/browse/DTACLOUD-291
> Project: DeltaCloud
> Issue Type: Bug
> Components: Native/Frontend
> Environment: deltacloud commit version: 1ed49681482d64fb1578fc6ab6989e32d7cc8cc2
> Fedora 17
> ruby 1.9.3p194 (2012-04-20 revision 35410) [x86_64-linux]
> Reporter: Ronelle Landy
> Assignee: David Lutterkort
>
> On Fedora 17, running any rake task with 'bundle' included in the Rakefile causes a LoadError as shown below ...
> [root@nec-em6 server]# rake mock:features:reset
> rake aborted!
> There was a LoadError while evaluating deltacloud-core.gemspec:
> cannot load such file -- rake from
> /home/dcloud/workspace/deltacloud/server/deltacloud-core.gemspec:17:in `<main>'
>
> Does it try to require a relative path? That doesn't work in Ruby 1.9.
> Commenting out the following in the Rakefile fixes the problem:
> begin
> require "bundler"
> Bundler.setup
> rescue LoadError
> $stderr.puts "Please install bundler with 'gem install bundler'"
> exit(1)
> end
--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira
[jira] [Commented] (DTACLOUD-291) LoadError when running rake with
bundler on Fedora 17
Posted by "Michal Fojtik (JIRA)" <ji...@apache.org>.
[ https://issues.apache.org/jira/browse/DTACLOUD-291?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13427240#comment-13427240 ]
Michal Fojtik commented on DTACLOUD-291:
----------------------------------------
* It's Fedora problem, since they shaved 'ruby' installation from 'rake' and other bundled things. These things are now not available in usual LOAD_PATCH place and for that bundler have problems with it.
* We do need it because of FileList. You can build a new gem using "gem build deltacloud-core.spec", which will not work if you don't require 'rake'
* Rails does not hit this problem, because they are not doing Gem::Specification.load. I think the problem is caused by this, looking into sources, this method read gemspec and then evaluate its content. What is not yet clear to me is why this evaluated code isn't handled by bundler too:
spec = eval code, binding, file
^^ relevant code from Specification.
On of the possible solutions will be to remove require "rake" from gemspec, which will make 'gem build' fail and use 'rake package' to build new gem. I'm happy to do it in this way.
> LoadError when running rake with bundler on Fedora 17
> -----------------------------------------------------
>
> Key: DTACLOUD-291
> URL: https://issues.apache.org/jira/browse/DTACLOUD-291
> Project: DeltaCloud
> Issue Type: Bug
> Components: Native/Frontend
> Environment: deltacloud commit version: 1ed49681482d64fb1578fc6ab6989e32d7cc8cc2
> Fedora 17
> ruby 1.9.3p194 (2012-04-20 revision 35410) [x86_64-linux]
> Reporter: Ronelle Landy
> Assignee: David Lutterkort
>
> On Fedora 17, running any rake task with 'bundle' included in the Rakefile causes a LoadError as shown below ...
> [root@nec-em6 server]# rake mock:features:reset
> rake aborted!
> There was a LoadError while evaluating deltacloud-core.gemspec:
> cannot load such file -- rake from
> /home/dcloud/workspace/deltacloud/server/deltacloud-core.gemspec:17:in `<main>'
>
> Does it try to require a relative path? That doesn't work in Ruby 1.9.
> Commenting out the following in the Rakefile fixes the problem:
> begin
> require "bundler"
> Bundler.setup
> rescue LoadError
> $stderr.puts "Please install bundler with 'gem install bundler'"
> exit(1)
> end
--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira