Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
1 task done
tudorbarascu opened this issue Aug 1, 2024 · 1 comment
Open
1 task done
Assignees
Labels
bug Something isn't working

Comments

@tudorbarascu
Copy link

tudorbarascu commented Aug 1, 2024

Checklist

  • I've searched through the existing issues and this bug has never been reported before

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]

  • g3w-admin: 3.8.dev-20240801072752
  • g3w-client: 3.10.1-alpha.0
    • qtimeseries: 3.8.0
  • browser: Chrome 127.0.0.0
  • operating system: OS X 10.15.7 64-bit

Link to your project

No response

Additional info

No response

@tudorbarascu tudorbarascu added the bug Something isn't working label Aug 1, 2024
@Raruto
Copy link
Contributor

Raruto commented Aug 5, 2024

Hi @tudorbarascu, this is a pip installable plugin:

# Install module from github (v1.0.0)
pip3 install git+https://github.com/g3w-suite/[email protected]

# 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

@Raruto Raruto changed the title I tried installing the QProcessing module to the docker image and it almost went well: No module named 'qprocessing.urls' when accessing the interface No module named 'qprocessing.urls' after installing it into a docker image Aug 5, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

3 participants