You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
" 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")
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!!
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/
The text was updated successfully, but these errors were encountered: