Open remy opened 11 years ago
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.
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
).
I pushed a new Gemfile. Please pull the code from here again into your code. What is your user case exactly?
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).
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
Can you type this command to see which gems you have installed?
gem list --local
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)
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'
» irb
>> require 'sinatra'
=> true
well. No clue. Try to run the app again.
2013/10/28 Remy Sharp notifications@github.com
» irb
require 'sinatra' => true
— Reply to this email directly or view it on GitHubhttps://github.com/OpenGenderTracking/gender-api/issues/1#issuecomment-27233012 .
Gabriela Rodriguez (503) 415 0030
Yep, still fails!
On 28 October 2013 17:16, Gabriela Rodriguez notifications@github.comwrote:
well. No clue. Try to run the app again.
2013/10/28 Remy Sharp notifications@github.com
» 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/OpenGenderTracking/gender-api/issues/1#issuecomment-27233138 .
Hi Remy,
Thanks so much for your interest! For now, send me your list of names at natematias@gmail.com, 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
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
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.