Hi,

I am trying the tapster demo template of recommendation engine.

I had all the parameters setup correctly.

pio build worked correctly, but when I did *rake import:predictionio*, it
gave me this error:

rake aborted!

NameError: uninitialized constant Net::HTTPCreated

/Library/Ruby/Gems/2.0.0/gems/predictionio-0.9.0/lib/predictionio/event_client.rb:326:in
`sync_events'

/Library/Ruby/Gems/2.0.0/gems/predictionio-0.9.0/lib/predictionio/event_client.rb:132:in
`create_event'

/usr/local/Cellar/Demo-Tapster/lib/tasks/import/predictionio.rake:54:in
`block (3 levels) in <top (required)>'

/usr/local/Cellar/Demo-Tapster/lib/tasks/import/predictionio.rake:48:in
`each'

/usr/local/Cellar/Demo-Tapster/lib/tasks/import/predictionio.rake:48:in
`each_with_index'

/usr/local/Cellar/Demo-Tapster/lib/tasks/import/predictionio.rake:48:in
`block (2 levels) in <top (required)>'

Tasks: TOP => import:predictionio

(See full trace by running task with --trace)


On running the same with --trace it gave the following result:

rake aborted!

NameError: uninitialized constant Net::HTTPCreated

/Library/Ruby/Gems/2.0.0/gems/predictionio-0.9.0/lib/predictionio/event_client.rb:326:in
`sync_events'

/Library/Ruby/Gems/2.0.0/gems/predictionio-0.9.0/lib/predictionio/event_client.rb:132:in
`create_event'

/usr/local/Cellar/Demo-Tapster/lib/tasks/import/predictionio.rake:54:in
`block (3 levels) in <top (required)>'

/usr/local/Cellar/Demo-Tapster/lib/tasks/import/predictionio.rake:48:in
`each'

/usr/local/Cellar/Demo-Tapster/lib/tasks/import/predictionio.rake:48:in
`each_with_index'

/usr/local/Cellar/Demo-Tapster/lib/tasks/import/predictionio.rake:48:in
`block (2 levels) in <top (required)>'

/Library/Ruby/Gems/2.0.0/gems/rake-10.4.2/lib/rake/task.rb:240:in `call'

/Library/Ruby/Gems/2.0.0/gems/rake-10.4.2/lib/rake/task.rb:240:in `block in
execute'

/Library/Ruby/Gems/2.0.0/gems/rake-10.4.2/lib/rake/task.rb:235:in `each'

/Library/Ruby/Gems/2.0.0/gems/rake-10.4.2/lib/rake/task.rb:235:in `execute'

/Library/Ruby/Gems/2.0.0/gems/rake-10.4.2/lib/rake/task.rb:179:in `block in
invoke_with_call_chain'

/System/Library/Frameworks/Ruby.framework/Versions/2.0/usr/lib/ruby/2.0.0/monitor.rb:211:in
`mon_synchronize'

/Library/Ruby/Gems/2.0.0/gems/rake-10.4.2/lib/rake/task.rb:172:in
`invoke_with_call_chain'

/Library/Ruby/Gems/2.0.0/gems/rake-10.4.2/lib/rake/task.rb:165:in `invoke'

/Library/Ruby/Gems/2.0.0/gems/rake-10.4.2/lib/rake/application.rb:150:in
`invoke_task'

/Library/Ruby/Gems/2.0.0/gems/rake-10.4.2/lib/rake/application.rb:106:in
`block (2 levels) in top_level'

/Library/Ruby/Gems/2.0.0/gems/rake-10.4.2/lib/rake/application.rb:106:in
`each'

/Library/Ruby/Gems/2.0.0/gems/rake-10.4.2/lib/rake/application.rb:106:in
`block in top_level'

/Library/Ruby/Gems/2.0.0/gems/rake-10.4.2/lib/rake/application.rb:115:in
`run_with_threads'

/Library/Ruby/Gems/2.0.0/gems/rake-10.4.2/lib/rake/application.rb:100:in
`top_level'

/Library/Ruby/Gems/2.0.0/gems/rake-10.4.2/lib/rake/application.rb:78:in
`block in run'

/Library/Ruby/Gems/2.0.0/gems/rake-10.4.2/lib/rake/application.rb:176:in
`standard_exception_handling'

/Library/Ruby/Gems/2.0.0/gems/rake-10.4.2/lib/rake/application.rb:75:in
`run'

/Library/Ruby/Gems/2.0.0/gems/rake-10.4.2/bin/rake:33:in `<top (required)>'

/usr/local/bin/rake:23:in `load'

/usr/local/bin/rake:23:in `<main>'

Tasks: TOP => import:predictionio


Is there anyway to solve this issue?



Thanks & Regards,

Shantanu

Reply via email to