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
Describe the bug
I get a "geoutils is not properly installed" error when importing geoutils after installing via pip.
Traceback (most recent call last):
File "/home/aviola/venvs/test_venv/lib/python3.10/site-packages/geoutils/__init__.py", line 10, in <module>
from geoutils._version import __version__ as __version__ # noqa
ModuleNotFoundError: No module named 'geoutils._version'
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File "<stdin>", line 1, in <module>
File "/home/aviola/venvs/test_venv/lib/python3.10/site-packages/geoutils/__init__.py", line 12, in <module>
raise ImportError(
ImportError: geoutils is not properly installed. If you are running from the source directory, please instead create a new virtual environment (using conda or virtualenv) and then install it in-place by running: pip install -e .
To Reproduce
Steps to reproduce the behavior:
Create new Python venv: python -m venv test_venv
Activate new venv
pip install geoutils
import geoutils
Fails on all Python versions I tried: Python 3.8, 3.10 and 3.11
Expected behavior
I expected to be able to import geoutils without having to use conda or mamba.
System (please complete the following information):
Thanks for the detailed issue @adamviola! Probably triggered by #398, I'll look at this early next week.
A good occasion to add a CI test that checks the pip install by itself (right now our CI only checks the pip install after installing a base conda environment).
Fixed in #419 and #420 and added a test in #421 to ensure this won't happen again! (PRs split into pieces as changes had to be merged to main to test-run the PyPI publish action in CI)
I'll release a 0.0.17 that can be pip install 😄
Thanks again @adamviola!
Describe the bug
I get a "geoutils is not properly installed" error when importing
geoutils
after installing viapip
.To Reproduce
Steps to reproduce the behavior:
python -m venv test_venv
pip install geoutils
import geoutils
Fails on all Python versions I tried: Python 3.8, 3.10 and 3.11
Expected behavior
I expected to be able to import
geoutils
without having to useconda
ormamba
.System (please complete the following information):
Just a clean venv +
geoutils
Additional context
Maybe something's up with the writing of
_version
?https://github.com/GlacioHack/geoutils/blob/main/pyproject.toml#L12
My install doesn't have that file:

Edit: I have no issues importing
geoutils==0.0.8
. Using the older version as my work-around for nowThe text was updated successfully, but these errors were encountered: