Open Mulliganisoup opened 9 months ago
otherwise, replace '../site-packages/pypostalwin.py'
code with the new one in GitHub. There is, however, an issue with the json.loads()
output, since it only works on single json objects and libpostal's address_parser.exe
outputs multiple json objects.
thanks a lot @DSBay , i saw your suggestion on these, let me fix these soon !! if you like to be a part of the group, i can add you as a contributor too!!
I would love that! Could you please add my personal account? BayProjects
If anyone else is getting the error:
" Exception has occurred: AttributeError 'AddressParser' object has no attribute 'parse_address' File "C:\Users\libparse.py", line 11, in
parsed_address = parser.parse_address("The White House 1600 Pennsylvania Avenue NW, Washington, DC 20500, USA")
^^^^^^^^^^^^^^^^^^^^
AttributeError: 'AddressParser' object has no attribute 'parse_address'"
Change the line: parsed_address = parser.parse_address("The White House 1600 Pennsylvania Avenue NW, Washington, DC 20500, USA")
To: parsed_address = parser.runParser("The White House 1600 Pennsylvania Avenue NW, Washington, DC 20500, USA")
Documentation: https://pypi.org/project/pypostalwin/