Git Product home page Git Product logo

Comments (4)

elliots avatar elliots commented on September 26, 2024 1

This is my current Dockerfile, in case it is useful for anyone else

FROM lopsided/archlinux

RUN pacman -Syy && pacman --noconfirm -S qgis python-pip python-pandas python-scipy unzip

ENV QT_QPA_PLATFORM offscreen

RUN mkdir -p ~/.local/share/QGIS/QGIS3/profiles/default/QGIS && \
  echo "[PythonPlugins]\nprocessing=true\nprocessing_umap=true" > ~/.local/share/QGIS/QGIS3/profiles/default/QGIS/QGIS3.ini && \
  curl https://plugins.qgis.org/plugins/processing_umep/version/0.5/download/ --output umep-processing.zip && \
  mkdir -p ~/.local/share/QGIS/QGIS3/profiles/default/python/plugins && \
  unzip umep-processing.zip -d ~/.local/share/QGIS/QGIS3/profiles/default/python/plugins && \
  rm umep-processing.zip


from umep-processing.

elliots avatar elliots commented on September 26, 2024 1

If anyone else is trying to use this headless, this docker file patches qgis_process so that it loads all plugins, and installs umep processing.

FROM qgis/qgis:release-3_16

# build patched qgis_process that loads all plugins
RUN sed -i 's/plugin == QLatin1String( "processing" ) || ( mPythonUtils->isPluginEnabled( plugin ) && mPythonUtils->pluginHasProcessingProvider( plugin ) )/mPythonUtils->pluginHasProcessingProvider( plugin )/' /QGIS/src/process/qgsprocess.cpp
RUN cd /QGIS/build && ninja qgis_process && cp output/bin/qgis_process /usr/bin

# install umep plugin
RUN mkdir -p ~/.local/share/QGIS/QGIS3/profiles/default/QGIS && \
  echo "[PythonPlugins]\nprocessing=true\nprocessing_umap=true" > ~/.local/share/QGIS/QGIS3/profiles/default/QGIS/QGIS3.ini && \
  curl https://plugins.qgis.org/plugins/processing_umep/version/0.5/download/ --output umep-processing.zip && \
  mkdir -p ~/.local/share/QGIS/QGIS3/profiles/default/python/plugins && \
  unzip umep-processing.zip -d ~/.local/share/QGIS/QGIS3/profiles/default/python/plugins && \
  rm umep-processing.zip

# install umep dependencies
RUN apt install -y python3-scipy && pip3 install supy

ENV QT_QPA_PLATFORM offscreen
RUN mkdir /tmp/runtime-root
ENV XDG_RUNTIME_DIR /tmp/runtime-root

from umep-processing.

biglimp avatar biglimp commented on September 26, 2024

Not sure that this is a plugin issue but instead a QGIS issue. Have you tried to install another processing plugin via a zip-file?

from umep-processing.

elliots avatar elliots commented on September 26, 2024

You're right, my bad. I just tried another plugin and it did the same thing.

from umep-processing.

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.