LibPostalNet icon indicating copy to clipboard operation
LibPostalNet copied to clipboard

Nullreference Exception when trying to start without data

Open esbenbach opened this issue 6 years ago • 2 comments

Im trying to start the LibPostalConsole example application without the data argument (because I can't find the data actually), but when it gets to var response = libpostal.LibpostalParseAddress(query, new LibpostalAddressParserOptions());

The response object is null, and thus throws a nullreference exception in the next line.

What am I doing wrong? Or is it impossible to run without the data files?

esbenbach avatar Sep 05 '19 09:09 esbenbach

You need the data files to run the tool. I see that the files are no longer at the ../data URL the README states, I'll update that. In the meantime, follow libpostal's original procedure for acquiring the data:

https://github.com/openvenues/libpostal#data-files

kilick avatar Sep 05 '19 10:09 kilick

Okay, so maybe the console app should complain instead of actually trying to run, but anyway, I got it working by compiling on WSL and that gave me the data files. Thanks!

esbenbach avatar Sep 06 '19 06:09 esbenbach