This was caused by a change on pyproj when they updated to version 3.4.0
https://github.com/pyproj4/pyproj/issues/1155
It now requires that the dist-info of the pyproj to be present, so it can find the "version" property inside the METADATA file, so if you have an slim installation (an installation without the dist-info folder) the project will break during the first run of its pyproj/__init__.py
.
Another way to fix this problem would be to manually remove that line of the code, (line 70 in the __init__.py
) or to hardcode the version of the project there.
Another solution could be to install and leave the metadata with the project, another approach would be to delete everything in the dist-info folder except the METADATA file.
You could however roll back to version 3.3.1
which is prior to that breaking change.
edit: I made a change to pyproj a few days after this message, so this is fixed and no longer happens