g3w-suite / g3w-admin-processing

Porting of QGIS processing features inside the G3W-SUITE framework.
Mozilla Public License 2.0
1 stars 1 forks source link

No module named `'qprocessing.urls'` after installing it into a docker image #14

Open tudorbarascu opened 3 months ago

tudorbarascu commented 3 months ago

Checklist

Subject of the issue

Tried installing the QProcessing module and it worked but when accessing the g3w admin interface it throws the error:

Steps to reproduce

I changed the scripts/setup.sh to:

diff --git a/scripts/setup.sh b/scripts/setup.sh
index 75cd7ae..d0046cd 100644

--- a/scripts/setup.sh
+++ b/scripts/setup.sh
@@ -17,6 +17,8 @@ pip3 install -r requirements_huey.txt
 #TODO make this as generic so that we can install as many plugins as possible
 git submodule add -f https://github.com/g3w-suite/g3w-admin-frontend.git  g3w-admin/frontend

+# First Line added by Tudor
+git submodule add -f https://github.com/g3w-suite/g3w-admin-processing.git g3w-admin/qprocessing

 # Caching
 pip3 install -r /code/g3w-admin/caching/requirements.txt
@@ -30,3 +32,7 @@ pip3 install -r /code/g3w-admin/qplotly/requirements.txt
 # Openrouteservice
 pip3 install -r /code/g3w-admin/openrouteservice/requirements.txt

+# Second Line added by Tudor
+export DEB_PYTHON_INSTALL_LAYOUT=deb_system && pip3 install -r /code/g3w-admin/qprocessing/requirements.txt

And I edited the settings_... .py file to include the module

G3WADMIN_LOCAL_MORE_APPS = [
    'caching',
    'editing',
    'filemanager',
    'qplotly',
    # Uncomment if you wont activate the following module
    #'openrouteservice',
    'qprocessing',
    'qtimeseries',
    'frontend'
]

Is there another step involved?

Environment

[g3wsdk.info]

Link to your project

No response

Additional info

No response

Raruto commented 3 months ago

Hi @tudorbarascu, this is a pip installable plugin:

# Install module from github (v1.0.0)
pip3 install git+https://github.com/g3w-suite/g3w-admin-processing.git@v1.0.0

# Install module from github (dev branch)
# pip3 install git+https://github.com/g3w-suite/g3w-admin-processing.git@dev

# Install module from local folder (git development)
# pip3 install -e /g3w-admin/plugins/qprocessing

# Install module from PyPi (not yet available)
# pip3 install g3w-admin-processing

you don't need the git submodule:

git submodule add -f https://github.com/g3w-suite/g3w-admin-processing.git g3w-admin/qprocessing

In short, you don't need a g3w-admin/qprocessing folder within your django project to make it work.

👋 Raruto