You are viewing a plain text version of this content. The canonical link for it is here.
Posted to jira@arrow.apache.org by "Kouhei Sutou (Jira)" <ji...@apache.org> on 2021/09/28 21:18:00 UTC

[jira] [Comment Edited] (ARROW-14076) Unable to use `red-arrow` gem on Heroku/Ubuntu 20.04 (focal)

    [ https://issues.apache.org/jira/browse/ARROW-14076?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=17421607#comment-17421607 ] 

Kouhei Sutou edited comment on ARROW-14076 at 9/28/21, 9:17 PM:
----------------------------------------------------------------

I'm still having the same issue.  Here's some more environmental information from `heroku run bash`:

 
{noformat}
Running *bash* on ⬢  ... up, run.6036 (Hobby)

*~* *$* echo $LD_LIBRARY_PATH

/app/.apt/usr/lib/x86_64-linux-gnu:/app/.apt/usr/lib/i386-linux-gnu:/app/.apt/usr/lib:/app/vendor/bundle/ruby/2.7.0/gems/extpp-0.0.9/lib:/app/vendor/bundle/ruby/2.7.0/gems/red-arrow-4.0.0/lib

*~* *$* ls -al /app/vendor/bundle/ruby/2.7.0/gems/red-arrow-4.0.0/lib

total 972

drwx------ 3 u7677 dyno   4096 Sep 21 18:40 .

drwx------ 7 u7677 dyno   4096 Sep 21 18:40 ..

drwx------ 2 u7677 dyno   4096 Sep 21 18:40 arrow

-rw------- 1 u7677 dyno    941 Sep 21 18:40 arrow.rb

-rwx------ 1 u7677 dyno 976336 Sep 21 18:40 arrow.so

*~* *$* ls -al /app/vendor/bundle/ruby/2.7.0/gems/extpp-0.0.9/lib

total 192

drwx------ 3 u7677 dyno   4096 Sep 21 18:35 .

drwx------ 8 u7677 dyno   4096 Sep 21 18:35 ..

drwx------ 2 u7677 dyno   4096 Sep 21 18:35 extpp

-rw------- 1 u7677 dyno   1049 Sep 21 18:35 extpp.rb

-rwx------ 1 u7677 dyno 177576 Sep 21 18:35 libruby-extpp.so

*~* *$*
{noformat}


was (Author: danielricecodes):
I'm still having the same issue.  Here's some more environmental information from `heroku run bash`:

 

Running *bash* on ⬢  ... up, run.6036 (Hobby)

*~* *$* echo $LD_LIBRARY_PATH

/app/.apt/usr/lib/x86_64-linux-gnu:/app/.apt/usr/lib/i386-linux-gnu:/app/.apt/usr/lib:/app/vendor/bundle/ruby/2.7.0/gems/extpp-0.0.9/lib:/app/vendor/bundle/ruby/2.7.0/gems/red-arrow-4.0.0/lib

*~* *$* ls -al /app/vendor/bundle/ruby/2.7.0/gems/red-arrow-4.0.0/lib

total 972

drwx------ 3 u7677 dyno   4096 Sep 21 18:40 .

drwx------ 7 u7677 dyno   4096 Sep 21 18:40 ..

drwx------ 2 u7677 dyno   4096 Sep 21 18:40 arrow

-rw------- 1 u7677 dyno    941 Sep 21 18:40 arrow.rb

-rwx------ 1 u7677 dyno 976336 Sep 21 18:40 arrow.so

*~* *$* ls -al /app/vendor/bundle/ruby/2.7.0/gems/extpp-0.0.9/lib

total 192

drwx------ 3 u7677 dyno   4096 Sep 21 18:35 .

drwx------ 8 u7677 dyno   4096 Sep 21 18:35 ..

drwx------ 2 u7677 dyno   4096 Sep 21 18:35 extpp

-rw------- 1 u7677 dyno   1049 Sep 21 18:35 extpp.rb

-rwx------ 1 u7677 dyno 177576 Sep 21 18:35 libruby-extpp.so

*~* *$*

> Unable to use `red-arrow` gem on Heroku/Ubuntu 20.04 (focal)
> ------------------------------------------------------------
>
>                 Key: ARROW-14076
>                 URL: https://issues.apache.org/jira/browse/ARROW-14076
>             Project: Apache Arrow
>          Issue Type: Bug
>          Components: Ruby
>    Affects Versions: 4.0.0
>         Environment: Ruby 2.7.4 on Ubuntu 20.04/Heroku
>            Reporter: Daniel Rice
>            Priority: Major
>
>  
> Hello,
>  
> I am not able to get the Ruby gems, `red-arrow` and `red-parquet`, to work properly on Heroku.  Heroku itself is merely an Ubuntu 20.04 LTS (focal) container so this really is a question about what dependencies must be installed to get these gems to work on Focal?
> So far I have specified the following in Heroku's `Aptfile`: 
> {code:java}
> # Get Heroku's Ubuntu distro for your Stack.  Heroku-20 = focal
> # Running bash on ⬢ <app_name>... up, run.1471 (Hobby)
> # ~ $ lsb_release --codename --short
> :repo:deb [trusted=yes arch=amd64] https://apache.jfrog.io/artifactory/arrow/ubuntu/ focal mainlibarrow-dev
> libparquet-dev
> libarrow-glib-dev
> libparquet-glib-dev
> libgirepository-1.0-1
> libgirepository1.0-dev
> libglib2.0-dev
> libglib2.0-0
> gir1.2-glib-2.0
> gobject-introspection
> {code}
> Note: the above contains additional packages that were required by `red-arrow` that WERE NOT SPECIFIED in the Installation guide at [https://arrow.apache.org/install/.|https://arrow.apache.org/install/]
> Despite all my efforts, I am unable to solve this issue:
> {code:java}
> 2021-09-21T23:05:11.469561+00:00 heroku[worker.1]: Process exited with status 1
> 2021-09-21T23:05:11.263179+00:00 app[worker.1]: bundler: failed to load command: sidekiq (/app/vendor/bundle/ruby/2.7.0/bin/sidekiq)
> 2021-09-21T23:05:11.263465+00:00 app[worker.1]: /app/vendor/bundle/ruby/2.7.0/gems/zeitwerk-2.4.2/lib/zeitwerk/kernel.rb:34:in `require': /tmp/build_29fd2902/vendor/bundle/ruby/2.7.0/gems/extpp-0.0.9/ext/extpp/libruby-extpp.so: cannot open shared object file: No such file or directory - /app/vendor/bundle/ruby/2.7.0/gems/red-arrow-4.0.0/lib/arrow.so (LoadError)
> 2021-09-21T23:05:11.263508+00:00 app[worker.1]: from /app/vendor/bundle/ruby/2.7.0/gems/zeitwerk-2.4.2/lib/zeitwerk/kernel.rb:34:in `require'
> 2021-09-21T23:05:11.263521+00:00 app[worker.1]: from /app/vendor/bundle/ruby/2.7.0/gems/red-arrow-4.0.0/lib/arrow/loader.rb:112:in `require_extension_library'
> 2021-09-21T23:05:11.263532+00:00 app[worker.1]: from /app/vendor/bundle/ruby/2.7.0/gems/red-arrow-4.0.0/lib/arrow/loader.rb:31:in `post_load'
> 2021-09-21T23:05:11.263544+00:00 app[worker.1]: from /app/vendor/bundle/ruby/2.7.0/gems/gobject-introspection-3.4.4/lib/gobject-introspection/loader.rb:45:in `load'
> 2021-09-21T23:05:11.263565+00:00 app[worker.1]: from /app/vendor/bundle/ruby/2.7.0/gems/gobject-introspection-3.4.4/lib/gobject-introspection/loader.rb:25:in `load'
> {code}
>  What is super frustrating is that the directory, `/app/vendor/bundle/ruby/2.7.0/gems/red-arrow-4.0.0/lib`, is specified in `LD_LIBRARY_PATH`, so I'm not sure why it's not being found.
> *+_Any help determining the full list of dependent packages for Ubuntu 20.04 (focal) would be greatly appreciated._+*  
>  
> *Extra environment details:*
>  
> Ruby 2.7.4 on Ubuntu 20.04/Heroku
>  
> *Relevant gem versions:*
> red-arrow (4.0.0)
> red-parquet (4.0.0)
> gio2 (3.4.4)
> gobject-introspection (3.4.4)
>  
>  
>  



--
This message was sent by Atlassian Jira
(v8.3.4#803005)