-
Notifications
You must be signed in to change notification settings - Fork 44
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Setup Error: Error loading transliteration module #13
Comments
That sounds like the data files didn't download. Does the dir you specified for --datadir when running configure have enough space? It needs approximately 2.2G free to build the current version of libpostal (that number may change in subsequent updates to the models). Also, looking at the "dir=(null)" piece, which prints the value of LIBPOSTAL_DATA_DIR on error, it's possible that something went wrong in configure. Did all of those commands run successfully? Another random thing I noticed: it looks like |
According to the properties there is 682gb of free space. Is there a better way you'd suggest to check this? When running configure using the original command above I get the following output, which seems successful to me?: Lastly, in the make install I noticed a few lines. Are these normal to get? |
There's an extra space in It looks like everything compiled properly. The main thing to check is: |
I think you're onto something with the 2.2G it's stuck on producing the below output before and after. I've also tried the whole process from scratch a few times with the same outcomes (the added realpath doesn't appear to make a difference). Not sure why the 2.2G isn't downloading there's no folder limit or read/write issues associated with the datadir. Sorry for the lengthy back and forth trying to get this to work. |
Try running |
I get the following output -- aren't these the files that should be in data not in source?
looks like it's saving in src, looking at the size is this the expected behavior?
|
curl is not installed. |
oh wow, that was a silly oversight, now it works. That likely means this problem is probably also silly but what would be the reason now when I try to bring it into python I get a similar error. I've done the following: cd libpostal/scripts I get the same kind of error (dir=null) (both in the nose test and if i try to import in python)
|
Those are not the Python bindings, these are. Try: |
yup so that's what I did before the above. However, when I ran in python I end up with the following error. i thought it was an error like the one we just solved where the libpostal didn't get put on properly. But now I'm confused since it works outside of python.
|
It seems like there were some non-standard steps taken during the install, so it may be in a weird half-installed state. Try a clean build now that |
Trying to install on the following :
Linux HP-Pavilion-15-Notebook-PC 4.8.0-41-generic #44~16.04.1-Ubuntu SMP Fri Mar 3 17:11:16 UTC 2017 x86_64 x86_64 x86_64 GNU/Linux
When I try to check ./src/address_parser I get the following error:
Loading models...
ERR Error loading transliteration module, dir=(null)
at libpostal_setup_datadir (libpostal.c:1069) errno: No such file or directory
The following are the steps I've used:
Any guidance would be great. I'm a newbie ubuntu user but would love to check this module out for python.
The text was updated successfully, but these errors were encountered: