predictionio-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Chan Lee <chanlee...@gmail.com>
Subject Re: NameError: uninitialized constant Net::HTTPCreated ?
Date Tue, 13 Sep 2016 01:03:16 GMT
Hi Jenna,

I've never experienced this bug, but looking at the log, it seems that when
application calls the PredictionIO Ruby SDK, it fails to load Net::HTTP
module. The code responsible should be here: https://github.com/Predi
ctionIO/PredictionIO-Ruby-SDK/blob/develop/lib/predictionio/
event_client.rb#L327.

'require "net/http"' (L8) should suffice for Ruby v2.0 or higher, so I
don't know why this error occurs in your case. Are you using SSL by any
chance?

Cheers,
Chan

On Mon, Sep 12, 2016 at 2:17 PM, Jenna Kwon <jinkwon06@gmail.com> wrote:

> Hello!
>
> I am following this guide here
> <http://predictionio.incubator.apache.org/demo/tapster/> and am getting
> error pasted below.
>
> 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'
>
> /Users/JennaKwon/PredictionIO/Demo-Tapster/lib/tasks/import/predictionio.rake:54:in
> `block (3 levels) in <top (required)>'
>
> /Users/JennaKwon/PredictionIO/Demo-Tapster/lib/tasks/import/predictionio.rake:48:in
> `each'
>
> /Users/JennaKwon/PredictionIO/Demo-Tapster/lib/tasks/import/predictionio.rake:48:in
> `each_with_index'
>
> /Users/JennaKwon/PredictionIO/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/bin/rake:23:in `load'
>
> /usr/bin/rake:23:in `<top (required)>'
> This happens when I try to post data to the predictionIO by executing
> "rake import:predictionio".
> I am not sure how to trace through the code with this.
> Has anyone experienced this bug?
>
> Best Regards,
> Jenna Kwon
>
> --
> Jenna Kwon
> B.S. Computer Science '17| Georgia Institute of Technology
> Denning Technology and Management Scholar
> GT Tennis Club | GT Trailblazers
> www.jennakwon.com
> (541)908-2963
>

Mime
View raw message