Git Product home page Git Product logo

Comments (8)

jondot avatar jondot commented on August 20, 2024

Hey, thanks for trying out Graphene :)
Looks like you have a gem dependency problem. it should be easily solved with just doing a

$ bundle exec serve .

which would isolate the gems and use only those you need.
This kind of troubleshooting should help you with other projects as well - if you get the same kind of log or weirdness.

from graphene.

TinajaLabs avatar TinajaLabs commented on August 20, 2024

I must have really screwed up the ruby install on this rhel instance.

First I ran this as you suggested:

/opt/graphene/example # bundle exec serve .
Could not find coderay-1.0.9 in any of the sources
Run `bundle install` to install missing gems.

So I ran this (currently only user is root):

/opt/graphene/example # bundle install
Don't run Bundler as root. Bundler can ask for sudo if it is needed, and installing your bundle as root will break this application for all non-root
users on this machine.
Fetching gem metadata from https://rubygems.org/..........
Fetching https://github.com/jondot/guard-sprockets.git
Installing coderay 1.0.9
Installing coffee-script-source 1.2.0
Installing multi_json 1.0.4
Installing execjs 1.3.0
Installing coffee-script 2.2.0
Installing ffi 1.9.0
Installing formatador 0.2.4
Installing rb-fsevent 0.9.3
Installing rb-inotify 0.9.2
Installing rb-kqueue 0.2.0
Installing listen 1.2.2
Installing lumberjack 1.0.4
Installing method_source 0.8.2
Installing slop 3.4.6
Installing pry 0.9.12.2
Installing thor 0.18.1
Installing guard 1.8.2
Installing hike 1.2.3
Using rack 1.5.2
Installing tilt 1.4.1
Installing sprockets 2.10.0
Using guard-sprockets 0.2.0 from https://github.com/jondot/guard-sprockets.git (at master)
Installing sass 3.1.15
Installing uglifier 1.2.3
Using bundler 1.7.3
Your bundle is complete!
Use `bundle show [gemname]` to see where a bundled gem is installed.

I don't see serve in the list...?

Now when I run the command you suggested, it chokes.

/opt/graphene/example # bundle exec serve .
/usr/local/rvm/gems/ruby-2.0.0-p0@global/gems/bundler-1.7.3/lib/bundler/rubygems_integration.rb:256:in `block in replace_gem': serve is not part of the bundle. Add it to Gemfile. (Gem::LoadError)
    from /usr/local/rvm/gems/ruby-2.0.0-p0/bin/serve:22:in `<main>'
    from /usr/local/rvm/gems/ruby-2.0.0-p0/bin/ruby_executable_hooks:15:in `eval'
    from /usr/local/rvm/gems/ruby-2.0.0-p0/bin/ruby_executable_hooks:15:in `<main>'

from graphene.

jondot avatar jondot commented on August 20, 2024

Interesting. do you have the serve gem installed?

from graphene.

TinajaLabs avatar TinajaLabs commented on August 20, 2024

yes.

/opt/graphene # gem install serve
Successfully installed serve-1.5.2
Parsing documentation for serve-1.5.2
unable to convert "\x89" from ASCII-8BIT to UTF-8 for lib/serve/templates/default/public/images/serve-logo.png, skipping
1 gem installed

from graphene.

TinajaLabs avatar TinajaLabs commented on August 20, 2024

Maybe this helps:

/opt/graphene # rvm list rubies

rvm rubies

=* ruby-2.0.0-p0 [ x86_64 ]
   ruby-2.0.0-p481 [ x86_64 ]
   ruby-2.1.0 [ x86_64 ]
   ruby-2.1.2 [ x86_64 ]
/opt/graphene # rvm gemset list_all

gemsets for ruby-2.1.2 (found in /usr/local/rvm/gems/ruby-2.1.2)
=> (default)
   global


gemsets for ruby-2.1.0 (found in /usr/local/rvm/gems/ruby-2.1.0)
=> (default)
   global


gemsets for ruby-2.0.0-p481 (found in /usr/local/rvm/gems/ruby-2.0.0-p481)
=> (default)
   global


gemsets for ruby-2.0.0-p0 (found in /usr/local/rvm/gems/ruby-2.0.0-p0)
=> (default)
   global

from graphene.

voodoo avatar voodoo commented on August 20, 2024

Turns out, the problem was with the i18n gem. This fixed it for me.

gem uninstall i18n
gem install i18n -v 0.6.11

from graphene.

TinajaLabs avatar TinajaLabs commented on August 20, 2024

Worked for me, too. Thanks.

Now onto the fun stuff; hooking our graphite data into graphene.

/opt/graphene/example # gem uninstall i18n

You have requested to uninstall the gem:
    i18n-0.7.0.beta1

activesupport-3.2.19 depends on i18n (>= 0.6.4, ~> 0.6)
serve-1.5.2 depends on i18n (>= 0)
If you remove this gem, these dependencies will not be met.
Continue with Uninstall? [yN]  y
Successfully uninstalled i18n-0.7.0.beta1
opt/graphene/example # gem install i18n -v 0.6.11
Fetching: i18n-0.6.11.gem (100%)
Successfully installed i18n-0.6.11
Parsing documentation for i18n-0.6.11
Installing ri documentation for i18n-0.6.11
1 gem installed

from graphene.

elboletaire avatar elboletaire commented on August 20, 2024

As this is a javascript project, why not try with the npmjs package serve?

npm install -g serve
serve -s example

Note that I've not tried this on my behalf, but it's something that shocked me from the readme.... an npm package telling me to install a ruby gem 😕

from graphene.

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.