ModuleNotFoundError: No module named 'ckanext.spatial' on extension installation
Try to install ckanext-spatial extension I always get the same error. Python version 3.8. Ckan version 2.10.1
Also try install from master branch the same error.
(default) [ckan-user@ckan2-10 src]$ pip install -e "git+https://github.com/ckan/[email protected]#egg=ckanext-spatial" WARNING: Ignoring invalid distribution -kanext-latvian-theme-v2 (/usr/lib/ckan/default/lib/python3.8/site-packages) Obtaining ckanext-spatial from git+https://github.com/ckan/[email protected]#egg=ckanext-spatial Cloning https://github.com/ckan/ckanext-spatial.git (to revision v2.1.1) to ./ckanext-spatial Running command git clone --filter=blob:none --quiet https://github.com/ckan/ckanext-spatial.git /usr/lib/ckan/default/src/ckanext-spatial Running command git checkout -q 938308469892e4bcf7389cb4adee5ccdd5a0ccca Resolved https://github.com/ckan/ckanext-spatial.git to commit 938308469892e4bcf7389cb4adee5ccdd5a0ccca Running command git submodule update --init --recursive -q Installing build dependencies ... done Checking if build backend supports build_editable ... done Getting requirements to build editable ... error error: subprocess-exited-with-error
× Getting requirements to build editable did not run successfully.
│ exit code: 1
╰─> [19 lines of output]
Traceback (most recent call last):
File "/usr/lib/ckan/default/lib64/python3.8/site-packages/pip/_vendor/pyproject_hooks/_in_process/_in_process.py", line 353, in
note: This error originates from a subprocess, and is likely not a problem with pip. error: subprocess-exited-with-error
× Getting requirements to build editable did not run successfully. │ exit code: 1 ╰─> See above for output.
note: This error originates from a subprocess, and is likely not a problem with pip.
I have the same problem :(
can somebody help. It is very urgent issue.
i have same problems also, damn
This is probably related to a change in setuptools
CKAN 2.10.5 installs setuptools>=44.1.0
I temporary fixed this in my setup by installing setuptools==61.0.0 before installing this extension
We use CKAN 2.10.1
@gatiszeiris try to install the latest version of the ckanext-spatial from the last commit. Does it work for you?
We got the same error, I fixed it by adding
[tool.setuptools]
packages = ["ckanext.spatial"]
to pyproject.toml