Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Readme could do with a bit more info #1

Open
remy opened this issue Oct 28, 2013 · 12 comments
Open

Readme could do with a bit more info #1

remy opened this issue Oct 28, 2013 · 12 comments

Comments

@remy
Copy link

remy commented Oct 28, 2013

Obviously there's a hidden prerequisite that you should know Ruby, but alas I do not. But very interested in the project for my own purposes (I run a few events and I'd like to get a general feel for the gender divide).

So, I clone this project, and as per the readme, run "ruby app.rb" and I get

» ruby app.rb
app.rb:3:in `require': no such file to load -- sinatra (LoadError)
    from app.rb:3

Any chance of adding the missing steps before (I tried doing sudo gem install bundler; bundler install but that failed too - I can add the error, but I might be barking up the wrong ruby covered tree).

Cheers.

@gabelula
Copy link
Member

Sorry about that. This was made during a session in mozfest. I will add more info to the README.

You need to do

bundle install

before running the app to install the required libraries. There is a few webservices that need more code that is not in the repository because we need to look into the license of it.

@remy
Copy link
Author

remy commented Oct 28, 2013

This is what I got when I ran bundle install:

» bundle install
The source :rubygems is deprecated because HTTP requests are insecure.
Please change your source to 'https://rubygems.org' if possible, or 'http://rubygems.org' if not.
Fetching gem metadata from http://rubygems.org/...........
Fetching gem metadata from http://rubygems.org/..
Resolving dependencies...
Could not find gem 'yaml (>= 0) ruby' in the gems available on this machine.

Not really sure where to go from there. (I did also, beforehand, run sudo gem install bundler).

@gabelula
Copy link
Member

I pushed a new Gemfile. Please pull the code from here again into your code. What is your user case exactly?

@remy
Copy link
Author

remy commented Oct 28, 2013

My use case is that I run two conferences, and I'd like to use this to get a general idea of gender divide (if there is one...which let's be honest, it's a tech event, it's highly likely).

@remy
Copy link
Author

remy commented Oct 28, 2013

Got a bit further:

» bundle install
Fetching gem metadata from http://rubygems.org/..........
Fetching gem metadata from http://rubygems.org/..
Enter your password to install the bundled RubyGems to your system:
Installing confstruct (0.2.5)
Installing json (1.8.1)
Installing rack (1.5.2)
Installing rack-protection (1.5.1)
Installing tilt (1.4.1)
Installing sinatra (1.4.4)
Installing tokenizer (0.1.1)
Using bundler (1.3.5)
Your bundle is complete!
Use `bundle show [gemname]` to see where a bundled gem is installed.

» ruby app.rb
app.rb:1:in `require': no such file to load -- sinatra (LoadError)
    from app.rb:1

@gabelula
Copy link
Member

Can you type this command to see which gems you have installed?

gem list --local

@remy
Copy link
Author

remy commented Oct 28, 2013

Result:

» gem list --local                                               ◉ ◼◼◼◼◼◼◼◼◼◼

*** LOCAL GEMS ***

addressable (2.3.4, 2.2.6)
archive-tar-minitar (0.5.2)
bundler (1.3.5)
childprocess (0.3.1)
chunky_png (1.2.5)
compass (0.11.7)
confstruct (0.2.5)
erubis (2.7.0)
ffi (1.0.11)
fssm (0.2.8.1)
har (0.0.9)
hashr (0.0.22)
i18n (0.6.0)
interact (0.3)
jschematic (0.1.0)
json (1.8.1, 1.5.3)
json_pure (1.5.4)
launchy (2.3.0)
listen (0.7.3)
localtunnel (0.3)
log4r (1.1.10)
mime-types (1.17.2)
mini_portile (0.5.0)
net-scp (1.0.4)
net-ssh (2.2.2, 2.1.4)
net-ssh-gateway (1.1.0)
rack (1.5.2)
rack-protection (1.5.1)
rb-fsevent (0.9.3)
rest-client (1.6.7)
rubyzip2 (2.0.2)
sass (3.3.0.alpha.198, 3.2.9, 3.2.3, 3.1.14)
sinatra (1.4.4)
spruz (0.2.13)
terminal-table (1.4.4)
tilt (1.4.1)
tokenizer (0.1.1)
travis-lint (1.4.0)
vagrant (1.0.7, 0.9.7)
vmc (0.3.15)

@gabelula
Copy link
Member

mmm. Not sure. It seems you already have the gem installed. Can you try to type this?

     irb

you will get a console and then you can look at the library with this:

      require 'sinatra'

@remy
Copy link
Author

remy commented Oct 28, 2013

» irb
>> require 'sinatra'
=> true

@gabelula
Copy link
Member

well. No clue. Try to run the app again.

2013/10/28 Remy Sharp [email protected]

» irb

require 'sinatra'
=> true


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

Gabriela Rodriguez
(503) 415 0030

@remy
Copy link
Author

remy commented Oct 28, 2013

Yep, still fails!

On 28 October 2013 17:16, Gabriela Rodriguez [email protected]:

well. No clue. Try to run the app again.

2013/10/28 Remy Sharp [email protected]

» irb

require 'sinatra'
=> true


Reply to this email directly or view it on GitHub<
https://github.com/OpenGenderTracking/gender-api/issues/1#issuecomment-27233012>

.

Gabriela Rodriguez
(503) 415 0030


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

@natematias
Copy link
Member

Hi Remy,

Thanks so much for your interest! For now, send me your list of names at [email protected], and I'll gladly do a rough analysis for you. gender-api, which was created in a few days at a hack day, is the least well developed part of the Open Gender Tracker project, and we'll be improving it over the next few weeks. I'm delighted in your interest and look forward to doing what I can to help you out!

--Nathan

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants