Return-Path: X-Original-To: archive-asf-public-internal@cust-asf2.ponee.io Delivered-To: archive-asf-public-internal@cust-asf2.ponee.io Received: from cust-asf.ponee.io (cust-asf.ponee.io [163.172.22.183]) by cust-asf2.ponee.io (Postfix) with ESMTP id B5F40200B95 for ; Tue, 13 Sep 2016 06:11:41 +0200 (CEST) Received: by cust-asf.ponee.io (Postfix) id B476F160AC8; Tue, 13 Sep 2016 04:11:41 +0000 (UTC) Delivered-To: archive-asf-public@cust-asf.ponee.io Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by cust-asf.ponee.io (Postfix) with SMTP id AB9E9160AB8 for ; Tue, 13 Sep 2016 06:11:40 +0200 (CEST) Received: (qmail 77358 invoked by uid 500); 13 Sep 2016 04:11:39 -0000 Mailing-List: contact user-help@predictionio.incubator.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: user@predictionio.incubator.apache.org Delivered-To: mailing list user@predictionio.incubator.apache.org Received: (qmail 77344 invoked by uid 99); 13 Sep 2016 04:11:39 -0000 Received: from pnap-us-west-generic-nat.apache.org (HELO spamd1-us-west.apache.org) (209.188.14.142) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 13 Sep 2016 04:11:39 +0000 Received: from localhost (localhost [127.0.0.1]) by spamd1-us-west.apache.org (ASF Mail Server at spamd1-us-west.apache.org) with ESMTP id 4274FC0308 for ; Tue, 13 Sep 2016 04:11:39 +0000 (UTC) X-Virus-Scanned: Debian amavisd-new at spamd1-us-west.apache.org X-Spam-Flag: NO X-Spam-Score: 1.449 X-Spam-Level: * X-Spam-Status: No, score=1.449 tagged_above=-999 required=6.31 tests=[DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, FREEMAIL_ENVFROM_END_DIGIT=0.25, HTML_MESSAGE=2, HTML_OBFUSCATE_05_10=0.001, RCVD_IN_DNSWL_LOW=-0.7, RCVD_IN_MSPIKE_H2=-0.001, SPF_PASS=-0.001] autolearn=disabled Authentication-Results: spamd1-us-west.apache.org (amavisd-new); dkim=pass (2048-bit key) header.d=gmail.com Received: from mx2-lw-us.apache.org ([10.40.0.8]) by localhost (spamd1-us-west.apache.org [10.40.0.7]) (amavisd-new, port 10024) with ESMTP id gV9jF6Tj3UmP for ; Tue, 13 Sep 2016 04:11:37 +0000 (UTC) Received: from mail-oi0-f47.google.com (mail-oi0-f47.google.com [209.85.218.47]) by mx2-lw-us.apache.org (ASF Mail Server at mx2-lw-us.apache.org) with ESMTPS id 946E75FC26 for ; Tue, 13 Sep 2016 04:11:36 +0000 (UTC) Received: by mail-oi0-f47.google.com with SMTP id d191so142422359oih.2 for ; Mon, 12 Sep 2016 21:11:36 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:in-reply-to:references:from:date:message-id:subject:to; bh=dR1S+WREofqU9FCF6csvG+pCCKOSgrjFeb+kJX0BrzE=; b=FhpnMKT4xrffGTATl4ZKynt40Lmj+EH8rPXM+yl4GXZi3CcA7lO7kBDnk5MGAKSgty 5lSfQJblHYJSS9bjBmSOAdv/VYDdqG8wnbEBDtdjwMKnUDnpONfxn1PE3iI0rje0VuWu QfiBlgieTJBL5FZUoGHFyWvmEZ+pW/rfd5CvWx6BNvc+xyv8PFUjy/S7Jf0dQ3+u1Om7 LqZlmUhoRvxMqEajjYzGCy1fDmmU9GPxUNIXa0otBTvIFLTDeSkN7ixJ2pYOGmMk+PzU lbdYIaQ5mEJXSSfWeExfQLjARMJz7/KUrdkc28ctL9vY23iFWxRGx1sS8HXhEkvrSYE6 p1aA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:mime-version:in-reply-to:references:from:date :message-id:subject:to; bh=dR1S+WREofqU9FCF6csvG+pCCKOSgrjFeb+kJX0BrzE=; b=gMoK1NPEWV3o4WSqgxXoMH+makqRfp8PX0tsQpS2SRwRFRUHvfXYvpIgGBn/S5R8QL dmzNYclEZ98+C7GjWfDBSzBU+iAx0XmuQNKnzgaIAEhpPVn9PyZAMVny2vp7wK+GHRmV AOyiV7znh4Mp1abUhIxql+/Tj4/JUL4Ze/ZTVPblofQTDUUAPmBXK2SOoqiGopzoMJ/Z DGMP4GEWMoLEdPBPQHaGtxsuupiU2L9LCXGEEmkK5OpnhlGXK26UPxZrNPpe8ALCRLrT kwcQydhKQKhR2nNNnDrHLSoRFrsoMMsXV6oA/Vy9z+n/WMNyQxn401IsKQxx0P/eqstE FaYg== X-Gm-Message-State: AE9vXwPGF24L/sz+wrs+G68yN+RBhj1Px8C5KZEydEIlSnbrCHfP4ySOtbMBQOm5fKDkRqreINp2M/9/cP05+Q== X-Received: by 10.157.54.169 with SMTP id h38mr25173302otc.81.1473739895597; Mon, 12 Sep 2016 21:11:35 -0700 (PDT) MIME-Version: 1.0 Received: by 10.64.17.136 with HTTP; Mon, 12 Sep 2016 21:11:35 -0700 (PDT) In-Reply-To: References: From: Jenna Kwon Date: Tue, 13 Sep 2016 00:11:35 -0400 Message-ID: Subject: Re: NameError: uninitialized constant Net::HTTPCreated ? To: user@predictionio.incubator.apache.org Content-Type: multipart/alternative; boundary=001a113e2c9cf7f55d053c5bceaf archived-at: Tue, 13 Sep 2016 04:11:41 -0000 --001a113e2c9cf7f55d053c5bceaf Content-Type: text/plain; charset=UTF-8 Dear Chan, Putting that line on the top of my predictionio.rake file did the trick. I am new to ruby so I am unsure why but thank you! Best Regards, Jenna Kwon On Mon, Sep 12, 2016 at 9:03 PM, Chan Lee wrote: > 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/PredictionIO/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 wrote: > >> Hello! >> >> I am following this guide here >> 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 ' >> >> /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 ' >> >> /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 `> (required)>' >> >> /usr/bin/rake:23:in `load' >> >> /usr/bin/rake:23:in `' >> 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 >> > > -- 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 --001a113e2c9cf7f55d053c5bceaf Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: quoted-printable
Dear Chan,

Putting that line on the top= of my predictionio.rake file did the trick. I am new to ruby so I am unsur= e why but thank you!=C2=A0

Best Regards,
Jenna Kwon =C2=A0

On Mon, Sep 12, 2016 at 9:03 PM, Chan Lee <chanlee514@= gmail.com> wrote:
Hi Jenna,

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

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

Cheers,
Chan

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

Hello!

I am following this guide here= =C2=A0and am getting error pasted below.=C2=A0

rake aborted!

NameError: uninitia= lized constant Net::HTTPCreated

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

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

/Users/JennaKwon/Pr= edictionIO/Demo-Tapster/lib/tasks/import/predictionio.rake:54:in = `block (3 levels) in <top (required)>'

/Users/JennaKwon/Pr= edictionIO/Demo-Tapster/lib/tasks/import/predictionio.rake:48:in = `each'

/Users/JennaKwon/Pr= edictionIO/Demo-Tapster/lib/tasks/import/predictionio.rake:48:in = `each_with_index'

/Users/JennaKwon/Pr= edictionIO/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'<= /span>

/Library/Ruby/Gems/= 2.0.0/gems/rake-10.4.2/lib/rake/task.rb:240:in `block in execute&= #39;

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

/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_w= ith_call_chain'

/System/Library/Fra= meworks/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_tas= k'

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

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

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

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

/Library/Ruby/Gems/= 2.0.0/gems/rake-10.4.2/lib/rake/application.rb:100:in `top_level&= #39;

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

/Library/Ruby/Gems/= 2.0.0/gems/rake-10.4.2/lib/rake/application.rb:176:in `standard_e= xception_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:prediction= io".
I am not sure how to trace through the code with this.<= /div>
Has anyone experienced this bug?

Best Re= gards,
Jenna Kwon=C2=A0
<= br>
--
Jenna Kwon<= div>B.S. Computer Science '17| Georgia I= nstitute of Technology=C2=A0
GT Tennis Club | GT Trailblazers




--
=
Jenna Kwon
B.S. Computer Science '17| Georgia Institute of Technology=C2=A0
Denning Technology and Manage= ment Scholar=C2=A0
GT Tenni= s Club | GT Trailblazers
www.jennakwon.com<= /font>
(541)908-2963
<= /div>
--001a113e2c9cf7f55d053c5bceaf--