Error with loading rdoc with rvm - ruby

I was trying to add docs through rvm, did not run into any errors, then when I went to look at File.open, received the following error. Any ideas?
Mikes-MacBook-Pro:programs mwsage$ rvm docs generate
Installing rdoc-data...................
Mikes-MacBook-Pro:programs mwsage$ ri File.open
/Users/mwsage/.rvm/gems/ruby-1.9.3-p429#rails3tutorial2ndEd/gems/rdoc-4.0.1/lib/rdoc/store.rb:617:in `initialize': store at /Users/mwsage/.rvm/rubies/ruby-1.9.3-p429/share/ri/1.9.1/system missing file /Users/mwsage/.rvm/rubies/ruby-1.9.3-p429/share/ri/1.9.1/system/Kernel/open-c.ri for Kernel::open (RDoc::Store::MissingFileError)
from /Users/mwsage/.rvm/gems/ruby-1.9.3-p429#rails3tutorial2ndEd/gems/rdoc-4.0.1/lib/rdoc/store.rb:617:in `open'
from /Users/mwsage/.rvm/gems/ruby-1.9.3-p429#rails3tutorial2ndEd/gems/rdoc-4.0.1/lib/rdoc/store.rb:617:in `load_method'
from /Users/mwsage/.rvm/gems/ruby-1.9.3-p429#rails3tutorial2ndEd/gems/rdoc-4.0.1/lib/rdoc/ri/driver.rb:1185:in `load_method'
from /Users/mwsage/.rvm/gems/ruby-1.9.3-p429#rails3tutorial2ndEd/gems/rdoc-4.0.1/lib/rdoc/ri/driver.rb:1197:in `block in load_methods_matching'
from /Users/mwsage/.rvm/gems/ruby-1.9.3-p429#rails3tutorial2ndEd/gems/rdoc-4.0.1/lib/rdoc/ri/driver.rb:983:in `block in find_methods'
from /Users/mwsage/.rvm/gems/ruby-1.9.3-p429#rails3tutorial2ndEd/gems/rdoc-4.0.1/lib/rdoc/ri/driver.rb:982:in `each'
from /Users/mwsage/.rvm/gems/ruby-1.9.3-p429#rails3tutorial2ndEd/gems/rdoc-4.0.1/lib/rdoc/ri/driver.rb:982:in `find_methods'
from /Users/mwsage/.rvm/gems/ruby-1.9.3-p429#rails3tutorial2ndEd/gems/rdoc-4.0.1/lib/rdoc/ri/driver.rb:1194:in `load_methods_matching'
from /Users/mwsage/.rvm/gems/ruby-1.9.3-p429#rails3tutorial2ndEd/gems/rdoc-4.0.1/lib/rdoc/ri/driver.rb:1213:in `lookup_method'
from /Users/mwsage/.rvm/gems/ruby-1.9.3-p429#rails3tutorial2ndEd/gems/rdoc-4.0.1/lib/rdoc/ri/driver.rb:508:in `add_method'
from /Users/mwsage/.rvm/gems/ruby-1.9.3-p429#rails3tutorial2ndEd/gems/rdoc-4.0.1/lib/rdoc/ri/driver.rb:783:in `display_method'
from /Users/mwsage/.rvm/gems/ruby-1.9.3-p429#rails3tutorial2ndEd/gems/rdoc-4.0.1/lib/rdoc/ri/driver.rb:802:in `display_name'
from /Users/mwsage/.rvm/gems/ruby-1.9.3-p429#rails3tutorial2ndEd/gems/rdoc-4.0.1/lib/rdoc/ri/driver.rb:827:in `block in display_names'
from /Users/mwsage/.rvm/gems/ruby-1.9.3-p429#rails3tutorial2ndEd/gems/rdoc-4.0.1/lib/rdoc/ri/driver.rb:824:in `each'
from /Users/mwsage/.rvm/gems/ruby-1.9.3-p429#rails3tutorial2ndEd/gems/rdoc-4.0.1/lib/rdoc/ri/driver.rb:824:in `display_names'
from /Users/mwsage/.rvm/gems/ruby-1.9.3-p429#rails3tutorial2ndEd/gems/rdoc-4.0.1/lib/rdoc/ri/driver.rb:1361:in `run'
from /Users/mwsage/.rvm/gems/ruby-1.9.3-p429#rails3tutorial2ndEd/gems/rdoc-4.0.1/lib/rdoc/ri/driver.rb:356:in `run'
from /Users/mwsage/.rvm/gems/ruby-1.9.3-p429#rails3tutorial2ndEd/gems/rdoc-4.0.1/bin/ri:12:in `<top (required)>'
from /Users/mwsage/.rvm/gems/ruby-1.9.3-p429#rails3tutorial2ndEd/bin/ri:23:in `load'
from /Users/mwsage/.rvm/gems/ruby-1.9.3-p429#rails3tutorial2ndEd/bin/ri:23:in `<main>'

Related

Why does importing ruby pg gem fail on windows?

I have a problem loading a gem (pg, a postgreSQL API for ruby) i have installed for ruby on windows. It was successfully installed with gem install. I downloaded Strawberry perl for the libpq libs and headers required for the pg gem. I received the following successful output:
Temporarily enhancing PATH for MSYS/MINGW...
Building native extensions. This could take a while...
Successfully installed pg-1.2.3
Parsing documentation for pg-1.2.3
Installing ri documentation for pg-1.2.3
Done installing documentation for pg after 7 seconds
1 gem installed
If I run gem list I can see the gem is also installed along with other gems:
gem list
> pg (1.2.3)
However I am unable to load it using the require method. If I try to run a script containing require 'pg' I get the following error:
C:/Ruby30-x64/lib/ruby/site_ruby/3.0.0/ruby_installer/runtime/dll_directory.rb:83:in `add_dll_directory_winapi': AddDllDirectory failed for C:/Ruby30-x from C:/Ruby30-x64/lib/ruby/site_ruby/3.0.0/ruby_installer/runtime/dll_directory.rb:50:in `initialize'
from C:/Ruby30-x64/lib/ruby/site_ruby/3.0.0/ruby_installer/runtime/singleton.rb:12:in `new'
from C:/Ruby30-x64/lib/ruby/site_ruby/3.0.0/ruby_installer/runtime/singleton.rb:12:in `add_dll_directory'
from C:/Ruby30-x64/lib/ruby/gems/3.0.0/gems/pg-1.2.3/lib/pg.rb:15:in `block in <top (required)>'
from C:/Ruby30-x64/lib/ruby/gems/3.0.0/gems/pg-1.2.3/lib/pg.rb:26:in `rescue in <top (required)>'
from C:/Ruby30-x64/lib/ruby/gems/3.0.0/gems/pg-1.2.3/lib/pg.rb:4:in `<top (required)>'
from <internal:C:/Ruby30-x64/lib/ruby/3.0.0/rubygems/core_ext/kernel_require.rb>:160:in `require'
from <internal:C:/Ruby30-x64/lib/ruby/3.0.0/rubygems/core_ext/kernel_require.rb>:160:in `rescue in require'
from <internal:C:/Ruby30-x64/lib/ruby/3.0.0/rubygems/core_ext/kernel_require.rb>:149:in `require'
from P:/Projekte/OPTIMA_910/Hydraulik/Scripts/pg_snippet.rb:2:in `<main>'
<internal:C:/Ruby30-x64/lib/ruby/3.0.0/rubygems/core_ext/kernel_require.rb>:85:in `require': 126: The specified module could not be found. - C:/Ruby30-x64/lib/ruby/gems/3.0.0/gems/pg-1.2.3/lib/pg_ext.so (LoadError)
from <internal:C:/Ruby30-x64/lib/ruby/3.0.0/rubygems/core_ext/kernel_require.rb>:85:in `require'
from C:/Ruby30-x64/lib/ruby/gems/3.0.0/gems/pg-1.2.3/lib/pg.rb:5:in `<top (required)>'
from <internal:C:/Ruby30-x64/lib/ruby/3.0.0/rubygems/core_ext/kernel_require.rb>:160:in `require'
from <internal:C:/Ruby30-x64/lib/ruby/3.0.0/rubygems/core_ext/kernel_require.rb>:160:in `rescue in require'
from <internal:C:/Ruby30-x64/lib/ruby/3.0.0/rubygems/core_ext/kernel_require.rb>:149:in `require'
from D:/Scripts/pg_snippet.rb:2:in `<main>'
<internal:C:/Ruby30-x64/lib/ruby/3.0.0/rubygems/core_ext/kernel_require.rb>:85:in `require': cannot load such file -- pg (LoadError)
from <internal:C:/Ruby30-x64/lib/ruby/3.0.0/rubygems/core_ext/kernel_require.rb>:85:in `require'
from D:/Scripts/pg_snippet.rb:2:in `<main>'
Likewise I try to run it as a command on irb I get a slightly different output:
Traceback (most recent call last):
14: from C:/Ruby30-x64/bin/irb.cmd:31:in `<main>'
13: from C:/Ruby30-x64/bin/irb.cmd:31:in `load'
12: from C:/Ruby30-x64/lib/ruby/gems/3.0.0/gems/irb-1.3.0/exe/irb:11:in `<top (required)>'
11: from (irb):2:in `<main>'
10: from <internal:C:/Ruby30-x64/lib/ruby/3.0.0/rubygems/core_ext/kernel_require.rb>:149:in `require'
9: from <internal:C:/Ruby30-x64/lib/ruby/3.0.0/rubygems/core_ext/kernel_require.rb>:160:in `rescue in require'
8: from <internal:C:/Ruby30-x64/lib/ruby/3.0.0/rubygems/core_ext/kernel_require.rb>:160:in `require'
7: from C:/Ruby30-x64/lib/ruby/gems/3.0.0/gems/pg-1.2.3/lib/pg.rb:4:in `<top (required)>'
6: from C:/Ruby30-x64/lib/ruby/gems/3.0.0/gems/pg-1.2.3/lib/pg.rb:26:in `rescue in <top (required)>'
5: from C:/Ruby30-x64/lib/ruby/gems/3.0.0/gems/pg-1.2.3/lib/pg.rb:15:in `block in <top (required)>'
4: from C:/Ruby30-x64/lib/ruby/site_ruby/3.0.0/ruby_installer/runtime/singleton.rb:12:in `add_dll_directory'
3: from C:/Ruby30-x64/lib/ruby/site_ruby/3.0.0/ruby_installer/runtime/singleton.rb:12:in `new'
2: from C:/Ruby30-x64/lib/ruby/site_ruby/3.0.0/ruby_installer/runtime/dll_directory.rb:50:in `initialize'
1: from C:/Ruby30-x64/lib/ruby/site_ruby/3.0.0/ruby_installer/runtime/dll_directory.rb:83:in `add_dll_directory_winapi'
RubyInstaller::Runtime::DllDirectory::WinApiError (AddDllDirectory failed for C:/Ruby30-x64/lib/ruby/gems/3.0.0/gems/pg-1.2.3/lib/x64-mingw32)
irb(main):003:0> gem list
Traceback (most recent call last):
5: from C:/Ruby30-x64/bin/irb.cmd:31:in `<main>'
4: from C:/Ruby30-x64/bin/irb.cmd:31:in `load'
3: from C:/Ruby30-x64/lib/ruby/gems/3.0.0/gems/irb-1.3.0/exe/irb:11:in `<top (required)>'
2: from (irb):2:in `<main>'
1: from (irb):3:in `rescue in <main>'
NameError (undefined local variable or method `list' for main:Object)
irb(main):004:0> C:/Ruby30-x64/lib/ruby/3.0.0/reline/unicode.rb:124:in `calculate_width': undefined method `encode' for nil:NilClass (NoMethodError)
from C:/Ruby30-x64/lib/ruby/3.0.0/reline/line_editor.rb:1314:in `calculate_width'
from C:/Ruby30-x64/lib/ruby/3.0.0/reline/line_editor.rb:126:in `check_multiline_prompt'
from C:/Ruby30-x64/lib/ruby/3.0.0/reline/line_editor.rb:365:in `rerender'
from C:/Ruby30-x64/lib/ruby/3.0.0/reline.rb:248:in `block (3 levels) in inner_readline'
from C:/Ruby30-x64/lib/ruby/3.0.0/reline.rb:246:in `each'
from C:/Ruby30-x64/lib/ruby/3.0.0/reline.rb:246:in `block (2 levels) in inner_readline'
from C:/Ruby30-x64/lib/ruby/3.0.0/reline.rb:330:in `block in read_io'
from C:/Ruby30-x64/lib/ruby/3.0.0/reline.rb:284:in `loop'
from C:/Ruby30-x64/lib/ruby/3.0.0/reline.rb:284:in `read_io'
from C:/Ruby30-x64/lib/ruby/3.0.0/reline.rb:245:in `block in inner_readline'
from C:/Ruby30-x64/lib/ruby/3.0.0/reline.rb:243:in `loop'
from C:/Ruby30-x64/lib/ruby/3.0.0/reline.rb:243:in `inner_readline'
from C:/Ruby30-x64/lib/ruby/3.0.0/reline.rb:175:in `readmultiline'
from C:/Ruby30-x64/lib/ruby/3.0.0/forwardable.rb:238:in `readmultiline'
from C:/Ruby30-x64/lib/ruby/3.0.0/forwardable.rb:238:in `readmultiline'
from C:/Ruby30-x64/lib/ruby/3.0.0/irb/input-method.rb:302:in `gets'
from C:/Ruby30-x64/lib/ruby/3.0.0/irb.rb:519:in `block (2 levels) in eval_input'
from C:/Ruby30-x64/lib/ruby/3.0.0/irb.rb:721:in `signal_status'
from C:/Ruby30-x64/lib/ruby/3.0.0/irb.rb:518:in `block in eval_input'
from C:/Ruby30-x64/lib/ruby/3.0.0/irb/ruby-lex.rb:202:in `lex'
from C:/Ruby30-x64/lib/ruby/3.0.0/irb/ruby-lex.rb:174:in `block (2 levels) in each_top_level_statement'
from C:/Ruby30-x64/lib/ruby/3.0.0/irb/ruby-lex.rb:171:in `loop'
from C:/Ruby30-x64/lib/ruby/3.0.0/irb/ruby-lex.rb:171:in `block in each_top_level_statement'
from C:/Ruby30-x64/lib/ruby/3.0.0/irb/ruby-lex.rb:170:in `catch'
from C:/Ruby30-x64/lib/ruby/3.0.0/irb/ruby-lex.rb:170:in `each_top_level_statement'
from C:/Ruby30-x64/lib/ruby/3.0.0/irb.rb:537:in `eval_input'
from C:/Ruby30-x64/lib/ruby/3.0.0/irb.rb:472:in `block in run'
from C:/Ruby30-x64/lib/ruby/3.0.0/irb.rb:471:in `catch'
from C:/Ruby30-x64/lib/ruby/3.0.0/irb.rb:471:in `run'
from C:/Ruby30-x64/lib/ruby/3.0.0/irb.rb:400:in `start'
from C:/Ruby30-x64/lib/ruby/gems/3.0.0/gems/irb-1.3.0/exe/irb:11:in `<top (required)>'
from C:/Ruby30-x64/bin/irb.cmd:31:in `load'
from C:/Ruby30-x64/bin/irb.cmd:31:in `<main>'
I hope there is only some extra path I need to specify. I am also not using rails btw. Any help would be greatly appreciated! If anyone else has a good suggestion for an alternative for pg I might also be open to considering that.
Thanks in advance

MOSQL: Data type: JSON ARRAY return SQL literal (Sequel::Error

I've been doing testing with this tool to migrate data from mongo db and this one of the issue that I have yet to find out a solution... been wondering a while looking for a solution... but there's no clear solution until now. Please find the stack trace below..
mosql version unknown (but when I try to uninstall the mosql, it mentions the version of mosql-0.4.3
ruby version: ruby 2.2.4p230 (2015-12-16 revision 53155) [x64-mingw32]
I made a changes to cli.rb under this folder C:\Ruby22-x64\lib\ruby\gems\2.2.0\gems\mosql-0.4.3\lib\mosql to delete "USR2" at line 27 from the list to fix issue of running mosql.
C:/Ruby22-x64/lib/ruby/gems/2.2.0/gems/sequel-4.34.0/lib/sequel/dataset/sql.rb:1252:in `literal_other_append': can't express BSON::ObjectId('5656805534616f4c317b7bff') as a SQL literal (Sequel::Error)
from C:/Ruby22-x64/lib/ruby/gems/2.2.0/gems/sequel-4.34.0/lib/sequel/dataset/sql.rb:108:in `literal_append'
from C:/Ruby22-x64/lib/ruby/gems/2.2.0/gems/sequel-4.34.0/lib/sequel/dataset/sql.rb:486:in `complex_expression_sql_append'
from C:/Ruby22-x64/lib/ruby/gems/2.2.0/gems/sequel-4.34.0/lib/sequel/adapters/shared/postgres.rb:1272:in `complex_expression_sql_append'
from C:/Ruby22-x64/lib/ruby/gems/2.2.0/gems/sequel-4.34.0/lib/sequel/sql.rb:109:in `to_s_append'
from C:/Ruby22-x64/lib/ruby/gems/2.2.0/gems/sequel-4.34.0/lib/sequel/dataset/sql.rb:1214:in `literal_expression_append'
from C:/Ruby22-x64/lib/ruby/gems/2.2.0/gems/sequel-4.34.0/lib/sequel/dataset/sql.rb:86:in `literal_append'
from C:/Ruby22-x64/lib/ruby/gems/2.2.0/gems/sequel-4.34.0/lib/sequel/dataset/sql.rb:494:in `block in complex_expression_sql_append'
from C:/Ruby22-x64/lib/ruby/gems/2.2.0/gems/sequel-4.34.0/lib/sequel/dataset/sql.rb:492:in `each'
from C:/Ruby22-x64/lib/ruby/gems/2.2.0/gems/sequel-4.34.0/lib/sequel/dataset/sql.rb:492:in `complex_expression_sql_append'
from C:/Ruby22-x64/lib/ruby/gems/2.2.0/gems/sequel-4.34.0/lib/sequel/adapters/shared/postgres.rb:1272:in `complex_expression_sql_append'
from C:/Ruby22-x64/lib/ruby/gems/2.2.0/gems/sequel-4.34.0/lib/sequel/sql.rb:109:in `to_s_append'
from C:/Ruby22-x64/lib/ruby/gems/2.2.0/gems/sequel-4.34.0/lib/sequel/dataset/sql.rb:1214:in `literal_expression_append'
from C:/Ruby22-x64/lib/ruby/gems/2.2.0/gems/sequel-4.34.0/lib/sequel/dataset/sql.rb:1229:in `literal_hash_append'
from C:/Ruby22-x64/lib/ruby/gems/2.2.0/gems/sequel-4.34.0/lib/sequel/dataset/sql.rb:84:in `literal_append'
from C:/Ruby22-x64/lib/ruby/gems/2.2.0/gems/sequel-4.34.0/lib/sequel/extensions/pg_array.rb:504:in `block in _literal_append'
from C:/Ruby22-x64/lib/ruby/gems/2.2.0/gems/sequel-4.34.0/lib/sequel/extensions/pg_array.rb:499:in `each'
from C:/Ruby22-x64/lib/ruby/gems/2.2.0/gems/sequel-4.34.0/lib/sequel/extensions/pg_array.rb:499:in `_literal_append'
from C:/Ruby22-x64/lib/ruby/gems/2.2.0/gems/sequel-4.34.0/lib/sequel/extensions/pg_array.rb:483:in `sql_literal_append'
from C:/Ruby22-x64/lib/ruby/gems/2.2.0/gems/sequel-4.34.0/lib/sequel/dataset/sql.rb:1248:in `literal_other_append'
from C:/Ruby22-x64/lib/ruby/gems/2.2.0/gems/sequel-4.34.0/lib/sequel/dataset/sql.rb:108:in `literal_append'
from C:/Ruby22-x64/lib/ruby/gems/2.2.0/gems/sequel-4.34.0/lib/sequel/dataset/sql.rb:1576:in `block in update_sql_values_hash'
from C:/Ruby22-x64/lib/ruby/gems/2.2.0/gems/sequel-4.34.0/lib/sequel/dataset/sql.rb:1568:in `each'
from C:/Ruby22-x64/lib/ruby/gems/2.2.0/gems/sequel-4.34.0/lib/sequel/dataset/sql.rb:1568:in `update_sql_values_hash'
from C:/Ruby22-x64/lib/ruby/gems/2.2.0/gems/sequel-4.34.0/lib/sequel/dataset/sql.rb:1559:in `update_set_sql'
from C:/Ruby22-x64/lib/ruby/gems/2.2.0/gems/sequel-4.34.0/lib/sequel/dataset/sql.rb:229:in `_update_sql'
from C:/Ruby22-x64/lib/ruby/gems/2.2.0/gems/sequel-4.34.0/lib/sequel/dataset/sql.rb:175:in `update_sql'
from C:/Ruby22-x64/lib/ruby/gems/2.2.0/gems/sequel-4.34.0/lib/sequel/dataset/actions.rb:818:in `update'
from C:/Ruby22-x64/lib/ruby/gems/2.2.0/gems/mosql-0.4.3/lib/mosql/sql.rb:59:in `upsert!'
from C:/Ruby22-x64/lib/ruby/gems/2.2.0/gems/mosql-0.4.3/lib/mosql/streamer.rb:61:in `block (2 levels) in bulk_upsert'
from C:/Ruby22-x64/lib/ruby/gems/2.2.0/gems/mosql-0.4.3/lib/mosql/streamer.rb:39:in `unsafe_handle_exceptions'
from C:/Ruby22-x64/lib/ruby/gems/2.2.0/gems/mosql-0.4.3/lib/mosql/streamer.rb:60:in `block in bulk_upsert'
from C:/Ruby22-x64/lib/ruby/gems/2.2.0/gems/mosql-0.4.3/lib/mosql/streamer.rb:57:in `each'
from C:/Ruby22-x64/lib/ruby/gems/2.2.0/gems/mosql-0.4.3/lib/mosql/streamer.rb:57:in `rescue in bulk_upsert'
from C:/Ruby22-x64/lib/ruby/gems/2.2.0/gems/mosql-0.4.3/lib/mosql/streamer.rb:52:in `bulk_upsert'
from C:/Ruby22-x64/lib/ruby/gems/2.2.0/gems/mosql-0.4.3/lib/mosql/streamer.rb:164:in `import_collection'
from C:/Ruby22-x64/lib/ruby/gems/2.2.0/gems/mosql-0.4.3/lib/mosql/streamer.rb:122:in `block (2 levels) in initial_import'
from C:/Ruby22-x64/lib/ruby/gems/2.2.0/gems/mosql-0.4.3/lib/mosql/streamer.rb:120:in `each'
from C:/Ruby22-x64/lib/ruby/gems/2.2.0/gems/mosql-0.4.3/lib/mosql/streamer.rb:120:in `block in initial_import'
from C:/Ruby22-x64/lib/ruby/gems/2.2.0/gems/mosql-0.4.3/lib/mosql/streamer.rb:108:in `each'
from C:/Ruby22-x64/lib/ruby/gems/2.2.0/gems/mosql-0.4.3/lib/mosql/streamer.rb:108:in `initial_import'
from C:/Ruby22-x64/lib/ruby/gems/2.2.0/gems/mosql-0.4.3/lib/mosql/streamer.rb:28:in `import'
from C:/Ruby22-x64/lib/ruby/gems/2.2.0/gems/mosql-0.4.3/lib/mosql/cli.rb:167:in `run'
from C:/Ruby22-x64/lib/ruby/gems/2.2.0/gems/mosql-0.4.3/lib/mosql/cli.rb:16:in `run'
from C:/Ruby22-x64/lib/ruby/gems/2.2.0/gems/mosql-0.4.3/bin/mosql:5:in `<top (required)>'
from C:/Ruby22-x64/bin/mosql:22:in `load'
from C:/Ruby22-x64/bin/mosql:22:in `<main>'
You probably want to add an #sql_literal or #sql_literal_append method to BSON::ObjectId so that Sequel knows how to literalize it.

Octopress Asset Pipeline gives errors when trying to build site

I am trying to build my Jekyll site with Octopress 3. I wanted to use the Octopress Asset Pipeline plugin but I keep getting this error when I run jekyll build:
/usr/local/lib/ruby/gems/2.2.0/gems/octopress-hooks-2.6.1/lib/octopress-hooks.rb:140: warning: already initialized constant Jekyll::PageHooks
/usr/local/lib/ruby/gems/2.2.0/gems/octopress-hooks-2.6.1/lib/octopress-hooks.rb:140: warning: previous definition of PageHooks was here
Configuration file: /Users/robcrocombe/Documents/octopress/test/_config.yml
/usr/local/lib/ruby/gems/2.2.0/gems/octopress-hooks-2.6.1/lib/octopress-hooks.rb:169:in `reset': stack level too deep (SystemStackError)
from /usr/local/lib/ruby/gems/2.2.0/gems/octopress-hooks-2.6.1/lib/octopress-hooks.rb:169:in `reset'
from /usr/local/lib/ruby/gems/2.2.0/gems/octopress-hooks-2.6.1/lib/octopress-hooks.rb:169:in `reset'
from /usr/local/lib/ruby/gems/2.2.0/gems/octopress-hooks-2.6.1/lib/octopress-hooks.rb:169:in `reset'
from /usr/local/lib/ruby/gems/2.2.0/gems/octopress-hooks-2.6.1/lib/octopress-hooks.rb:169:in `reset'
from /usr/local/lib/ruby/gems/2.2.0/gems/octopress-hooks-2.6.1/lib/octopress-hooks.rb:169:in `reset'
from /usr/local/lib/ruby/gems/2.2.0/gems/octopress-hooks-2.6.1/lib/octopress-hooks.rb:169:in `reset'
from /usr/local/lib/ruby/gems/2.2.0/gems/octopress-hooks-2.6.1/lib/octopress-hooks.rb:169:in `reset'
from /usr/local/lib/ruby/gems/2.2.0/gems/octopress-hooks-2.6.1/lib/octopress-hooks.rb:169:in `reset'
... 10066 levels...
from /usr/local/lib/ruby/gems/2.2.0/gems/mercenary-0.3.5/lib/mercenary.rb:19:in `program'
from /usr/local/lib/ruby/gems/2.2.0/gems/jekyll-3.0.0/bin/jekyll:17:in `<top (required)>'
from /usr/local/bin/jekyll:23:in `load'
from /usr/local/bin/jekyll:23:in `<main>'
I have tried with a clean installation using octopress new blog. I am running OSX Yosemite. Here is my Gemfile:
source "https://rubygems.org"
gem 'octopress', '~> 3.0'
group :jekyll_plugins do
gem 'jekyll-sitemap'
gem 'octopress-asset-pipeline'
end
When I remove 'octopress-asset-pipeline' it builds fine. What is going wrong? Thanks
EDIT: I have added 'octopress-hooks' to my Gemfile and I don't get that error anymore, instead I get this:
Configuration file: /Users/robcrocombe/Documents/octopress/test/_config.yml
Source: /Users/robcrocombe/Documents/octopress/test
Destination: /Users/robcrocombe/Documents/octopress/test/_site
Incremental build: disabled. Enable with --incremental
Generating...
Liquid Exception: no implicit conversion of nil into String in _posts/2015-10-28-welcome-to-jekyll.markdown
Liquid Exception: no implicit conversion of nil into String in _posts/2015-10-28-welcome-to-jekyll.markdown
/usr/local/lib/ruby/gems/2.2.0/gems/jekyll-3.0.0/lib/jekyll.rb:157:in `expand_path': no implicit conversion of nil into String (TypeError)
from /usr/local/lib/ruby/gems/2.2.0/gems/jekyll-3.0.0/lib/jekyll.rb:157:in `sanitized_path'
from /usr/local/lib/ruby/gems/2.2.0/gems/jekyll-3.0.0/lib/jekyll/site.rb:374:in `block in in_source_dir'
from /usr/local/lib/ruby/gems/2.2.0/gems/jekyll-3.0.0/lib/jekyll/site.rb:373:in `each'
from /usr/local/lib/ruby/gems/2.2.0/gems/jekyll-3.0.0/lib/jekyll/site.rb:373:in `reduce'
from /usr/local/lib/ruby/gems/2.2.0/gems/jekyll-3.0.0/lib/jekyll/site.rb:373:in `in_source_dir'
from /usr/local/lib/ruby/gems/2.2.0/gems/jekyll-3.0.0/lib/jekyll/liquid_renderer.rb:16:in `file'
from /usr/local/lib/ruby/gems/2.2.0/gems/jekyll-3.0.0/lib/jekyll/renderer.rb:105:in `render_liquid'
from /usr/local/lib/ruby/gems/2.2.0/gems/octopress-hooks-2.6.1/lib/octopress-hooks.rb:311:in `render_liquid'
from /usr/local/lib/ruby/gems/2.2.0/gems/jekyll-3.0.0/lib/jekyll/renderer.rb:60:in `run'
from /usr/local/lib/ruby/gems/2.2.0/gems/octopress-hooks-2.6.1/lib/octopress-hooks.rb:306:in `run'
from /usr/local/lib/ruby/gems/2.2.0/gems/jekyll-3.0.0/lib/jekyll/site.rb:171:in `block (2 levels) in render'
from /usr/local/lib/ruby/gems/2.2.0/gems/jekyll-3.0.0/lib/jekyll/site.rb:169:in `each'
from /usr/local/lib/ruby/gems/2.2.0/gems/jekyll-3.0.0/lib/jekyll/site.rb:169:in `block in render'
from /usr/local/lib/ruby/gems/2.2.0/gems/jekyll-3.0.0/lib/jekyll/site.rb:168:in `each'
from /usr/local/lib/ruby/gems/2.2.0/gems/jekyll-3.0.0/lib/jekyll/site.rb:168:in `render'
from /usr/local/lib/ruby/gems/2.2.0/gems/octopress-hooks-2.6.1/lib/octopress-hooks.rb:197:in `render'
from /usr/local/lib/ruby/gems/2.2.0/gems/jekyll-3.0.0/lib/jekyll/site.rb:59:in `process'
from /usr/local/lib/ruby/gems/2.2.0/gems/jekyll-3.0.0/lib/jekyll/command.rb:28:in `process_site'
from /usr/local/lib/ruby/gems/2.2.0/gems/jekyll-3.0.0/lib/jekyll/commands/build.rb:60:in `build'
from /usr/local/lib/ruby/gems/2.2.0/gems/jekyll-3.0.0/lib/jekyll/commands/build.rb:35:in `process'
from /usr/local/lib/ruby/gems/2.2.0/gems/jekyll-3.0.0/lib/jekyll/commands/serve.rb:26:in `block (2 levels) in init_with_program'
from /usr/local/lib/ruby/gems/2.2.0/gems/mercenary-0.3.5/lib/mercenary/command.rb:220:in `call'
from /usr/local/lib/ruby/gems/2.2.0/gems/mercenary-0.3.5/lib/mercenary/command.rb:220:in `block in execute'
from /usr/local/lib/ruby/gems/2.2.0/gems/mercenary-0.3.5/lib/mercenary/command.rb:220:in `each'
from /usr/local/lib/ruby/gems/2.2.0/gems/mercenary-0.3.5/lib/mercenary/command.rb:220:in `execute'
from /usr/local/lib/ruby/gems/2.2.0/gems/mercenary-0.3.5/lib/mercenary/program.rb:42:in `go'
from /usr/local/lib/ruby/gems/2.2.0/gems/mercenary-0.3.5/lib/mercenary.rb:19:in `program'
from /usr/local/lib/ruby/gems/2.2.0/gems/jekyll-3.0.0/bin/jekyll:17:in `<top (required)>'
from /usr/local/bin/jekyll:23:in `load'
from /usr/local/bin/jekyll:23:in `<main>'
The YAML front-matter of 'welcome to Jekyll' markdown file is:
---
layout: post
title: "Welcome to Jekyll!"
date: 2015-10-28 19:23:27 -0700
categories: jekyll update
---

MongoMapper: undefined method `each' for "StandardFormBuilder":String

I'm using MongoMapper with Padrino, and I'm having trouble with executing any padrino tasks. I get this error for nearly every tasks.
ethan#tardis:/var/www/sakura$ padrino rake -T
=> Executing Rake -T ...
/home/ethan/.rvm/gems/ruby-1.9.2-head/gems/mongo_mapper-0.8.6/lib/mongo_mapper/plugins/modifiers.rb:19:in `set': undefined method `each' for "StandardFormBuilder":String (NoMethodError)
from /home/ethan/.rvm/gems/ruby-1.9.2-head/gems/padrino-helpers-0.9.29/lib/padrino-helpers.rb:33:in `registered'
from /home/ethan/.rvm/gems/ruby-1.9.2-head/gems/sinatra-1.2.6/lib/sinatra/base.rb:1200:in `block in register'
from /home/ethan/.rvm/gems/ruby-1.9.2-head/gems/sinatra-1.2.6/lib/sinatra/base.rb:1198:in `each'
from /home/ethan/.rvm/gems/ruby-1.9.2-head/gems/sinatra-1.2.6/lib/sinatra/base.rb:1198:in `register'
from /var/www/sakura/app/app.rb:3:in `<class:Sakura>'
from /var/www/sakura/app/app.rb:1:in `<top (required)>'
from /home/ethan/.rvm/gems/ruby-1.9.2-head/gems/padrino-core-0.9.29/lib/padrino-core/reloader.rb:128:in `require'
from /home/ethan/.rvm/gems/ruby-1.9.2-head/gems/padrino-core-0.9.29/lib/padrino-core/reloader.rb:128:in `safe_load'
from /home/ethan/.rvm/gems/ruby-1.9.2-head/gems/padrino-core-0.9.29/lib/padrino-core/loader.rb:140:in `block in require_dependencies'
from /home/ethan/.rvm/gems/ruby-1.9.2-head/gems/padrino-core-0.9.29/lib/padrino-core/loader.rb:138:in `each'
from /home/ethan/.rvm/gems/ruby-1.9.2-head/gems/padrino-core-0.9.29/lib/padrino-core/loader.rb:138:in `require_dependencies'
from /home/ethan/.rvm/gems/ruby-1.9.2-head/gems/padrino-core-0.9.29/lib/padrino-core/mounter.rb:125:in `locate_app_object'
from /home/ethan/.rvm/gems/ruby-1.9.2-head/gems/padrino-core-0.9.29/lib/padrino-core/mounter.rb:21:in `initialize'
from /home/ethan/.rvm/gems/ruby-1.9.2-head/gems/padrino-core-0.9.29/lib/padrino-core/mounter.rb:189:in `new'
from /home/ethan/.rvm/gems/ruby-1.9.2-head/gems/padrino-core-0.9.29/lib/padrino-core/mounter.rb:189:in `mount'
from /var/www/sakura/config/apps.rb:34:in `<top (required)>'
from /home/ethan/.rvm/gems/ruby-1.9.2-head/gems/padrino-core-0.9.29/lib/padrino-core/reloader.rb:128:in `require'
from /home/ethan/.rvm/gems/ruby-1.9.2-head/gems/padrino-core-0.9.29/lib/padrino-core/reloader.rb:128:in `safe_load'
from /home/ethan/.rvm/gems/ruby-1.9.2-head/gems/padrino-core-0.9.29/lib/padrino-core/loader.rb:140:in `block in require_dependencies'
from /home/ethan/.rvm/gems/ruby-1.9.2-head/gems/padrino-core-0.9.29/lib/padrino-core/loader.rb:138:in `each'
from /home/ethan/.rvm/gems/ruby-1.9.2-head/gems/padrino-core-0.9.29/lib/padrino-core/loader.rb:138:in `require_dependencies'
from /home/ethan/.rvm/gems/ruby-1.9.2-head/gems/padrino-core-0.9.29/lib/padrino-core/loader.rb:56:in `block in load!'
from /home/ethan/.rvm/gems/ruby-1.9.2-head/gems/padrino-core-0.9.29/lib/padrino-core/loader.rb:56:in `each'
from /home/ethan/.rvm/gems/ruby-1.9.2-head/gems/padrino-core-0.9.29/lib/padrino-core/loader.rb:56:in `load!'
from /var/www/sakura/config/boot.rb:29:in `<top (required)>'
from /home/ethan/.rvm/rubies/ruby-1.9.2-head/lib/ruby/site_ruby/1.9.1/rubygems/custom_require.rb:55:in `require'
from /home/ethan/.rvm/rubies/ruby-1.9.2-head/lib/ruby/site_ruby/1.9.1/rubygems/custom_require.rb:55:in `require'
from /home/ethan/.rvm/gems/ruby-1.9.2-head/gems/padrino-core-0.9.29/lib/padrino-core/cli/base.rb:51:in `block in rake'
from /home/ethan/.rvm/gems/ruby-1.9.2-head/gems/padrino-core-0.9.29/lib/padrino-core/cli/base.rb:130:in `capture'
from /home/ethan/.rvm/gems/ruby-1.9.2-head/gems/padrino-core-0.9.29/lib/padrino-core/cli/base.rb:51:in `rake'
from /home/ethan/.rvm/gems/ruby-1.9.2-head/gems/thor-0.14.6/lib/thor/task.rb:22:in `run'
from /home/ethan/.rvm/gems/ruby-1.9.2-head/gems/thor-0.14.6/lib/thor/invocation.rb:118:in `invoke_task'
from /home/ethan/.rvm/gems/ruby-1.9.2-head/gems/thor-0.14.6/lib/thor.rb:263:in `dispatch'
from /home/ethan/.rvm/gems/ruby-1.9.2-head/gems/thor-0.14.6/lib/thor/base.rb:389:in `start'
from /home/ethan/.rvm/gems/ruby-1.9.2-head/gems/padrino-core-0.9.29/bin/padrino:8:in `<top (required)>'
from /home/ethan/.rvm/gems/ruby-1.9.2-head/bin/padrino:19:in `load'
from /home/ethan/.rvm/gems/ruby-1.9.2-head/bin/padrino:19:in `<main>'
I tried this with multiple Ruby versions, with similar results. Is this an error with Sinatra, MongoMapper, or what?
Seems a problem with ActiveSupport.
In your gemfile add:
gem "mongo_mapper", "~> 0.9.1"

Undefined method 'strip' when deploying Sinatra Application using capistrano

I'm getting a strange error when running cap deploy:setup:
cap deploy:setup
Using ActiveModel validations.
Validations included SimpleRecord::Base
New Aws::SdbInterface using per_thread-connection mode
New Aws::S3Interface using per_thread-connection mode
/Users/myusername/.rvm/gems/ruby-1.9.2-p136#sinatra/gems/capistrano-2.5.21/lib/capistrano/command.rb:24:in `initialize': undefined method `strip' for Sinatra::Application:Class (NoMethodError)
from /Users/myusername/.rvm/gems/ruby-1.9.2-p136#sinatra/gems/capistrano-2.5.21/lib/capistrano/command.rb:109:in `new'
from /Users/myusername/.rvm/gems/ruby-1.9.2-p136#sinatra/gems/capistrano-2.5.21/lib/capistrano/command.rb:109:in `else'
from /Users/myusername/.rvm/gems/ruby-1.9.2-p136#sinatra/gems/capistrano-2.5.21/lib/capistrano/configuration/actions/invocation.rb:144:in `block in run'
from /Users/myusername/.rvm/gems/ruby-1.9.2-p136#sinatra/gems/capistrano-2.5.21/lib/capistrano/command.rb:101:in `initialize'
from /Users/myusername/.rvm/gems/ruby-1.9.2-p136#sinatra/gems/capistrano-2.5.21/lib/capistrano/configuration/actions/invocation.rb:144:in `new'
from /Users/myusername/.rvm/gems/ruby-1.9.2-p136#sinatra/gems/capistrano-2.5.21/lib/capistrano/configuration/actions/invocation.rb:144:in `run'
from Capfile:9:in `load'
from /Users/myusername/.rvm/gems/ruby-1.9.2-p136#sinatra/gems/capistrano-2.5.21/lib/capistrano/configuration/loading.rb:93:in `instance_eval'
from /Users/myusername/.rvm/gems/ruby-1.9.2-p136#sinatra/gems/capistrano-2.5.21/lib/capistrano/configuration/loading.rb:93:in `load'
from /Users/myusername/.rvm/gems/ruby-1.9.2-p136#sinatra/gems/capistrano-2.5.21/lib/capistrano/configuration/loading.rb:172:in `load_from_file'
from /Users/myusername/.rvm/gems/ruby-1.9.2-p136#sinatra/gems/capistrano-2.5.21/lib/capistrano/configuration/loading.rb:89:in `load'
from /Users/myusername/.rvm/gems/ruby-1.9.2-p136#sinatra/gems/capistrano-2.5.21/lib/capistrano/configuration/loading.rb:86:in `block in load'
from /Users/myusername/.rvm/gems/ruby-1.9.2-p136#sinatra/gems/capistrano-2.5.21/lib/capistrano/configuration/loading.rb:86:in `each'
from /Users/myusername/.rvm/gems/ruby-1.9.2-p136#sinatra/gems/capistrano-2.5.21/lib/capistrano/configuration/loading.rb:86:in `load'
from /Users/myusername/.rvm/gems/ruby-1.9.2-p136#sinatra/gems/capistrano-2.5.21/lib/capistrano/cli/execute.rb:65:in `block in load_recipes'
from /Users/myusername/.rvm/gems/ruby-1.9.2-p136#sinatra/gems/capistrano-2.5.21/lib/capistrano/cli/execute.rb:65:in `each'
from /Users/myusername/.rvm/gems/ruby-1.9.2-p136#sinatra/gems/capistrano-2.5.21/lib/capistrano/cli/execute.rb:65:in `load_recipes'
from /Users/myusername/.rvm/gems/ruby-1.9.2-p136#sinatra/gems/capistrano-2.5.21/lib/capistrano/cli/execute.rb:31:in `execute!'
from /Users/myusername/.rvm/gems/ruby-1.9.2-p136#sinatra/gems/capistrano-2.5.21/lib/capistrano/cli/execute.rb:14:in `execute'
from /Users/myusername/.rvm/gems/ruby-1.9.2-p136#sinatra/gems/capistrano-2.5.21/bin/cap:4:in `<top (required)>'
from /Users/myusername/.rvm/gems/ruby-1.9.2-p136#sinatra/bin/cap:19:in `load'
from /Users/myusername/.rvm/gems/ruby-1.9.2-p136#sinatra/bin/cap:19:in `<main>'
Any ideas on how to troubleshoot this?
It turns out the MyApp.rb did not actually define class MyApp. I added this:
class MyApp < Sinatra::Base
that error is now cleared.

Resources