Open detournemint opened 6 years ago
Hey @greggawatt, which OS is this, and which version of libpostal? And is it running in a VM or container?
I just tested it out again with the latest version of libpostal on Mac with Ruby 2.2.4 and everything seemed to be working ok. 2.1 is covered by our build, although that's Ubuntu.
This is a vm running debian and i grabbed the latest version of libpostal today from github.
Do you have a rails project you can try it on or try rails runner test.rb
with the following in test.rb:
require 'ruby_postal/expand'
puts Postal::Expand.expand_address('Quatre-vingt-douze Ave des Ave des Champs-Élysées')
so for the record ruby test.rb
works
rails runner test.rb
blows up
Rails 4.2
No, sorry. I'm really not a Ruby/Rails person, and, being a data scientist, most of my work is in Python/NumPy or C (my only real knowledge of Ruby is how the language operates at the C level). If the basic script is working, it seems that either we're doing something in the C extension that's not kosher with Rails, or there may be a bug somewhere else. Afraid I don't have the time right now to look into it in much depth, but I would try searching for the general error of loading C extensions in that version of Rails and see if that turns up anything. If you find that there's a fault with this library, feel free to update here or send a PR.
Hi there, I've installed libpostal via the instructions, i created a /data folder with full permissions open. i have the ruby_postal gem installed and when trying to run in rails console
My data dir is 1.9 gb which is the only other cause i saw of a segfault error when I looked it up. (Issue #3 ) but no dice. I have 30gb of ram and 500 gb of disk space.
Any idea what's up or what I can try? It seems to be rails specific as running a file with just the import statement
ruby test.rb
works just fine