Fuzzy search for 'England' no longer works as documented.
Starting with pycountry-22.1.10, pycountry.countries.search_fuzzy('England') throws a LookupError instead of the Country object for the United Kingdom.
I noticed that the test for this was removed, so I guess this is just a documentation bug.
Seconded, but really this is a failure, not a docs bug.
Thirded!
I think it's probably just a docs bug because the failure is due to a change in the underlying ISO files, not a code failure.
@gwbarrett that's an interesting observation. Do we know what commit changed the ISO file to the point of it not changing. Could be rather easy to then create a new commit to reintroduce that functionality.
Should the docs then just be updated?
@gwbarrett @mgdelmonte and @jasonoberme I've created PR #124 that should restore this functionality.
The removal of UK's subdivisions was an accidental change in the upstream iso-codes distribution and should go away when pycountry updates to version 4.10.0 (or greater), released on 2022-06-01, of iso-codes.
Any updates when this will be fixed?
This issue has been resolved as of 23.12.7 release. Please update you pycountry version
pip install pycountry --upgrade