Skip to content
This repository was archived by the owner on Jan 11, 2022. It is now read-only.
This repository was archived by the owner on Jan 11, 2022. It is now read-only.

TextBlob cannot be imported as Python Module #22

@halostatue

Description

@halostatue

Anonymous created an issue 2014-06-16
Ruby 2.1.2p95 segfault when doing the import of python module textblob (which himself use a lot of other python libraries, http://textblob.readthedocs.org/) from an agent of huginn (https://github.com/cantino/huginn/wiki).
The code used used was:

# own_sentiment_agent.rb:
def receive(incoming_events)
  RubyPython.start
  p = RubyPython.import("textblob")
  RubyPython.stop

Result:

18:51:04 web.1 | /home/huginn/.rbenv/versions/2.1.2/lib/ruby/gems/2.1.0/gems/blankslate-3.1.2/lib/blankslate.rb:51: warning: undefining object_id' may cause serious problems 18:51:04 jobs.1 | /home/huginn/.rbenv/versions/2.1.2/lib/ruby/gems/2.1.0/gems/blankslate-3.1.2/lib/blankslate.rb:51: warning: undefiningobject_id' may cause serious problems 18:51:05 web.1 | [2014-06-16 18:51:05] INFO WEBrick 1.3.1 18:51:05 web.1 | [2014-06-16 18:51:05] INFO ruby 2.1.2 (2014-05-08) [x86_64-linux] 18:51:05 web.1 | [2014-06-16 18:51:05] INFO WEBrick::HTTPServer#start: pid=5172 port=3000 18:51:05 jobs.1 | Found 2 agent(s). Loading them now... 18:51:07 jobs.1 | /home/huginn/.rbenv/versions/2.1.2/lib/ruby/gems/2.1.0/gems/rubypython-0.6.3/lib/rubypython.rb:106: [BUG] Segmentation fault at 0x00000000000001 18:51:07 jobs.1 | ruby 2.1.2p95 (2014-05-08 revision 45877) [x86_64-linux] 18:51:07 jobs.1 | 18:51:07 jobs.1 | -- Control frame information ----------------------------------------------- 18:51:07 jobs.1 | c:0056 p:---- s:0233 e:000232 CFUNC :PyImport_ImportModule 18:51:07 jobs.1 | c:0055 p:0055 s:0229 e:000228 METHOD /home/huginn/.rbenv/versions/2.1.2/lib/ruby/gems/2.1.0/gems/rubypython-0.6.3/lib/rubypython.rb:106 18:51:07 jobs.1 | c:0054 p:0027 s:0223 e:000222 METHOD /home/huginn/huginn/app/models/agents/own_sentiment_agent.rb:41 18:51:07 jobs.1 | c:0053 p:0054 s:0218 e:000217 METHOD /home/huginn/huginn/app/models/agent.rb:310 18:51:07 jobs.1 | c:0052 p:0022 s:0211 e:000210 METHOD /home/huginn/.rbenv/versions/2.1.2/lib/ruby/gems/2.1.0/gems/delayed_job-4.0.1/lib/delayed/performable_method.rb:26 18:51:07 jobs.1 | c:0051 p:0019 s:0208 e:000207 BLOCK /home/huginn/.rbenv/versions/2.1.2/lib/ruby/gems/2.1.0/gems/delayed_job-4.0.1/lib/delayed/backend/base.rb:105 [FINISH] 18:51:07 jobs.1 | c:0050 p:---- s:0205 e:000204 CFUNC :call 18:51:07 jobs.1 | c:0049 p:0010 s:0201 e:000200 LAMBDA /home/huginn/.rbenv/versions/2.1.2/lib/ruby/gems/2.1.0/gems/delayed_job-4.0.1/lib/delayed/lifecycle.rb:60 [FINISH] 18:51:07 jobs.1 | c:0048 p:---- s:0197 e:000196 CFUNC :call 18:51:07 jobs.1 | c:0047 p:0021 s:0193 e:000192 METHOD /home/huginn/.rbenv/versions/2.1.2/lib/ruby/gems/2.1.0/gems/delayed_job-4.0.1/lib/delayed/lifecycle.rb:65 18:51:07 jobs.1 | c:0046 p:0111 s:0187 e:000186 METHOD /home/huginn/.rbenv/versions/2.1.2/lib/ruby/gems/2.1.0/gems/delayed_job-4.0.1/lib/delayed/lifecycle.rb:38 18:51:07 jobs.1 | c:0045 p:0020 s:0181 E:0016d8 METHOD /home/huginn/.rbenv/versions/2.1.2/lib/ruby/gems/2.1.0/gems/delayed_job-4.0.1/lib/delayed/backend/base.rb:102 18:51:07 jobs.1 | c:0044 p:0009 s:0178 e:000177 BLOCK /home/huginn/.rbenv/versions/2.1.2/lib/ruby/gems/2.1.0/gems/delayed_job-4.0.1/lib/delayed/worker.rb:207 18:51:07 jobs.1 | c:0043 p:0036 s:0176 E:001be0 BLOCK /home/huginn/.rbenv/versions/2.1.2/lib/ruby/2.1.0/timeout.rb:91 [FINISH] 18:51:07 jobs.1 | c:0042 p:---- s:0171 e:000170 CFUNC :call 18:51:07 jobs.1 | c:0041 p:0069 s:0167 E:001738 METHOD /home/huginn/.rbenv/versions/2.1.2/lib/ruby/2.1.0/timeout.rb:101 18:51:07 jobs.1 | c:0040 p:0027 s:0156 E:001638 BLOCK /home/huginn/.rbenv/versions/2.1.2/lib/ruby/gems/2.1.0/gems/delayed_job-4.0.1/lib/delayed/worker.rb:207 18:51:07 jobs.1 | c:0039 p:0019 s:0154 e:000153 METHOD /home/huginn/.rbenv/versions/2.1.2/lib/ruby/2.1.0/benchmark.rb:294 18:51:07 jobs.1 | c:0038 p:0023 s:0150 E:0024e0 METHOD /home/huginn/.rbenv/versions/2.1.2/lib/ruby/gems/2.1.0/gems/delayed_job-4.0.1/lib/delayed/worker.rb:206 18:51:07 jobs.1 | c:0037 p:0009 s:0144 E:0022e8 BLOCK /home/huginn/.rbenv/versions/2.1.2/lib/ruby/gems/2.1.0/gems/delayed_job-4.0.1/lib/delayed/worker.rb:274 [FINISH] ...```

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions