Open neteler opened 3 weeks ago
Is it something to do with Python requirements not installed?
As a check, I can install it without problems on Ubuntu 24.04
As a separate issue, I guess, the modules do not appear in the toolbox panel, but can be run from the console/terminal
As a check, I can install it without problems on Ubuntu 24.04
Did you use g.extension
as above?
Using the same command @neteler provided (and also trying from within a grass session), I also get error but with pystac-client:
grass-dev --tmp-project XY --exec g.extension t.stac
Fetching <t.stac> from <https://github.com/OSGeo/grass-addons/> (be
patient)...
remote: Enumerating objects: 38, done.
remote: Counting objects: 100% (29/29), done.
remote: Compressing objects: 100% (24/24), done.
remote: Total 38 (delta 8), reused 14 (delta 4), pack-reused 9 (from 1)
Receiving objects: 100% (38/38), 36.69 KiB | 7.34 MiB/s, done.
Resolving deltas: 100% (8/8), done.
Already on 'grass8'
Your branch is up to date with 'origin/grass8'.
Compiling...
Traceback (most recent call last):
File "/tmp/grass8-vandreo-247676/tmpy21l0cr7/t.stac/grass_addons/src/temporal/t.stac/scripts/t.stac.catalog", line 72, in <module>
from pystac_client import Client
ModuleNotFoundError: No module named 'pystac_client'
make[1]: *** [/home/vandreo/software/grass-dev/dist.x86_64-pc-linux-gnu/include/Make/Html.make:14: t.stac.catalog.tmp.html] Error 1
Traceback (most recent call last):
File "/tmp/grass8-vandreo-247676/tmpy21l0cr7/t.stac/grass_addons/src/temporal/t.stac/scripts/t.stac.collection", line 80, in <module>
from pystac_client import Client
ModuleNotFoundError: No module named 'pystac_client'
make[1]: *** [/home/vandreo/software/grass-dev/dist.x86_64-pc-linux-gnu/include/Make/Html.make:14: t.stac.collection.tmp.html] Error 1
Traceback (most recent call last):
File "/tmp/grass8-vandreo-247676/tmpy21l0cr7/t.stac/grass_addons/src/temporal/t.stac/scripts/t.stac.item", line 266, in <module>
from pystac_client import Client
ModuleNotFoundError: No module named 'pystac_client'
make[1]: *** [/home/vandreo/software/grass-dev/dist.x86_64-pc-linux-gnu/include/Make/Html.make:14: t.stac.item.tmp.html] Error 1
Installing...
/usr/bin/install: cannot stat '/tmp/grass8-vandreo-247676/tmpy21l0cr7/t.stac/grass_addons/src/temporal/t.stac/docs/html/t.stac.catalog.html': No such file or directory
make[1]: *** [/home/vandreo/software/grass-dev/dist.x86_64-pc-linux-gnu/include/Make/Script.make:36: install] Error 1
/usr/bin/install: cannot stat '/tmp/grass8-vandreo-247676/tmpy21l0cr7/t.stac/grass_addons/src/temporal/t.stac/docs/html/t.stac.collection.html': No such file or directory
make[1]: *** [/home/vandreo/software/grass-dev/dist.x86_64-pc-linux-gnu/include/Make/Script.make:36: install] Error 1
/usr/bin/install: cannot stat '/tmp/grass8-vandreo-247676/tmpy21l0cr7/t.stac/grass_addons/src/temporal/t.stac/docs/html/t.stac.item.html': No such file or directory
make[1]: *** [/home/vandreo/software/grass-dev/dist.x86_64-pc-linux-gnu/include/Make/Script.make:36: install] Error 1
make: *** [/home/vandreo/software/grass-dev/dist.x86_64-pc-linux-gnu/include/Make/Dir.make:19: installsubdirs] Error 2
WARNING: Installation failed, sorry. Please check above error messages.
@cwhite911: Are all these lazy imports? or can they be?
As a check, I can install it without problems on Ubuntu 24.04
Did you use
g.extension
as above?
Yes, and also after first starting up grass and then using g.extension (I did have to install some libraries, like stac-client and pystac-client).
Name of the multi-addon t.stac
Describe the bug
When attempting to install it, the import fails:
Expected behavior
Do not fail :)
Interestingly, a local installation (rather that
g.extension
) works:So there seems to be an issue with
g.extension
andt.stac
.System description