I'm trying to use sass to do some css updates on a site with a zen theme. I've installed all the latest gem on an ubuntu dev machine. I get the following error with the compass watch command:
NameError on line ["7"] of /var/lib/gems/2.3.0/gems/ramaze-2012.04.14/lib/ramaze/middleware_compiler.rb: uninitialized constant Innate::MiddlewareCompiler
Did you mean? Innate::MIDDLEWARE
I'm not sure how to resolve this, or really what's causing it, and how do I get it to choose the right option. From my research, I have found that this seems to be a common issue withthe RAMAZE gem. They have some upgrading instructions, but none of them make any sense to me as I'm not sure where or how to specify the innate version, or how to make it pick the correct function. http://ramaze.net/documentation/file.upgrading.html.
Here's the trace from the compass watch command:
/var/lib/gems/2.3.0/gems/ramaze-2012.04.14/lib/ramaze/middleware_compiler.rb:1:in `<top (required)>'
/usr/lib/ruby/2.3.0/rubygems/core_ext/kernel_require.rb:55:in `require'
/usr/lib/ruby/2.3.0/rubygems/core_ext/kernel_require.rb:55:in `require'
/var/lib/gems/2.3.0/gems/ramaze-2012.04.14/lib/ramaze.rb:40:in `<module:Ramaze>'
/var/lib/gems/2.3.0/gems/ramaze-2012.04.14/lib/ramaze.rb:12:in `<top (required)>'
/usr/lib/ruby/2.3.0/rubygems/core_ext/kernel_require.rb:55:in `require'
/usr/lib/ruby/2.3.0/rubygems/core_ext/kernel_require.rb:55:in `require'
/var/lib/gems/2.3.0/gems/zen-0.4.3/lib/zen.rb:2:in `<top (required)>'
/usr/lib/ruby/2.3.0/rubygems/core_ext/kernel_require.rb:127:in `require'
/usr/lib/ruby/2.3.0/rubygems/core_ext/kernel_require.rb:127:in `rescue in require'
/usr/lib/ruby/2.3.0/rubygems/core_ext/kernel_require.rb:40:in `require'
/var/lib/gems/2.3.0/gems/compass-core-1.0.3/lib/compass/configuration/data.rb:179:in `require'
/var/www/html/phisigmarho.org/sites/all/themes/psrmodern/config.rb:30:in `get_binding'
/var/lib/gems/2.3.0/gems/compass-1.0.3/lib/compass/configuration/serialization.rb:24:in `eval'
/var/lib/gems/2.3.0/gems/compass-1.0.3/lib/compass/configuration/serialization.rb:24:in `parse_string'
/var/lib/gems/2.3.0/gems/compass-1.0.3/lib/compass/configuration/serialization.rb:15:in `block in _parse'
/var/lib/gems/2.3.0/gems/compass-1.0.3/lib/compass/configuration/serialization.rb:14:in `open'
/var/lib/gems/2.3.0/gems/compass-1.0.3/lib/compass/configuration/serialization.rb:14:in `_parse'
/var/lib/gems/2.3.0/gems/compass-1.0.3/lib/compass/configuration/file_data.rb:7:in `block in new_from_file'
/var/lib/gems/2.3.0/gems/compass-core-1.0.3/lib/compass/configuration/inheritance.rb:207:in `with_defaults'
/var/lib/gems/2.3.0/gems/compass-1.0.3/lib/compass/configuration/file_data.rb:6:in `new_from_file'
/var/lib/gems/2.3.0/gems/compass-1.0.3/lib/compass/configuration/helpers.rb:19:in `configuration_for'
/var/lib/gems/2.3.0/gems/compass-1.0.3/lib/compass/configuration/helpers.rb:69:in `add_project_configuration'
/var/lib/gems/2.3.0/gems/compass-1.0.3/lib/compass/commands/project_base.rb:37:in `add_project_configuration'
/var/lib/gems/2.3.0/gems/compass-1.0.3/lib/compass/commands/project_base.rb:25:in `configure!'
/var/lib/gems/2.3.0/gems/compass-1.0.3/lib/compass/commands/project_base.rb:15:in `initialize'
/var/lib/gems/2.3.0/gems/compass-1.0.3/lib/compass/commands/update_project.rb:41:in `initialize'
/var/lib/gems/2.3.0/gems/compass-1.0.3/lib/compass/exec/sub_command_ui.rb:42:in `new'
/var/lib/gems/2.3.0/gems/compass-1.0.3/lib/compass/exec/sub_command_ui.rb:42:in `perform!'
/var/lib/gems/2.3.0/gems/compass-1.0.3/lib/compass/exec/sub_command_ui.rb:15:in `run!'
/var/lib/gems/2.3.0/gems/compass-1.0.3/bin/compass:30:in `block in <top (required)>'
/var/lib/gems/2.3.0/gems/compass-1.0.3/bin/compass:44:in `<top (required)>'
Here's my gemlist, basically whatever gets sucked in from gem install compass
bcrypt (3.1.11)
bcrypt-ruby (3.1.5, 3.0.1)
bigdecimal (1.2.8)
bundler (1.13.2)
chunky_png (1.3.7)
compass (1.0.3)
compass-core (1.0.3)
compass-import-once (1.0.5)
did_you_mean (1.0.2, 1.0.0)
diff-lcs (1.2.5, 1.1.3)
ffi (1.9.14)
innate (2015.10.28)
io-console (0.4.6, 0.4.5)
json (2.0.2, 1.8.3)
loofah (2.0.3, 1.2.1)
mini_portile2 (2.1.0)
minitest (5.9.1, 5.8.4)
multi_json (1.12.1)
net-telnet (0.1.1)
nokogiri (1.6.8.1)
power_assert (0.3.1, 0.2.7)
psych (2.1.1, 2.0.17)
rack (2.0.1, 1.6.4)
rake (11.3.0, 10.5.0, 0.9.2.2)
ramaze (2012.12.08, 2012.04.14)
ramaze-asset (0.2.3)
rb-fsevent (0.9.7)
rb-inotify (0.9.7)
rdoc (4.2.2, 4.2.1)
sass (3.4.22)
sass-globbing (1.1.5)
sequel (4.39.0, 3.35.0)
shebang (0.1)
test-unit (3.2.1, 3.1.7)
zen (0.4.3)
zen-grids (2.0.3)
I'm beginning to suspect that maybe rolling back to an earlier version of compass, but I don't that that will resolve whatever dependency conflict this is triggering.
Related
I just installed Jekyll on Windows and I'm trying to make the syntax highlight work with rouge.
I have set highlighter: rouge on _config.yml.
In the file _posts\2015-08-13-my-first-post.md I got:
{% highlight javascript linenos %}
var s = "JavaScript syntax highlighting";
alert(s);
{% endhighlight %}
When I run bundle exec jekyll serve it outputs:
C:\Users\Fred\Documents\Projects\GithubPage>bundle exec jekyll serve
Configuration file: C:/Users/Fred/Documents/Projects/GithubPage/_config.yml
Source: C:/Users/Fred/Documents/Projects/GithubPage
Destination: C:/Users/Fred/Documents/Projects/GithubPage/_site
Generating...
Liquid Exception: cannot load such file -- rouge in _posts/2015-08-13-my-first-post.md
C:/Ruby21-x64/lib/ruby/gems/2.1.0/gems/jekyll-2.5.3/lib/jekyll/tags/highlight.rb:103:in `require': cannot load such file -- rouge (LoadError)
from C:/Ruby21-x64/lib/ruby/gems/2.1.0/gems/jekyll-2.5.3/lib/jekyll/tags/highlight.rb:103:in `render_rouge'
from C:/Ruby21-x64/lib/ruby/gems/2.1.0/gems/jekyll-2.5.3/lib/jekyll/tags/highlight.rb:54:in `render'
from C:/Ruby21-x64/lib/ruby/gems/2.1.0/gems/liquid-2.6.3/lib/liquid/block.rb:109:in `block in render_all'
from C:/Ruby21-x64/lib/ruby/gems/2.1.0/gems/liquid-2.6.3/lib/liquid/block.rb:96:in `each'
from C:/Ruby21-x64/lib/ruby/gems/2.1.0/gems/liquid-2.6.3/lib/liquid/block.rb:96:in `render_all'
from C:/Ruby21-x64/lib/ruby/gems/2.1.0/gems/liquid-2.6.3/lib/liquid/block.rb:82:in `render'
from C:/Ruby21-x64/lib/ruby/gems/2.1.0/gems/liquid-2.6.3/lib/liquid/template.rb:128:in `render'
from C:/Ruby21-x64/lib/ruby/gems/2.1.0/gems/liquid-2.6.3/lib/liquid/template.rb:138:in `render!'
from C:/Ruby21-x64/lib/ruby/gems/2.1.0/gems/jekyll-2.5.3/lib/jekyll/convertible.rb:106:in `render_liquid'
from C:/Ruby21-x64/lib/ruby/gems/2.1.0/gems/jekyll-2.5.3/lib/jekyll/convertible.rb:233:in `do_layout'
from C:/Ruby21-x64/lib/ruby/gems/2.1.0/gems/jekyll-2.5.3/lib/jekyll/post.rb:261:in `render'
from C:/Ruby21-x64/lib/ruby/gems/2.1.0/gems/jekyll-2.5.3/lib/jekyll/site.rb:298:in `block in render'
from C:/Ruby21-x64/lib/ruby/gems/2.1.0/gems/jekyll-2.5.3/lib/jekyll/site.rb:297:in `each'
from C:/Ruby21-x64/lib/ruby/gems/2.1.0/gems/jekyll-2.5.3/lib/jekyll/site.rb:297:in `render'
from C:/Ruby21-x64/lib/ruby/gems/2.1.0/gems/jekyll-2.5.3/lib/jekyll/site.rb:51:in `process'
from C:/Ruby21-x64/lib/ruby/gems/2.1.0/gems/jekyll-2.5.3/lib/jekyll/command.rb:28:in `process_site'
from C:/Ruby21-x64/lib/ruby/gems/2.1.0/gems/jekyll-2.5.3/lib/jekyll/commands/build.rb:56:in `build'
from C:/Ruby21-x64/lib/ruby/gems/2.1.0/gems/jekyll-2.5.3/lib/jekyll/commands/build.rb:34:in `process'
from C:/Ruby21-x64/lib/ruby/gems/2.1.0/gems/jekyll-2.5.3/lib/jekyll/commands/serve.rb:26:in `block (2 levels) in init_with_program'
from C:/Ruby21-x64/lib/ruby/gems/2.1.0/gems/mercenary-0.3.5/lib/mercenary/command.rb:220:in `call'
from C:/Ruby21-x64/lib/ruby/gems/2.1.0/gems/mercenary-0.3.5/lib/mercenary/command.rb:220:in `block in execute'
from C:/Ruby21-x64/lib/ruby/gems/2.1.0/gems/mercenary-0.3.5/lib/mercenary/command.rb:220:in `each'
from C:/Ruby21-x64/lib/ruby/gems/2.1.0/gems/mercenary-0.3.5/lib/mercenary/command.rb:220:in `execute'
from C:/Ruby21-x64/lib/ruby/gems/2.1.0/gems/mercenary-0.3.5/lib/mercenary/program.rb:42:in `go'
from C:/Ruby21-x64/lib/ruby/gems/2.1.0/gems/mercenary-0.3.5/lib/mercenary.rb:19:in `program'
from C:/Ruby21-x64/lib/ruby/gems/2.1.0/gems/jekyll-2.5.3/bin/jekyll:20:in `<top (required)>'
from C:/Ruby21-x64/bin/jekyll:23:in `load'
from C:/Ruby21-x64/bin/jekyll:23:in `<main>'
The gems that I have installed are:
C:\Users\Fred\Documents\Projects\GithubPage>gem list --local
*** LOCAL GEMS ***
bigdecimal (1.2.4)
blankslate (2.1.2.4)
bundler (1.10.6)
celluloid (0.16.1)
classifier-reborn (2.0.3)
coffee-script (2.4.1)
coffee-script-source (1.9.1.1)
colorator (0.1)
execjs (2.5.2)
fast-stemmer (1.0.2)
ffi (1.9.10 x64-mingw32)
hitimes (1.2.2)
io-console (0.4.3)
jekyll (2.5.3)
jekyll-coffeescript (1.0.1)
jekyll-gist (1.3.0)
jekyll-paginate (1.1.0)
jekyll-sass-converter (1.3.0)
jekyll-watch (1.2.1)
json (1.8.1)
kramdown (1.8.0)
liquid (2.6.3)
listen (2.10.1)
mercenary (0.3.5)
minitest (4.7.5)
parslet (1.5.0)
posix-spawn (0.3.11)
psych (2.0.5)
pygments.rb (0.6.3)
rake (10.1.0)
rb-fsevent (0.9.5)
rb-inotify (0.9.5)
rdoc (4.1.0)
redcarpet (3.3.2)
rouge (1.9.1)
safe_yaml (1.0.4)
sass (3.4.16)
test-unit (2.1.6.0)
timers (4.0.1)
toml (0.1.2)
yajl-ruby (1.2.1)
I had the same problem. I added the line
gem 'rouge'
to my Gemfile, then ran
bundle install
Then I could run
bundle exec jekyll build
without the error.
Github Pages work only with these plugins for security reasons.
Have you installed rouge in your Jekyll directory?
Here is a guide for syntax highlighting in Jekyll and installing Jekyll on a Windows machine that might help you.
How to fix it?
Bundler could not find compatible versions for gem "tilt":
In Gemfile:
sprockets (>= 2.2.1) ruby depends on
tilt (!= 1.3.0, ~> 1.1) ruby
tilt (2.0.0)
(Bundler::VersionConflict)
/usr/local/lib/ruby/gems/1.9/gems/bundler-1.3.5/lib/bundler/resolver.rb:130:in `block in resolve'
/usr/local/lib/ruby/gems/1.9/gems/bundler-1.3.5/lib/bundler/resolver.rb:128:in `catch'
/usr/local/lib/ruby/gems/1.9/gems/bundler-1.3.5/lib/bundler/resolver.rb:128:in `resolve'
/usr/local/lib/ruby/gems/1.9/gems/bundler-1.3.5/lib/bundler/definition.rb:179:in `resolve'
/usr/local/lib/ruby/gems/1.9/gems/bundler-1.3.5/lib/bundler/definition.rb:114:in `specs'
/usr/local/lib/ruby/gems/1.9/gems/bundler-1.3.5/lib/bundler/definition.rb:159:in `specs_for'
/usr/local/lib/ruby/gems/1.9/gems/bundler-1.3.5/lib/bundler/definition.rb:148:in `requested_specs'
/usr/local/lib/ruby/gems/1.9/gems/bundler-1.3.5/lib/bundler/environment.rb:18:in `requested_specs'
/usr/local/lib/ruby/gems/1.9/gems/bundler-1.3.5/lib/bundler/runtime.rb:13:in `setup'
/usr/local/lib/ruby/gems/1.9/gems/bundler-1.3.5/lib/bundler.rb:120:in `setup'
/usr/local/lib/ruby/gems/1.9/gems/bundler-1.3.5/lib/bundler/setup.rb:17:in `<top (required)>'
/usr/local/lib/ruby/site_ruby/1.9/rubygems/custom_require.rb:60:in `require'
/usr/local/lib/ruby/site_ruby/1.9/rubygems/custom_require.rb:60:in `rescue in require'
/usr/local/lib/ruby/site_ruby/1.9/rubygems/custom_require.rb:35:in `require'
/usr/local/lib/ruby/gems/1.9/gems/passenger-4.0.29/lib/phusion_passenger/loader_shared_helpers.rb:219:in `block in run_load_path_setup_code'
/usr/local/lib/ruby/gems/1.9/gems/passenger-4.0.29/lib/phusion_passenger/loader_shared_helpers.rb:333:in `running_bundler'
/usr/local/lib/ruby/gems/1.9/gems/passenger-4.0.29/lib/phusion_passenger/loader_shared_helpers.rb:217:in `run_load_path_setup_code'
/usr/local/lib/ruby/gems/1.9/gems/passenger-4.0.29/helper-scripts/rack-preloader.rb:96:in `preload_app'
/usr/local/lib/ruby/gems/1.9/gems/passenger-4.0.29/helper-scripts/rack-preloader.rb:153:in `<module:App>'
/usr/local/lib/ruby/gems/1.9/gems/passenger-4.0.29/helper-scripts/rack-preloader.rb:29:in `<module:PhusionPassenger>'
/usr/local/lib/ruby/gems/1.9/gems/passenger-4.0.29/helper-scripts/rack-preloader.rb:28:in `<main>'
I suppose you have in Gemfile
gem 'sprockets', '>= 2.2.1'
gem 'tilt', '2.0.0'
is tilt version 2.0.0 critical important? If it possible to downgrade it you can do following.
change in Gemfile
gem 'tilt', '1.4.1' # the previous version http://rubygems.org/gems/tilt
run
bundle update tilt
After this you can remove tilt version from Gemfile
I made a clean install of my computer and so reinstall Ruby and Jekyll.
And seems like a big update happened and my old project won't load anymore. Here is what I have when I do a jekyll server
[Arnaud#TARDIS ~/Sites/arnaud scroll]$ jekyll server
Configuration file: /Users/Arnaud/Sites/arnaud/_config.yml
/Users/Arnaud/.rvm/rubies/ruby-2.0.0-p195/lib/ruby/site_ruby/2.0.0/rubygems/core_ext/kernel_require.rb:45:in `require': cannot load such file -- nokogiri (LoadError)
from /Users/Arnaud/.rvm/rubies/ruby-2.0.0-p195/lib/ruby/site_ruby/2.0.0/rubygems/core_ext/kernel_require.rb:45:in `require'
from /Users/Arnaud/Sites/arnaud/_plugins/firstPar.rb:1:in `<top (required)>'
from /Users/Arnaud/.rvm/rubies/ruby-2.0.0-p195/lib/ruby/site_ruby/2.0.0/rubygems/core_ext/kernel_require.rb:45:in `require'
from /Users/Arnaud/.rvm/rubies/ruby-2.0.0-p195/lib/ruby/site_ruby/2.0.0/rubygems/core_ext/kernel_require.rb:45:in `require'
from /Users/Arnaud/.rvm/gems/ruby-2.0.0-p195#arnaud/gems/jekyll-1.0.2/lib/jekyll/site.rb:87:in `block (2 levels) in setup'
from /Users/Arnaud/.rvm/gems/ruby-2.0.0-p195#arnaud/gems/jekyll-1.0.2/lib/jekyll/site.rb:86:in `each'
from /Users/Arnaud/.rvm/gems/ruby-2.0.0-p195#arnaud/gems/jekyll-1.0.2/lib/jekyll/site.rb:86:in `block in setup'
from /Users/Arnaud/.rvm/gems/ruby-2.0.0-p195#arnaud/gems/jekyll-1.0.2/lib/jekyll/site.rb:85:in `each'
from /Users/Arnaud/.rvm/gems/ruby-2.0.0-p195#arnaud/gems/jekyll-1.0.2/lib/jekyll/site.rb:85:in `setup'
from /Users/Arnaud/.rvm/gems/ruby-2.0.0-p195#arnaud/gems/jekyll-1.0.2/lib/jekyll/site.rb:34:in `initialize'
from /Users/Arnaud/.rvm/gems/ruby-2.0.0-p195#arnaud/gems/jekyll-1.0.2/lib/jekyll/commands/build.rb:5:in `new'
from /Users/Arnaud/.rvm/gems/ruby-2.0.0-p195#arnaud/gems/jekyll-1.0.2/lib/jekyll/commands/build.rb:5:in `process'
from /Users/Arnaud/.rvm/gems/ruby-2.0.0-p195#arnaud/gems/jekyll-1.0.2/bin/jekyll:83:in `block (2 levels) in <top (required)>'
from /Users/Arnaud/.rvm/gems/ruby-2.0.0-p195#arnaud/gems/commander-4.1.3/lib/commander/command.rb:180:in `call'
from /Users/Arnaud/.rvm/gems/ruby-2.0.0-p195#arnaud/gems/commander-4.1.3/lib/commander/command.rb:180:in `call'
from /Users/Arnaud/.rvm/gems/ruby-2.0.0-p195#arnaud/gems/commander-4.1.3/lib/commander/command.rb:155:in `run'
from /Users/Arnaud/.rvm/gems/ruby-2.0.0-p195#arnaud/gems/commander-4.1.3/lib/commander/runner.rb:400:in `run_active_command'
from /Users/Arnaud/.rvm/gems/ruby-2.0.0-p195#arnaud/gems/commander-4.1.3/lib/commander/runner.rb:66:in `run!'
from /Users/Arnaud/.rvm/gems/ruby-2.0.0-p195#arnaud/gems/commander-4.1.3/lib/commander/delegates.rb:7:in `run!'
from /Users/Arnaud/.rvm/gems/ruby-2.0.0-p195#arnaud/gems/commander-4.1.3/lib/commander/import.rb:10:in `block in <top (required)>'
Any idea ?
EDIT :
Here is the list of gems :
[Arnaud#TARDIS ~/Sites/arnaud scroll]$ gem list --all
*** LOCAL GEMS ***
bigdecimal (1.2.0)
bundler (1.3.5)
bundler-unload (1.0.1)
classifier (1.3.3)
colorator (0.1)
commander (4.1.3)
directory_watcher (1.4.1)
fast-stemmer (1.0.2)
highline (1.6.19)
io-console (0.4.2)
jekyll (1.0.2)
json (1.7.7)
kramdown (1.0.2)
liquid (2.5.0)
maruku (0.6.1)
minitest (4.3.2)
posix-spawn (0.3.6)
psych (2.0.0)
pygments.rb (0.5.0)
rake (10.0.4, 0.9.6)
rdoc (4.0.0)
rubygems-bundler (1.2.0)
rvm (1.11.3.8)
safe_yaml (0.7.1)
syntax (1.0.0)
test-unit (2.0.0.0)
yajl-ruby (1.1.0)
Try uninstall nokogiri (if installed) and redo everything. Ensure that sudo is not used during the installation (as your Jekyll was installed without sudo by gem install jekyll).
gem install nokogiri
Apparently there's something wrong with your setup. For example, the following error
/Users/Arnaud/.rvm/rubies/ruby-2.0.0-p195/lib/ruby/site_ruby/2.0.0/rubygems/dependency.rb:296:in `to_specs': Could not find 'jekyll' (>= 0) among 8 total gem(s) (Gem::LoadError)
shouldn't be happening in case the Jekyll gem was installed (or could at least be reached) correctly. (most of the Jekyll problems are related to lack of correct YAML front matter, to be honest)
If you pay attention to sudo gem list --all, you'll notice that jekyll isn't installed when you use sudo. Did you try:
gem install jekyll
jekyll serve
This should work, or at least give you a "better" error.
Ah, a good solution to avoid these errors (or at least control them easily) is to use RVM gemsets to separate your gems. It's very useful for debugging.
Trying to get chef-server to start I get the following error:
[root#SCM: /etc/chef]$ /etc/init.d/chef-server-webui start
* Starting chef-server-webui
/usr/lib/ruby/1.8/rubygems/remote_fetcher.rb:14: uninitialized constant Gem::UserInteraction (NameError)
from /usr/local/lib/site_ruby/1.8/rubygems/custom_require.rb:36:in `gem_original_require'
from /usr/local/lib/site_ruby/1.8/rubygems/custom_require.rb:36:in `require'
from /usr/lib/ruby/1.8/rubygems/spec_fetcher.rb:4
from /usr/local/lib/site_ruby/1.8/rubygems/custom_require.rb:36:in `gem_original_require'
from /usr/local/lib/site_ruby/1.8/rubygems/custom_require.rb:36:in `require'
from /usr/lib/ruby/1.8/chef/provider/package/rubygems.rb:31
from /usr/local/lib/site_ruby/1.8/rubygems/custom_require.rb:36:in `gem_original_require'
from /usr/local/lib/site_ruby/1.8/rubygems/custom_require.rb:36:in `require'
from /usr/lib/ruby/1.8/chef/providers.rb:59
from /usr/local/lib/site_ruby/1.8/rubygems/custom_require.rb:36:in `gem_original_require'
from /usr/local/lib/site_ruby/1.8/rubygems/custom_require.rb:36:in `require'
from /usr/lib/ruby/1.8/chef.rb:25
from /usr/local/lib/site_ruby/1.8/rubygems/custom_require.rb:36:in `gem_original_require'
from /usr/local/lib/site_ruby/1.8/rubygems/custom_require.rb:36:in `require'
from /usr/sbin/chef-server-webui:42
And here is my gem list
*** LOCAL GEMS ***
bundler (1.0.18)
bunny (0.7.6)
chef (0.10.4)
chef-server-webui (0.10.4)
coderay (1.0.0)
daemons (1.1.4)
erubis (2.7.0)
eventmachine (0.12.10)
extlib (0.9.15)
haml (3.1.3)
highline (1.6.2)
json (1.5.2, 1.4.6)
merb-assets (1.1.3)
merb-core (1.1.3)
merb-haml (1.1.3)
merb-helpers (1.1.3)
merb-param-protection (1.1.3)
mime-types (1.16)
mixlib-authentication (1.1.4)
mixlib-cli (1.2.2)
mixlib-config (1.1.2)
mixlib-log (1.3.0)
moneta (0.6.0)
net-ssh (2.1.4)
net-ssh-gateway (1.1.0)
net-ssh-multi (1.1)
ohai (0.6.4)
polyglot (0.3.2)
rack (1.3.3)
rake (0.9.2)
rest-client (1.6.7)
ruby-openid (2.1.8)
systemu (2.4.0)
thin (1.2.11)
treetop (1.4.10)
uuidtools (2.1.2)
yajl-ruby (1.0.0)
Here is a Chef bugtracker issue for exactly this problem. Short summary: Chef seems to pick up different versions of RubyGems from different places after it was upgraded.
Rewinding the upgrade to RubyGems seems to help.
I have been trying to use heroku with my rails app. I've gem install heroku and listed it in my gemfile, but everytime I try to do anything with it I keep getting this error...
/Users/alex/.rvm/gems/ruby-1.9.2-p180/gems/mime-types-1.17.1/lib/mime/types.rb:755:in `split': invalid byte sequence in US-ASCII (ArgumentError)
from /Users/alex/.rvm/gems/ruby-1.9.2-p180/gems/mime-types-1.17.1/lib/mime/types.rb:755:in `load_from_file'
from /Users/alex/.rvm/gems/ruby-1.9.2-p180/gems/mime-types-1.17.1/lib/mime/types.rb:838:in `block in <class:Types>'
from /Users/alex/.rvm/gems/ruby-1.9.2-p180/gems/mime-types-1.17.1/lib/mime/types.rb:838:in `each'
from /Users/alex/.rvm/gems/ruby-1.9.2-p180/gems/mime-types-1.17.1/lib/mime/types.rb:838:in `<class:Types>'
from /Users/alex/.rvm/gems/ruby-1.9.2-p180/gems/mime-types-1.17.1/lib/mime/types.rb:578:in `<module:MIME>'
from /Users/alex/.rvm/gems/ruby-1.9.2-p180/gems/mime-types-1.17.1/lib/mime/types.rb:4:in `<top (required)>'
from /Users/alex/.rvm/rubies/ruby-1.9.2-p180/lib/ruby/site_ruby/1.9.1/rubygems/custom_require.rb:54:in `require'
from /Users/alex/.rvm/rubies/ruby-1.9.2-p180/lib/ruby/site_ruby/1.9.1/rubygems/custom_require.rb:54:in `require'
from /Users/alex/.rvm/gems/ruby-1.9.2-p180/gems/rest-client-1.6.7/lib/restclient/request.rb:2:in `<top (required)>'
from /Users/alex/.rvm/rubies/ruby-1.9.2-p180/lib/ruby/site_ruby/1.9.1/rubygems/custom_require.rb:54:in `require'
from /Users/alex/.rvm/rubies/ruby-1.9.2-p180/lib/ruby/site_ruby/1.9.1/rubygems/custom_require.rb:54:in `require'
from /Users/alex/.rvm/gems/ruby-1.9.2-p180/gems/rest-client-1.6.7/lib/restclient.rb:13:in `<top (required)>'
from /Users/alex/.rvm/rubies/ruby-1.9.2-p180/lib/ruby/site_ruby/1.9.1/rubygems/custom_require.rb:54:in `require'
from /Users/alex/.rvm/rubies/ruby-1.9.2-p180/lib/ruby/site_ruby/1.9.1/rubygems/custom_require.rb:54:in `require'
from /Users/alex/.rvm/gems/ruby-1.9.2-p180/gems/rest-client-1.6.7/lib/rest_client.rb:2:in `<top (required)>'
from /Users/alex/.rvm/rubies/ruby-1.9.2-p180/lib/ruby/site_ruby/1.9.1/rubygems/custom_require.rb:54:in `require'
from /Users/alex/.rvm/rubies/ruby-1.9.2-p180/lib/ruby/site_ruby/1.9.1/rubygems/custom_require.rb:54:in `require'
from /Users/alex/.rvm/gems/ruby-1.9.2-p180/gems/heroku-2.11.0/lib/heroku/client.rb:2:in `<top (required)>'
from /Users/alex/.rvm/rubies/ruby-1.9.2-p180/lib/ruby/site_ruby/1.9.1/rubygems/custom_require.rb:54:in `require'
from /Users/alex/.rvm/rubies/ruby-1.9.2-p180/lib/ruby/site_ruby/1.9.1/rubygems/custom_require.rb:54:in `require'
from /Users/alex/.rvm/gems/ruby-1.9.2-p180/gems/heroku-2.11.0/lib/heroku.rb:6:in `<top (required)>'
from /Users/alex/.rvm/rubies/ruby-1.9.2-p180/lib/ruby/site_ruby/1.9.1/rubygems/custom_require.rb:54:in `require'
from /Users/alex/.rvm/rubies/ruby-1.9.2-p180/lib/ruby/site_ruby/1.9.1/rubygems/custom_require.rb:54:in `require'
from /Users/alex/.rvm/gems/ruby-1.9.2-p180/gems/heroku-2.11.0/bin/heroku:6:in `<top (required)>'
from /Users/alex/.rvm/gems/ruby-1.9.2-p180/bin/heroku:19:in `load'
from /Users/alex/.rvm/gems/ruby-1.9.2-p180/bin/heroku:19:in `<main>'
I'm new to rails so would appreciate help if anybody knows whats gone wrong. I've googled it but can't seem to find the same problem.
These are the list of gems I currently have installed incase that may be the cause:
*** LOCAL GEMS ***
actionmailer (3.1.1, 3.1.0)
actionpack (3.1.1, 3.1.0)
activemodel (3.1.1, 3.1.0)
activerecord (3.1.1, 3.1.0)
activeresource (3.1.1, 3.1.0)
activesupport (3.1.1, 3.1.0)
addressable (2.2.6)
ansi (1.3.0)
arel (2.2.1)
bcrypt-ruby (3.0.1, 3.0.0)
builder (3.0.0)
bundler (1.0.21, 1.0.18)
coffee-rails (3.1.1, 3.1.0)
coffee-script (2.2.0)
coffee-script-source (1.1.2)
daemons (1.1.4)
devise (1.4.9, 1.4.8)
erubis (2.7.0)
eventmachine (0.12.10)
execjs (1.2.9, 1.2.4)
heroku (2.11.0)
hike (1.2.1)
i18n (0.6.0)
jquery-rails (1.0.16, 1.0.14, 1.0.13)
json (1.6.1)
launchy (2.0.5)
mail (2.3.0)
mime-types (1.17.1, 1.16)
multi_json (1.0.3)
orm_adapter (0.0.5)
pg (0.11.0)
polyglot (0.3.2)
rack (1.3.5, 1.3.3, 1.3.2)
rack-cache (1.1, 1.0.3)
rack-mount (0.8.3)
rack-ssl (1.3.2)
rack-test (0.6.1)
rails (3.1.0)
railties (3.1.1, 3.1.0)
rake (0.9.2.2, 0.9.2)
rdoc (3.11, 3.9.4)
rest-client (1.6.7)
rubyzip (0.9.4)
sass (3.1.10, 3.1.7)
sass-rails (3.1.4, 3.1.2, 3.1.0)
sprockets (2.0.3, 2.0.0)
sqlite3 (1.3.4)
term-ansicolor (1.0.7)
thin (1.2.11)
thor (0.14.6)
tilt (1.3.3)
treetop (1.4.10)
turn (0.8.3, 0.8.2)
tzinfo (0.3.30, 0.3.29)
uglifier (1.0.4, 1.0.3, 1.0.2)
warden (1.0.6)
All the other gems work fine though. It's just the Heroku one that throws up an error.
Thanks.
I think I had done a gem update + bundle update and that was what was messing it up.
I've uninstalled mime-types 1.17.1 and all seems to be working ok now. I had to uninstall it though. Even when I set the app to use version 1.16 it still came up with the same errors when I tried to do anything with Heroku.
You don't need to include Heroku into your gemfile.
This issue is fixed with mime-types 1.17.2, just released. I could not reproduce the issue on Mac OS X, but the problem was fairly easy to fix.