Giter VIP home page Giter VIP logo

Comments (6)

neteler avatar neteler commented on May 19, 2024

(please feel free to directly edit the new installation.md file and propose changes as PR, thanks)

from actinia-core.

sabman avatar sabman commented on May 19, 2024

@mmacata I'm taking a look at this now for the following distro

Linux li1502-8 4.19.0-17-amd64 #1 SMP Debian 4.19.194-3 (2021-07-18) x86_64 GNU/Linux

from actinia-core.

sabman avatar sabman commented on May 19, 2024

I'm running into issues at
https://github.com/mundialis/actinia_core/blob/main/docs/docs/installation.md?plain=1#L80-L85
Seems to be some compatibility issues with python version. I'm investigating.

from actinia-core.

sabman avatar sabman commented on May 19, 2024

So I got up to https://github.com/mundialis/actinia_core/blob/main/docs/docs/installation.md?plain=1#L80-L85 after following dependencies where met:

apt install zlib1g-dev unzip build-essentials libbz2-dev \
  libzstd-dev gdal-bin libgdal-dev libfftw3-dev libcairo2-dev

However the next step is causing the following error.

root@li1502-8:/tmp/grass_master/temporal# cd t.rast.sample/
root@li1502-8:/tmp/grass_master/temporal/t.rast.sample# make
if [ "/tmp/grass_master/dist.x86_64-pc-linux-gnu/scripts/t.rast.sample" != "" ] ; then GISRC=/tmp/grass_master/dist.x86_64-pc-linux-gnu/demolocation/.grassrc78 GISBASE=/tmp/grass_master/dist.x86_64-pc-linux-gnu PATH="/tmp/grass_master/dist.x86_64-pc-linux-gnu/bin:/tmp/grass_master/dist.x86_64-pc-linux-gnu/bin:/tmp/grass_master/dist.x86_64-pc-linux-gnu/scripts:$PATH" PYTHONPATH="/tmp/grass_master/dist.x86_64-pc-linux-gnu/etc/python:/tmp/grass_master/dist.x86_64-pc-linux-gnu/gui/wxpython:$PYTHONPATH" LD_LIBRARY_PATH="/tmp/grass_master/dist.x86_64-pc-linux-gnu/bin:/tmp/grass_master/dist.x86_64-pc-linux-gnu/bin:/tmp/grass_master/dist.x86_64-pc-linux-gnu/scripts:/tmp/grass_master/dist.x86_64-pc-linux-gnu/lib:/tmp/grass_master/dist.x86_64-pc-linux-gnu/lib:/usr/local/lib" LC_ALL=C LANG=C LANGUAGE=C /tmp/grass_master/dist.x86_64-pc-linux-gnu/scripts/t.rast.sample --html-description < /dev/null | grep -v '</body>\|</html>' > t.rast.sample.tmp.html ; fi
Traceback (most recent call last):
  File "/tmp/grass_master/dist.x86_64-pc-linux-gnu/scripts/t.rast.sample", line 81, in <module>
    import grass.script as gscript
  File "/tmp/grass_master/dist.x86_64-pc-linux-gnu/etc/python/grass/__init__.py", line 4, in <module>
    import six
ImportError: No module named six
make: *** [../..//include/Make/Html.make:14: t.rast.sample.tmp.html] Error 1
rm t.rast.sample.tmp.html

I assume it needs python. Its not clear to me which python version should be installed. When I try python3 any pip3 packages aren't picked up. So for example apt install python3-debian python3-pip && pip3 install six doesn't fix the issue.

python2 however does seem to work but fails for another reason which seems to be python2 incompatible package.

apt install -y curl && \
  curl https://bootstrap.pypa.io/pip/2.7/get-pip.py --output get-pip.py && \
  python2 get-pip.py

pip2 install six

# ...

  File "/tmp/grass_master/dist.x86_64-pc-linux-gnu/etc/python/grass/pygrass/vector/basic.py", line 9, in <module>
    from collections.abc import Iterable
ImportError: No module named abc
make: *** [../..//include/Make/Html.make:14: t.rast.sample.tmp.html] Error 1
rm t.rast.sample.tmp.html

looking into this from collections.abc import Iterable seems to be that this is compatible with python3. See: https://stackoverflow.com/questions/55882715/difference-between-from-collections-import-container-and-from-collections-abc-im

from actinia-core.

mmacata avatar mmacata commented on May 19, 2024

Hi @sabman thanks for looking into this! The install part you found will definitely help.The other behaviour seems odd. We don't support python2 any more, in the beginning of actinia it was still used for the GRASS GIS parts inside which relates to the t.rast.sample error you described above.

from actinia-core.

Momen-Mawad avatar Momen-Mawad commented on May 19, 2024

As @sabman mentioned:

I'm running into issues at https://github.com/mundialis/actinia_core/blob/main/docs/docs/installation.md?plain=1#L80-L85 Seems to be some compatibility issues with python version. I'm investigating.

I received an error on this step also:
/usr/bin/env: β€˜python’: No such file or directory
It is indeed a python related issue.

Following the suggested solution found here:
https://askubuntu.com/questions/942930/usr-bin-env-python-no-such-file-or-directory
I get this error no more.

The user can run the command sudo apt-get install python-is-python3

I shall continue with the installation steps and investigate if I will run with any further errors.

from actinia-core.

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.