Git Product home page Git Product logo

Comments (8)

goxberry avatar goxberry commented on June 17, 2024

For the 1.9.3 version, I created another test case by stripping out all of the posts in your _posts directory except for the November 23rd post, and deleted the _posts/_source subdirectory. The error message I get on my laptop will be at the end of this comment.

The problem, it seems, has to do with gem dependencies.

For whatever reason, the combination of gems specified in your README.md picks up activesupport-3.1.9 and octokit-1.20.0. Depending on the order in which gems are loaded, dependencies may not be satisfied. On my work desktop, activesupport-3.1.9 picks up multi_json-1.5.0 instead of multi_json-1.2.0, and then jekyll returns an error saying that activesupport-3.1.9's dependencies aren't satisfied. In turn, activesupport-3.1.9 is a dependency of something else in your Ruby gem stack (haven't figured out what yet), so doing a "gem update activesupport" doesn't seem to help on my work desktop. On my personal MacBook Pro, octokit-1.20.0 returns an error, because its dependency is " multi_json (~> 1.3)" (judging from "gem dependency octokit"), and that conflicts with multi_json-1.2.0. Doing a "gem update" to update all gems hasn't resolved the problem on either my laptop or my work desktop, and my laptop is running OS X, so I'm pretty confident this issue is only a Ruby problem, and not an OS problem. (Plus, it's reproducible!)

Error message: (this time, run on my MacBook Pro instead of my work desktop)

Configuration from /Users/goxberry/carl_lab_notebook_lessposts.git/_config.yml
WARNING: Nokogiri was built against LibXML version 2.7.8, but has dynamically loaded 2.7.3
/Users/goxberry/.rvm/rubies/ruby-1.9.3-p362/lib/ruby/site_ruby/1.9.1/rubygems/specification.rb:1637:in raise_if_conflicts': Unable to activate octokit-1.20.0, because multi_json-1.2.0 conflicts with multi_json (~> 1.3) (Gem::LoadError) from /Users/goxberry/.rvm/rubies/ruby-1.9.3-p362/lib/ruby/site_ruby/1.9.1/rubygems/specification.rb:746:inactivate'
from /Users/goxberry/.rvm/rubies/ruby-1.9.3-p362/lib/ruby/site_ruby/1.9.1/rubygems.rb:212:in rescue in try_activate' from /Users/goxberry/.rvm/rubies/ruby-1.9.3-p362/lib/ruby/site_ruby/1.9.1/rubygems.rb:209:intry_activate'
from /Users/goxberry/.rvm/rubies/ruby-1.9.3-p362/lib/ruby/site_ruby/1.9.1/rubygems/custom_require.rb:59:in rescue in require' from /Users/goxberry/.rvm/rubies/ruby-1.9.3-p362/lib/ruby/site_ruby/1.9.1/rubygems/custom_require.rb:35:inrequire'
from /Users/goxberry/carl_lab_notebook_lessposts.git/_plugins/jekyll-labnotebook-plugins/github_feed.rb:2:in <top (required)>' from /Users/goxberry/.rvm/rubies/ruby-1.9.3-p362/lib/ruby/site_ruby/1.9.1/rubygems/custom_require.rb:36:inrequire'
from /Users/goxberry/.rvm/rubies/ruby-1.9.3-p362/lib/ruby/site_ruby/1.9.1/rubygems/custom_require.rb:36:in require' from /Users/goxberry/.rvm/gems/ruby-1.9.3-p362@carl_notebook/gems/jekyll-0.12.0/lib/jekyll/site.rb:78:inblock (2 levels) in setup'
from /Users/goxberry/.rvm/gems/ruby-1.9.3-p362@carl_notebook/gems/jekyll-0.12.0/lib/jekyll/site.rb:77:in each' from /Users/goxberry/.rvm/gems/ruby-1.9.3-p362@carl_notebook/gems/jekyll-0.12.0/lib/jekyll/site.rb:77:inblock in setup'
from /Users/goxberry/.rvm/gems/ruby-1.9.3-p362@carl_notebook/gems/jekyll-0.12.0/lib/jekyll/site.rb:76:in each' from /Users/goxberry/.rvm/gems/ruby-1.9.3-p362@carl_notebook/gems/jekyll-0.12.0/lib/jekyll/site.rb:76:insetup'
from /Users/goxberry/.rvm/gems/ruby-1.9.3-p362@carl_notebook/gems/jekyll-0.12.0/lib/jekyll/site.rb:31:in initialize' from /Users/goxberry/.rvm/gems/ruby-1.9.3-p362@carl_notebook/gems/jekyll-0.12.0/bin/jekyll:238:innew'
from /Users/goxberry/.rvm/gems/ruby-1.9.3-p362@carl_notebook/gems/jekyll-0.12.0/bin/jekyll:238:in <top (required)>' from /Users/goxberry/.rvm/gems/ruby-1.9.3-p362@carl_notebook/bin/jekyll:19:inload'
from /Users/goxberry/.rvm/gems/ruby-1.9.3-p362@carl_notebook/bin/jekyll:19:in <main>' from /Users/goxberry/.rvm/gems/ruby-1.9.3-p362@carl_notebook/bin/ruby_noexec_wrapper:14:ineval'
from /Users/goxberry/.rvm/gems/ruby-1.9.3-p362@carl_notebook/bin/ruby_noexec_wrapper:14:in `

'

from labnotebook.

goxberry avatar goxberry commented on June 17, 2024

Here's the similar-looking error message I got at work:

Configuration from /home/oxberry1/carl_lab_notebook_lessposts.git/_config.yml
/home/oxberry1/.rvm/rubies/ruby-1.9.3-p362/lib/ruby/site_ruby/1.9.1/rubygems/specification.rb:1637:in raise_if_conflicts': Unable to activate activesupport-3.1.9, because multi_json-1.5.0 conflicts with multi_json (< 1.3, >= 1.0) (Gem::LoadError) from /home/oxberry1/.rvm/rubies/ruby-1.9.3-p362/lib/ruby/site_ruby/1.9.1/rubygems/specification.rb:746:inactivate'
from /home/oxberry1/.rvm/rubies/ruby-1.9.3-p362/lib/ruby/site_ruby/1.9.1/rubygems/specification.rb:780:in block in activate_dependencies' from /home/oxberry1/.rvm/rubies/ruby-1.9.3-p362/lib/ruby/site_ruby/1.9.1/rubygems/specification.rb:766:ineach'
from /home/oxberry1/.rvm/rubies/ruby-1.9.3-p362/lib/ruby/site_ruby/1.9.1/rubygems/specification.rb:766:in activate_dependencies' from /home/oxberry1/.rvm/rubies/ruby-1.9.3-p362/lib/ruby/site_ruby/1.9.1/rubygems/specification.rb:750:inactivate'
from /home/oxberry1/.rvm/rubies/ruby-1.9.3-p362/lib/ruby/site_ruby/1.9.1/rubygems.rb:212:in rescue in try_activate' from /home/oxberry1/.rvm/rubies/ruby-1.9.3-p362/lib/ruby/site_ruby/1.9.1/rubygems.rb:209:intry_activate'
from /home/oxberry1/.rvm/rubies/ruby-1.9.3-p362/lib/ruby/site_ruby/1.9.1/rubygems/custom_require.rb:59:in rescue in require' from /home/oxberry1/.rvm/rubies/ruby-1.9.3-p362/lib/ruby/site_ruby/1.9.1/rubygems/custom_require.rb:35:inrequire'
from /home/oxberry1/carl_lab_notebook_lessposts.git/_plugins/jekyll-labnotebook-plugins/mendeley_feed.rb:1:in <top (required)>' from /home/oxberry1/.rvm/rubies/ruby-1.9.3-p362/lib/ruby/site_ruby/1.9.1/rubygems/custom_require.rb:36:inrequire'
from /home/oxberry1/.rvm/rubies/ruby-1.9.3-p362/lib/ruby/site_ruby/1.9.1/rubygems/custom_require.rb:36:in require' from /home/oxberry1/.rvm/gems/ruby-1.9.3-p362@carl_notebook/gems/jekyll-0.12.0/lib/jekyll/site.rb:78:inblock (2 levels) in setup'
from /home/oxberry1/.rvm/gems/ruby-1.9.3-p362@carl_notebook/gems/jekyll-0.12.0/lib/jekyll/site.rb:77:in each' from /home/oxberry1/.rvm/gems/ruby-1.9.3-p362@carl_notebook/gems/jekyll-0.12.0/lib/jekyll/site.rb:77:inblock in setup'
from /home/oxberry1/.rvm/gems/ruby-1.9.3-p362@carl_notebook/gems/jekyll-0.12.0/lib/jekyll/site.rb:76:in each' from /home/oxberry1/.rvm/gems/ruby-1.9.3-p362@carl_notebook/gems/jekyll-0.12.0/lib/jekyll/site.rb:76:insetup'
from /home/oxberry1/.rvm/gems/ruby-1.9.3-p362@carl_notebook/gems/jekyll-0.12.0/lib/jekyll/site.rb:31:in initialize' from /home/oxberry1/.rvm/gems/ruby-1.9.3-p362@carl_notebook/gems/jekyll-0.12.0/bin/jekyll:238:innew'
from /home/oxberry1/.rvm/gems/ruby-1.9.3-p362@carl_notebook/gems/jekyll-0.12.0/bin/jekyll:238:in <top (required)>' from /home/oxberry1/.rvm/gems/ruby-1.9.3-p362@carl_notebook/bin/jekyll:19:inload'
from /home/oxberry1/.rvm/gems/ruby-1.9.3-p362@carl_notebook/bin/jekyll:19:in <main>' from /home/oxberry1/.rvm/gems/ruby-1.9.3-p362@carl_notebook/bin/ruby_noexec_wrapper:14:ineval'
from /home/oxberry1/.rvm/gems/ruby-1.9.3-p362@carl_notebook/bin/ruby_noexec_wrapper:14:in `

'

from labnotebook.

cboettig avatar cboettig commented on June 17, 2024

So it sounds like there's a versioning conflict between octokit and whatever invokes the multi-jason? Not really sure where to start. Guess we could see what David Ketcheson did in his fork

from labnotebook.

cboettig avatar cboettig commented on June 17, 2024

Appears to be an external dependency problem, possibly unique to rvm environment? Haven't been able to duplicate but will revisit when #45 gets addressed. For now, #wontfix

from labnotebook.

ketch avatar ketch commented on June 17, 2024

@goxberry I had the conflicting dependencies issue and solved it as follows:

gem uninstall octokit
gem install octokit --version 1.0.2
gem uninstall activesupport
gem install activesupport --version=3.1.1

Hope that helps.

from labnotebook.

cboettig avatar cboettig commented on June 17, 2024

Thanks! I know basically nothing of ruby, but trying to figure out how to
manage this in a more sensible way, particularly as my playing around with
plugins introduces more gem dependencies. I've added a gemfile which lets
me specify versions and sources for packages, so I should probably. I'll
add version requirements to each gem. I haven't managed to reproduce the
conflicting issues on my machine; for the record though, I'm running

octokit (1.24.0)
activesupport (3.2.13, 3.1.12)

On Mon, Apr 22, 2013 at 11:11 AM, David Ketcheson
[email protected]:

@goxberry https://github.com/goxberry I had the conflicting
dependencies issue and solved it as follows:

gem uninstall octokit
gem install octokit --version 1.0.2
gem uninstall activesupport
gem install activesupport --version=3.1.1

Hope that helps.


Reply to this email directly or view it on GitHubhttps://github.com//issues/46#issuecomment-16809810
.

Carl Boettiger
UC Santa Cruz
http://www.carlboettiger.info/

from labnotebook.

ketch avatar ketch commented on June 17, 2024

Update: labnotebook seems to work now with the latest versions of all packages, if you also upgrade to jekyll 1.0.0rc1 and use this patch for the pandoc plugin, which seems pretty hacky at the moment.

from labnotebook.

cboettig avatar cboettig commented on June 17, 2024

plugins have been updated to work with the latest jekyll, and now versions of gems are properly sandboxed with bundler (provided you launch with bundle exec jekyll) future upgrades of gems shouldn't be able to break anything. Partly in proof of principle of the greater portability of this approach, notebook includes travis integration (#112) and the site is actually built by travis servers and deployed automatically when this repo is updated.

from labnotebook.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.