Coder Social home page Coder Social logo

Comments (5)

echoix avatar echoix commented on July 19, 2024

Is it reproducible in a new, clean environment, like a docker container, so we could eliminate the possibility of having a broken Python environment alltogether?

from grass-addons.

neteler avatar neteler commented on July 19, 2024

Yes:

# docker/podman
docker run -it -v .:/src --rm fedora:38 bash

First attempt with G8.2.1:

# OT: svn still needed as a dependency (if not, I'll update the RPM spec file)?
[root@7f237af87f91 /]# dnf install grass-devel grass make gcc svn

[root@7f237af87f91 /]# grass --tmp-location XY --exec g.extension i.fusion.hpf
Starting GRASS GIS...
Creating new GRASS GIS location <tmploc>...
Cleaning up temporary files...
Executing <g.extension i.fusion.hpf> ...
Fetching <i.fusion.hpf> from GRASS GIS Addons repository (be patient)...
svn: E170013: Unable to connect to a repository at URL 'https://github.com/OSGeo/grass-addons/branches/grass8/src/imagery/i.fusion.hpf'
svn: E160013: '/OSGeo/grass-addons/branches/grass8/src/imagery/i.fusion.hpf' path not found
ERROR: GRASS Addons <i.fusion.hpf> not found
Execution of <g.extension i.fusion.hpf> finished.
Cleaning up temporary files...

Second attempt with G8.4:

# following https://grasswiki.osgeo.org/wiki/Compile_and_Install#Fedora
[root@5e0cca00834f grass-8.3.git_src_snapshot_2024_01_06]# bin.x86_64-pc-linux-gnu/grass --tmp-location XY --exec g.extension i.fusion.hpf
Fetching <i.fusion.hpf> from <https://github.com/OSGeo/grass-addons/> (be
patient)...
remote: Enumerating objects: 27, done.
remote: Counting objects: 100% (10/10), done.
remote: Compressing objects: 100% (10/10), done.
remote: Total 27 (delta 0), reused 0 (delta 0), pack-reused 17
Receiving objects: 100% (27/27), 1.07 MiB | 8.57 MiB/s, done.
Already on 'grass8'
Your branch is up to date with 'origin/grass8'.
Compiling...
Traceback (most recent call last):
  File "/tmp/grass8-root-23185/tmp36u_6c8k/i.fusion.hpf/grass_addons/src/imagery/i.fusion.hpf/scripts/i.fusion.hpf", line 202, in <module>
    from high_pass_filter import (
ModuleNotFoundError: No module named 'high_pass_filter'
make: *** [/root/grass-8.3.git_src_snapshot_2024_01_06/dist.x86_64-pc-linux-gnu/include/Make/Html.make:14: i.fusion.hpf.tmp.html] Error 1
ERROR: Compilation failed, sorry. Please check above error messages.

from grass-addons.

neteler avatar neteler commented on July 19, 2024

It still worked in the main branch on 8th of Nov, 2023. Later versions from December I have not tested.

from grass-addons.

neteler avatar neteler commented on July 19, 2024

Here with --verbose:

GRASS nc_spm_08_grass7/user1:addons > g.extension i.fusion.hpf --verbose
Type of source identified as 'official'.
Fetching <i.fusion.hpf> from <https://github.com/OSGeo/grass-addons/> (be
patient)...
remote: Enumerating objects: 27, done.
remote: Counting objects: 100% (10/10), done.
remote: Compressing objects: 100% (10/10), done.
remote: Total 27 (delta 0), reused 0 (delta 0), pack-reused 17
Receiving objects: 100% (27/27), 1.07 MiB | 3.09 MiB/s, done.
Already on 'grass8'
Your branch is up to date with 'origin/grass8'.
Compiling...
mkdir -p /home/mneteler/tmp/grass8-mneteler-2692454/tmpln8xq089/i.fusion.hpf/grass_addons/src/imagery/i.fusion.hpf/bin
mkdir -p /home/mneteler/tmp/grass8-mneteler-2692454/tmpln8xq089/i.fusion.hpf/grass_addons/src/imagery/i.fusion.hpf/etc
mkdir -p /home/mneteler/tmp/grass8-mneteler-2692454/tmpln8xq089/i.fusion.hpf/grass_addons/src/imagery/i.fusion.hpf/docs/html
mkdir -p /home/mneteler/tmp/grass8-mneteler-2692454/tmpln8xq089/i.fusion.hpf/grass_addons/src/imagery/i.fusion.hpf/docs/man
mkdir -p /home/mneteler/tmp/grass8-mneteler-2692454/tmpln8xq089/i.fusion.hpf/grass_addons/src/imagery/i.fusion.hpf/docs/man/man1
mkdir -p /home/mneteler/tmp/grass8-mneteler-2692454/tmpln8xq089/i.fusion.hpf/grass_addons/src/imagery/i.fusion.hpf/scripts
/usr/bin/install -c i.fusion.hpf.py /home/mneteler/tmp/grass8-mneteler-2692454/tmpln8xq089/i.fusion.hpf/grass_addons/src/imagery/i.fusion.hpf/scripts/i.fusion.hpf
mkdir -p /home/mneteler/tmp/grass8-mneteler-2692454/tmpln8xq089/i.fusion.hpf/grass_addons/src/imagery/i.fusion.hpf/etc/i.fusion.hpf
/usr/bin/install -c -m 644 constants.py /home/mneteler/tmp/grass8-mneteler-2692454/tmpln8xq089/i.fusion.hpf/grass_addons/src/imagery/i.fusion.hpf/etc/i.fusion.hpf/constants.py
/usr/bin/install -c -m 644 high_pass_filter.py /home/mneteler/tmp/grass8-mneteler-2692454/tmpln8xq089/i.fusion.hpf/grass_addons/src/imagery/i.fusion.hpf/etc/i.fusion.hpf/high_pass_filter.py
python3 -t -m py_compile /home/mneteler/tmp/grass8-mneteler-2692454/tmpln8xq089/i.fusion.hpf/grass_addons/src/imagery/i.fusion.hpf/etc/i.fusion.hpf/constants.py
python3 -t -m py_compile /home/mneteler/tmp/grass8-mneteler-2692454/tmpln8xq089/i.fusion.hpf/grass_addons/src/imagery/i.fusion.hpf/etc/i.fusion.hpf/high_pass_filter.py
if [ "/home/mneteler/tmp/grass8-mneteler-2692454/tmpln8xq089/i.fusion.hpf/grass_addons/src/imagery/i.fusion.hpf/scripts/i.fusion.hpf" != "" ] ; then GISRC=/home/mneteler/tmp/grass8-mneteler-2692454/gisrc GISBASE=/home/mneteler/software/grass_main/dist.x86_64-pc-linux-gnu PATH="/home/mneteler/software/grass_main/dist.x86_64-pc-linux-gnu/bin:/home/mneteler/software/grass_main/dist.x86_64-pc-linux-gnu/bin:/home/mneteler/software/grass_main/dist.x86_64-pc-linux-gnu/scripts:$PATH" PYTHONPATH="/home/mneteler/software/grass_main/dist.x86_64-pc-linux-gnu/etc/python:/home/mneteler/software/grass_main/dist.x86_64-pc-linux-gnu/gui/wxpython:$PYTHONPATH" LD_LIBRARY_PATH="/home/mneteler/tmp/grass8-mneteler-2692454/tmpln8xq089/i.fusion.hpf/grass_addons/src/imagery/i.fusion.hpf/bin:/home/mneteler/software/grass_main/dist.x86_64-pc-linux-gnu/bin:/home/mneteler/software/grass_main/dist.x86_64-pc-linux-gnu/scripts:/home/mneteler/software/grass_main/dist.x86_64-pc-linux-gnu/lib:/home/mneteler/software/grass_main/dist.x86_64-pc-linux-gnu/lib:/home/mneteler/software/grass_main/dist.x86_64-pc-linux-gnu/lib" LC_ALL=C LANG=C LANGUAGE=C /home/mneteler/tmp/grass8-mneteler-2692454/tmpln8xq089/i.fusion.hpf/grass_addons/src/imagery/i.fusion.hpf/scripts/i.fusion.hpf --html-description < /dev/null | grep -v '</body>\|</html>\|</div> <!-- end container -->' > i.fusion.hpf.tmp.html ; fi
Traceback (most recent call last):
  File "/home/mneteler/tmp/grass8-mneteler-2692454/tmpln8xq089/i.fusion.hpf/grass_addons/src/imagery/i.fusion.hpf/scripts/i.fusion.hpf", line 202, in <module>
    from high_pass_filter import (
ModuleNotFoundError: No module named 'high_pass_filter'
make: *** [/home/mneteler/software/grass_main/dist.x86_64-pc-linux-gnu/include/Make/Html.make:14: i.fusion.hpf.tmp.html] Error 1
rm i.fusion.hpf.tmp.html
ERROR: Compilation failed, sorry. Please check above error messages.

from grass-addons.

neteler avatar neteler commented on July 19, 2024

Fixed in OSGeo/grass#3353

from grass-addons.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.