Wiping out my gems/gems directory and redeploying did the trick. *Problem* # thor merb:gem:install Beginning transaction /opt/local/lib/ruby/vendor_ruby/1.8/rubygems/uninstaller.rb:61:in `uninstall': Unknown gem >= 0 (Gem::InstallError)
*Fix* # rm -Rf gems/gems # thor merb:gem:redeploy On Jan 10, 5:57 pm, Jacques Crocker <[email protected]> wrote: > Ah, exception #2 is handled on the > thread:http://groups.google.com/group/merb/browse_thread/thread/f1bd76a125ed... > > here's the fix to get do_mysql working: > dependency "do_mysql", "0.9.10.1", :require_as => nil > > Sorry for not searching before typing! > > Now exception #3 is the blocker (Unknown gem >= 0 > (Gem::InstallError). I'll do some more research on that. Maybe should > wipe out my gems/gems dir and rebuild. > > On Jan 10, 5:49 pm, "Yehuda Katz" <[email protected]> wrote: > > > rm -rf .original_gems > > -- Yehuda > > > On Sat, Jan 10, 2009 at 5:46 PM, Jacques Crocker <[email protected]> wrote: > > > > Ok... looks like I had my system merb gem still on 1.0.6. Forgot that > > > merb-gen uses the system. I should have used bin/merb-gen to > > > regenerate it. > > > > Now on to more exceptions > > > > 1) After an exception occurs, subsequent running of thor > > > merb:gem:install produces this error: > > > [...@macbookpro ~/Merb/myapp]# thor merb:gem:install > > > Beginning transaction > > > /opt/local/lib/ruby/1.8/fileutils.rb:1262:in `initialize': Permission > > > denied - /Users/jc/Merb/myapp/.original_gems/gems/gems/ > > > ParseTree-3.0.2/.autotest (Errno::EACCES) > > > from /opt/local/lib/ruby/1.8/fileutils.rb:1262:in `open' > > > from /opt/local/lib/ruby/1.8/fileutils.rb:1262:in `copy_file' > > > from /opt/local/lib/ruby/1.8/fileutils.rb:1261:in `open' > > > from /opt/local/lib/ruby/1.8/fileutils.rb:1261:in `copy_file' > > > from /opt/local/lib/ruby/1.8/fileutils.rb:1231:in `copy' > > > from /opt/local/lib/ruby/1.8/fileutils.rb:451:in `copy_entry' > > > from /opt/local/lib/ruby/1.8/fileutils.rb:1324:in `traverse' > > > from /opt/local/lib/ruby/1.8/fileutils.rb:448:in `copy_entry' > > > from /opt/local/lib/ruby/1.8/fileutils.rb:423:in `cp_r' > > > from /opt/local/lib/ruby/1.8/fileutils.rb:1395:in > > > `fu_each_src_dest' > > > from /opt/local/lib/ruby/1.8/fileutils.rb:1409:in > > > `fu_each_src_dest0' > > > from /opt/local/lib/ruby/1.8/fileutils.rb:1393:in > > > `fu_each_src_dest' > > > from /opt/local/lib/ruby/1.8/fileutils.rb:422:in `cp_r' > > > from /Users/jc/Merb/myapp/tasks/merb.thor/ops.rb:54:in > > > `begin_trans' > > > from /Users/jc/Merb/myapp/tasks/merb.thor/main.thor:113:in > > > `install' > > > from > > > /opt/local/lib/ruby/gems/1.8/gems/thor-0.9.9/lib/thor/task.rb: > > > 27:in `send' > > > from /opt/local/lib/ruby/gems/1.8/gems/thor-0.9.9/lib/thor/task.rb: > > > 27:in `run' > > > from /opt/local/lib/ruby/gems/1.8/gems/thor-0.9.9/lib/thor/task.rb: > > > 20:in `parse' > > > from > > > /opt/local/lib/ruby/gems/1.8/gems/thor-0.9.9/lib/thor/runner.rb: > > > 155:in `method_missing' > > > from /opt/local/lib/ruby/gems/1.8/gems/thor-0.9.9/lib/thor/task.rb: > > > 27:in `send' > > > from /opt/local/lib/ruby/gems/1.8/gems/thor-0.9.9/lib/thor/task.rb: > > > 27:in `run' > > > from /opt/local/lib/ruby/gems/1.8/gems/thor-0.9.9/lib/thor/task.rb: > > > 20:in `parse' > > > from /opt/local/lib/ruby/gems/1.8/gems/thor-0.9.9/lib/thor.rb:78:in > > > `start' > > > from /opt/local/lib/ruby/gems/1.8/gems/thor-0.9.9/bin/thor:7 > > > from /opt/local/bin/thor:19:in `load' > > > from /opt/local/bin/thor:19 > > > > The fix is to "rm -Rf .original_gems". Would be really nice to add a > > > check for this and clear it out automatically on initialization? > > > > 2) do_mysql dependencies are really fux0red. Here is my > > > dependencies.rb:http://gist.github.com/45597 > > > > [...@macbookpro ~/Merb/myapp]# thorgem > > > Beginning transaction > > > Needed data_objects (= 0.9.9, runtime) for do_mysql (, runtime), but > > > could not find it > > > Found data_objects-0.9.10.1 > > > Rolling back transaction > > > [...@macbookpro ~/Merb/myapp]# > > > > 3) When i remove the do_mysql dependency (as such: > > >http://gist.github.com/45598), > > > I get this error which seems really incomprehensible: > > > > [...@macbookpro ~/Merb/myapp]# thor merb:gem:install > > > Beginning transaction > > > /opt/local/lib/ruby/vendor_ruby/1.8/rubygems/uninstaller.rb:61:in > > > `uninstall': Unknown gem >= 0 (Gem::InstallError) > > > from /Users/jc/Merb/myapp/tasks/merb.thor/main.thor:142:in > > > `install' > > > from /Users/jc/Merb/myapp/tasks/merb.thor/main.thor:132:in `each' > > > from /Users/jc/Merb/myapp/tasks/merb.thor/main.thor:132:in > > > `install' > > > from > > > /opt/local/lib/ruby/gems/1.8/gems/thor-0.9.9/lib/thor/task.rb: > > > 27:in `send' > > > from /opt/local/lib/ruby/gems/1.8/gems/thor-0.9.9/lib/thor/task.rb: > > > 27:in `run' > > > from /opt/local/lib/ruby/gems/1.8/gems/thor-0.9.9/lib/thor/task.rb: > > > 20:in `parse' > > > from > > > /opt/local/lib/ruby/gems/1.8/gems/thor-0.9.9/lib/thor/runner.rb: > > > 155:in `method_missing' > > > from /opt/local/lib/ruby/gems/1.8/gems/thor-0.9.9/lib/thor/task.rb: > > > 27:in `send' > > > from /opt/local/lib/ruby/gems/1.8/gems/thor-0.9.9/lib/thor/task.rb: > > > 27:in `run' > > > from /opt/local/lib/ruby/gems/1.8/gems/thor-0.9.9/lib/thor/task.rb: > > > 20:in `parse' > > > from /opt/local/lib/ruby/gems/1.8/gems/thor-0.9.9/lib/thor.rb:78:in > > > `start' > > > from /opt/local/lib/ruby/gems/1.8/gems/thor-0.9.9/bin/thor:7 > > > from /opt/local/bin/thor:19:in `load' > > > from /opt/local/bin/thor:19 > > > [...@macbookpro ~/Merb/myapp]# > > > > I'll be on gtalk ([email protected]) if you need further debugging > > > support. Your help is much appeciated! > > > > On Jan 10, 5:26 pm, Jacques Crocker <[email protected]> wrote: > > > > Hmmm.. tried that a couple times with no luck. Same error. I'm > > > > definitely on merb 1.0.7.1. Here's exactly what's in my merb.thor/ > > > > gem_ext.rb:http://gist.github.com/45595 > > > > > On Jan 10, 5:12 pm, "Yehuda Katz" <[email protected]> wrote: > > > > > > Do the following: > > > > > rm -rf tasks/merb.thor > > > > > merb-gen thor > > > > > > Assuming you're on 1.0.7.1, that should work. > > > > > > -- Yehuda > > > > > > On Sat, Jan 10, 2009 at 3:18 PM, Jacques Crocker <[email protected]> > > > wrote: > > > > > > > Running into a problem trying to upgrade to Datamapper 0.9.9 > > > > > > > Here is my dependencies.rb. All I did was change dm_gems_version > > > > > > from > > > > > > "0.9.8" to "0.9.9" > > > > > >http://gist.github.com/45586 > > > > > > > Here is the output: > > > > > > > [...@macbookpro ~/Merb/myapp]# thor merb:gem:install > > > > > > Beginning transaction > > > > > > Installing data_objects-0.9.10.1 > > > > > > - Successfully uninstalled data_objects-0.9.9 > > > > > > Installing dm-core-0.9.9 > > > > > > - Successfully uninstalled dm-core-0.9.8 > > > > > > Installing dm-aggregates-0.9.9 > > > > > > - Successfully uninstalled dm-aggregates-0.9.8 > > > > > > Installing dm-migrations-0.9.9 > > > > > > - Successfully uninstalled dm-migrations-0.9.8 > > > > > > Installing dm-types-0.9.9 > > > > > > - Successfully uninstalled dm-types-0.9.8 > > > > > > Installing dm-validations-0.9.9 > > > > > > - Successfully uninstalled dm-validations-0.9.8 > > > > > > Installing dm-ar-finders-0.9.9 > > > > > > - Successfully uninstalled dm-ar-finders-0.9.8 > > > > > > Installing dm-adjust-0.9.9 > > > > > > - Successfully uninstalled dm-adjust-0.9.8 > > > > > > Installing dm-is-list-0.9.9 > > > > > > - Successfully uninstalled dm-is-list-0.9.8 > > > > > > /Users/jc/Merb/myapp/tasks/merb.thor/gem_ext.rb:115:in > > > > > > `recursive_dependencies': undefined method `full_name' for > > > > > > #<Gem::Dependency:0x454c474> (NoMethodError) > > > > > > from /Users/jc/Merb/myapp/tasks/merb.thor/gem_ext.rb:111:in > > > `map' > > > > > > from /Users/jc/Merb/myapp/tasks/merb.thor/gem_ext.rb:111:in > > > > > > `recursive_dependencies' > > > > > > from /Users/jc/Merb/myapp/tasks/merb.thor/ops.rb:33:in > > > `full_list' > > > > > > from /Users/jc/Merb/myapp/tasks/merb.thor/ops.rb:26:in `map' > > > > > > from /Users/jc/Merb/myapp/tasks/merb.thor/ops.rb:26:in > > > `full_list' > > > > > > from /Users/jc/Merb/myapp/tasks/merb.thor/main.thor:130:in > > > `install' > > > > > > from > > > /opt/local/lib/ruby/gems/1.8/gems/thor-0.9.9/lib/thor/task.rb: > > > > > > 27:in `send' > > > > > > from > > > /opt/local/lib/ruby/gems/1.8/gems/thor-0.9.9/lib/thor/task.rb: > > > > > > 27:in `run' > > > > > > from > > > /opt/local/lib/ruby/gems/1.8/gems/thor-0.9.9/lib/thor/task.rb: > > > > > > 20:in `parse' > > > > > > from > > > > > > /opt/local/lib/ruby/gems/1.8/gems/thor-0.9.9/lib/thor/runner.rb: > > > > > > 155:in `method_missing' > > > > > > from > > > /opt/local/lib/ruby/gems/1.8/gems/thor-0.9.9/lib/thor/task.rb: > > > > > > 27:in `send' > > > > > > from > > > /opt/local/lib/ruby/gems/1.8/gems/thor-0.9.9/lib/thor/task.rb: > > > > > > 27:in `run' > > > > > > from > > > /opt/local/lib/ruby/gems/1.8/gems/thor-0.9.9/lib/thor/task.rb: > > > > > > 20:in `parse' > > > > > > from > > > /opt/local/lib/ruby/gems/1.8/gems/thor-0.9.9/lib/thor.rb:78:in > > > > > > `start' > > > > > > from /opt/local/lib/ruby/gems/1.8/gems/thor-0.9.9/bin/thor:7 > > > > > > from /opt/local/bin/thor:19:in `load' > > > > > > from /opt/local/bin/thor:19 > > > > > > > [...@macbookpro ~/Merb/myapp]# gem --version > > > > > > 1.3.1 > > > > > > > Undefined method "full_name" in Gem::Dependency. Do I have the wrong > > > > > > RubyGems installed? I'm currently at 1.3.1 > > > > > > > Thanks > > > > > > -- > > > > > Yehuda Katz > > > > > Developer | Engine Yard > > > > > (ph) 718.877.1325 > > > -- > > Yehuda Katz > > Developer | Engine Yard > > (ph) 718.877.1325 > > --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "merb" group. To post to this group, send email to [email protected] To unsubscribe from this group, send email to [email protected] For more options, visit this group at http://groups.google.com/group/merb?hl=en -~----------~----~----~----~------~----~------~--~---
