maxdemarzi / d3_js_network

MIT License
24 stars 10 forks source link

rackup #2

Open yangke opened 10 years ago

yangke commented 10 years ago

I run the following rackup command and go to visit localhost:9292/index.html to see the examples but there is no graph picture ,Something wrong happened ! It seems to be the null object error. yangke@ubuntu:~/Program/D3/d3_js_network-master$ rackup [2014-02-15 05:52:51] INFO WEBrick 1.3.1 [2014-02-15 05:52:51] INFO ruby 2.1.0 (2013-12-25) [i686-linux] [2014-02-15 05:52:51] INFO WEBrick::HTTPServer#start: pid=14194 port=9292 127.0.0.1 - - [15/Feb/2014 05:53:16] "GET /favicon.ico HTTP/1.1" 404 447 0.0034 NoMethodError - undefined method []' for nil:NilClass: /home/yangke/Program/D3/d3_js_network-master/network.rb:37:infollower_matrix' /home/yangke/Program/D3/d3_js_network-master/network.rb:54:in block in <top (required)>' /home/yangke/.rvm/gems/ruby-2.1.0/gems/sinatra-1.3.2/lib/sinatra/base.rb:1212:incall' /home/yangke/.rvm/gems/ruby-2.1.0/gems/sinatra-1.3.2/lib/sinatra/base.rb:1212:in block in compile!' /home/yangke/.rvm/gems/ruby-2.1.0/gems/sinatra-1.3.2/lib/sinatra/base.rb:785:in[]' /home/yangke/.rvm/gems/ruby-2.1.0/gems/sinatra-1.3.2/lib/sinatra/base.rb:785:in block (3 levels) in route!' /home/yangke/.rvm/gems/ruby-2.1.0/gems/sinatra-1.3.2/lib/sinatra/base.rb:801:inroute_eval' /home/yangke/.rvm/gems/ruby-2.1.0/gems/sinatra-1.3.2/lib/sinatra/base.rb:785:in block (2 levels) in route!' /home/yangke/.rvm/gems/ruby-2.1.0/gems/sinatra-1.3.2/lib/sinatra/base.rb:822:inblock in process_route'

tachyon-ops commented 1 year ago

Yeah, because follower_matrix has nothing... should output a data structure we know nothing about, as it is inside some Neo4j DB. A shame...