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

Only require qgis.gui import when gui is built #58523

Merged
merged 1 commit into from
Aug 29, 2024

Conversation

m-kuhn
Copy link
Member

@m-kuhn m-kuhn commented Aug 29, 2024

Running qgis_process on a WITH_GUI=OFF build results in the following error

qgis_process run native:buffer
"<font color=\"red\">Couldn't load PyQGIS.<br>Python support will be disabled.</font><br><pre><br>Traceback (most recent call last):<br>&nbsp; File \"<string>\", line 1, in <module><br>ModuleNotFoundError: No module named 'qgis.gui'<br><br></pre>Python version:<br>3.10.12 (main, Jul 29 2024, 16:56:48) [GCC 11.4.0]<br><br>QGIS version:<br>3.34.10-Prizren 'Prizren', 113de9e1<br><br>Python path:<br>['/usr/share/qgis/python', '/home/qgis/.local/share/QGIS/QGIS3/profiles/default/python', '/home/qgis/.local/share/QGIS/QGIS3/profiles/default/python/plugins', '/usr/share/qgis/python/plugins', '/usr/share/qgis/python', '/usr/lib/python310.zip', '/usr/lib/python3.10', '/usr/lib/python3.10/lib-dynload', '/usr/local/lib/python3.10/dist-packages', '/usr/lib/python3/dist-packages']"

Refs opengisch/qgis-slim#3

@github-actions github-actions bot added this to the 3.40.0 milestone Aug 29, 2024
Copy link

🪟 Windows builds ready!

Windows builds of this PR are available for testing here. Debug symbols for this build are available here.

(Built from commit c986d76)

@nyalldawson nyalldawson merged commit 5668207 into qgis:master Aug 29, 2024
31 checks passed
@m-kuhn m-kuhn deleted the fix_non_gui branch August 29, 2024 20:27
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants