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

Dominic Sisneros commented on ARROW-4953:
-----------------------------------------

I am not sure if it was the latest pacman -Syu or the gem but it is working now 
without the workaround. 

Thank you so much for all your work.  

I am going through some examples I have seen and some of the tests.  One thing 
that doesn't work on windows yet is the red-parquet.  Should I open a new issue 
and close this one out?

[1] pry(main)> require 'arrow'cuments\programming\ruby\try_arrow>pry
=> true
[2] pry(main)> require 'parquet'
GObjectIntrospection::RepositoryError::TypelibNotFound: Typelib file for 
namespace 'Parquet' (any version) not found
from 
E:/rubies/Ruby26-x64/lib/ruby/gems/2.6.0/gems/gobject-introspection-3.3.6/lib/gobject-introspection/loader.rb:37:in
 `require'
Caused by LoadError: cannot load such file -- parquet
from 
E:/rubies/Ruby26-x64/lib/ruby/site_ruby/2.6.0/rubygems/core_ext/kernel_require.rb:54:in
 `require'
[3] pry(main)>

Also, on windows saving a file to gzipped csv seems to hang

table = Arrow::Table.load('worldcitiespop.csv')
table.save('worldcitiespop.csv.gz', format: :csv, compression: :gzip)

hangs on my computer

Thanks





> [Ruby] Not loading libarrow-glib
> --------------------------------
>
>                 Key: ARROW-4953
>                 URL: https://issues.apache.org/jira/browse/ARROW-4953
>             Project: Apache Arrow
>          Issue Type: Bug
>          Components: Ruby
>    Affects Versions: 0.12.1
>         Environment: msys2 windows 
>            Reporter: Dominic Sisneros
>            Assignee: Kouhei Sutou
>            Priority: Major
>
> {noformat}
> C:\Users\Dominic E Sisneros\Documents\programming\ruby\try_arrow>more 
> arrow_load.rb
> require 'arrow'
> n = 1000000
> arr = n.times.to_a.map\{|i| "test"}
> strings = Arrow::StringArray.new(arr)
> arrow_table = Arrow::Table.new("str" => strings)
> arrow_table.save("data.arrow")
> Arrow::Table.load("data.arrow")
> C:\Users\Dominic E Sisneros\Documents\programming\ruby\try_arrow>ruby 
> arrow_load.rb
> (NULL)-WARNING **: Failed to load shared library 'libarrow-glib-11.dll' 
> referenced by the typelib: 'libarrow-glib-11.dll': The specified procedure 
> could not be found.
>  from 
> e:/rubies/Ruby26-x64/lib/ruby/gems/2.6.0/gems/gobject-introspection-3.3.5/lib/gobject-introspection/loader.rb:563:in
>  `load_interface_info'
>  from 
> e:/rubies/Ruby26-x64/lib/ruby/gems/2.6.0/gems/gobject-introspection-3.3.5/lib/gobject-introspection/loader.rb:70:in
>  `load_info'
>  from 
> e:/rubies/Ruby26-x64/lib/ruby/gems/2.6.0/gems/gobject-introspection-3.3.5/lib/gobject-introspection/loader.rb:40:in
>  `block in load'
>  from 
> e:/rubies/Ruby26-x64/lib/ruby/gems/2.6.0/gems/gobject-introspection-3.3.5/lib/gobject-introspection/repository.rb:34:in
>  `block (2 levels) in each'
>  from 
> e:/rubies/Ruby26-x64/lib/ruby/gems/2.6.0/gems/gobject-introspection-3.3.5/lib/gobject-introspection/repository.rb:33:in
>  `times'
>  from 
> e:/rubies/Ruby26-x64/lib/ruby/gems/2.6.0/gems/gobject-introspection-3.3.5/lib/gobject-introspection/repository.rb:33:in
>  `block in each'
>  from 
> e:/rubies/Ruby26-x64/lib/ruby/gems/2.6.0/gems/gobject-introspection-3.3.5/lib/gobject-introspection/repository.rb:32:in
>  `each'
>  from 
> e:/rubies/Ruby26-x64/lib/ruby/gems/2.6.0/gems/gobject-introspection-3.3.5/lib/gobject-introspection/repository.rb:32:in
>  `each'
>  from 
> e:/rubies/Ruby26-x64/lib/ruby/gems/2.6.0/gems/gobject-introspection-3.3.5/lib/gobject-introspection/loader.rb:39:in
>  `load'
>  from 
> e:/rubies/Ruby26-x64/lib/ruby/gems/2.6.0/gems/gobject-introspection-3.3.5/lib/gobject-introspection/loader.rb:25:in
>  `load'
>  from 
> e:/rubies/Ruby26-x64/lib/ruby/gems/2.6.0/gems/red-arrow-0.12.0/lib/arrow/loader.rb:24:in
>  `load'
>  from 
> e:/rubies/Ruby26-x64/lib/ruby/gems/2.6.0/gems/red-arrow-0.12.0/lib/arrow.rb:28:in
>  `<module:Arrow>'
>  from 
> e:/rubies/Ruby26-x64/lib/ruby/gems/2.6.0/gems/red-arrow-0.12.0/lib/arrow.rb:24:in
>  `<top (required)>'
>  from 
> e:/rubies/Ruby26-x64/lib/ruby/site_ruby/2.6.0/rubygems/core_ext/kernel_require.rb:130:in
>  `require'
>  from 
> e:/rubies/Ruby26-x64/lib/ruby/site_ruby/2.6.0/rubygems/core_ext/kernel_require.rb:130:in
>  `rescue in require'
>  from 
> e:/rubies/Ruby26-x64/lib/ruby/site_ruby/2.6.0/rubygems/core_ext/kernel_require.rb:34:in
>  `require'
>  from arrow_load.rb:1:in `<main>'
> Traceback (most recent call last):
>  2: from arrow_load.rb:1:in `<main>'
>  1: from 
> e:/rubies/Ruby26-x64/lib/ruby/site_ruby/2.6.0/rubygems/core_ext/kernel_require.rb:54:in
>  `require'
> e:/rubies/Ruby26-x64/lib/ruby/site_ruby/2.6.0/rubygems/core_ext/kernel_require.rb:54:in
>  `require': cannot load such file -- arrow (LoadError)
>  16: from arrow_load.rb:1:in `<main>'
>  15: from 
> e:/rubies/Ruby26-x64/lib/ruby/site_ruby/2.6.0/rubygems/core_ext/kernel_require.rb:34:in
>  `require'
>  14: from 
> e:/rubies/Ruby26-x64/lib/ruby/site_ruby/2.6.0/rubygems/core_ext/kernel_require.rb:130:in
>  `rescue in require'
>  13: from 
> e:/rubies/Ruby26-x64/lib/ruby/site_ruby/2.6.0/rubygems/core_ext/kernel_require.rb:130:in
>  `require'
>  12: from 
> e:/rubies/Ruby26-x64/lib/ruby/gems/2.6.0/gems/red-arrow-0.12.0/lib/arrow.rb:24:in
>  `<top (required)>'
>  11: from 
> e:/rubies/Ruby26-x64/lib/ruby/gems/2.6.0/gems/red-arrow-0.12.0/lib/arrow.rb:28:in
>  `<module:Arrow>'
>  10: from 
> e:/rubies/Ruby26-x64/lib/ruby/gems/2.6.0/gems/red-arrow-0.12.0/lib/arrow/loader.rb:24:in
>  `load'
>  9: from 
> e:/rubies/Ruby26-x64/lib/ruby/gems/2.6.0/gems/gobject-introspection-3.3.5/lib/gobject-introspection/loader.rb:25:in
>  `load'
>  8: from 
> e:/rubies/Ruby26-x64/lib/ruby/gems/2.6.0/gems/gobject-introspection-3.3.5/lib/gobject-introspection/loader.rb:42:in
>  `load'
>  7: from 
> e:/rubies/Ruby26-x64/lib/ruby/gems/2.6.0/gems/gobject-introspection-3.3.5/lib/gobject-introspection/repository.rb:32:in
>  `each'
>  6: from 
> e:/rubies/Ruby26-x64/lib/ruby/gems/2.6.0/gems/gobject-introspection-3.3.5/lib/gobject-introspection/repository.rb:32:in
>  `each'
>  5: from 
> e:/rubies/Ruby26-x64/lib/ruby/gems/2.6.0/gems/gobject-introspection-3.3.5/lib/gobject-introspection/repository.rb:33:in
>  `block in each'
>  4: from 
> e:/rubies/Ruby26-x64/lib/ruby/gems/2.6.0/gems/gobject-introspection-3.3.5/lib/gobject-introspection/repository.rb:33:in
>  `times'
>  3: from 
> e:/rubies/Ruby26-x64/lib/ruby/gems/2.6.0/gems/gobject-introspection-3.3.5/lib/gobject-introspection/repository.rb:34:in
>  `block (2 levels) in each'
>  2: from 
> e:/rubies/Ruby26-x64/lib/ruby/gems/2.6.0/gems/gobject-introspection-3.3.5/lib/gobject-introspection/loader.rb:43:in
>  `block in load'
>  1: from 
> e:/rubies/Ruby26-x64/lib/ruby/gems/2.6.0/gems/gobject-introspection-3.3.5/lib/gobject-introspection/loader.rb:68:in
>  `load_info'
> e:/rubies/Ruby26-x64/lib/ruby/gems/2.6.0/gems/red-arrow-0.12.0/lib/arrow/loader.rb:85:in
>  `load_object_info': uninitialized constant Arrow::ArrayBuilder (NameError)
> C:\Users\Dominic E Sisneros\Documents\programming\ruby\try_arrow>
> {noformat}



--
This message was sent by Atlassian JIRA
(v7.6.3#76005)

Reply via email to