selva221724 / pypostalwin

libpostal wrapper python package for windows
MIT License
11 stars 5 forks source link

1. Initialize Address Parser Object AttributeError #13

Open Mulliganisoup opened 9 months ago

Mulliganisoup commented 9 months ago

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/

DSBay commented 8 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.

selva221724 commented 7 months ago

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!!

BayProjects commented 7 months ago

I would love that! Could you please add my personal account? BayProjects