<div dir="ltr"><div dir="ltr">Hi,<br></div><br><div class="gmail_quote"><div dir="ltr" class="gmail_attr">Le lun. 12 juin 2023 à 10:58, Johannes Kröger (WhereGroup) via QGIS-User <<a href="mailto:qgis-user@lists.osgeo.org">qgis-user@lists.osgeo.org</a>> a écrit :<br></div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex">
<div>
<p>Hi,</p>
</div></blockquote><div>[snip]<br></div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex"><div><p>
</p>
<p>The internet is full of ancient, random and poorly compiled batch
scripts which really shouldn't be used anymore.</p></div></blockquote><div>Great point! This is where IMHO QGIS official documentation should have a say and play an authoritative role, with up to date, clear and meaningful instructions.</div><div>This topic of configuring QGIS with python environment is to some extent "discussed" at [0] and [1]. Do these pages meet the conditions to play that authoritative role? I'm not that sure, given how recurring the topic arises, but TBH I'm not versed enough in Python to be fully credible.<br></div><div><br></div><div>[0] <a href="https://docs.qgis.org/3.28/en/docs/pyqgis_developer_cookbook/plugins/ide_debugging.html#debugging-with-pycharm-on-ubuntu-with-a-compiled-qgis">https://docs.qgis.org/3.28/en/docs/pyqgis_developer_cookbook/plugins/ide_debugging.html#debugging-with-pycharm-on-ubuntu-with-a-compiled-qgis</a></div><div>[1] <a href="https://docs.qgis.org/3.28/en/docs/pyqgis_developer_cookbook/intro.html#python-applications">https://docs.qgis.org/3.28/en/docs/pyqgis_developer_cookbook/intro.html#python-applications</a></div><div><br></div><div>Regards,</div><div>Harrissou<br></div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex"><div>
<p>Cheers, Hannes<br>
</p>
<div>Am 09.06.23 um 18:11 schrieb Toussaint
OTTAVI via QGIS-User:<br>
</div>
<blockquote type="cite">
<font face="Calibri">Hi,<br>
<br>
I'm new to QGis. I'm trying to install latest version (3.28.7
LTR) on my machine. It does not run. The startup window shows
during a few seconds, then, nothing.<br>
<br>
I tried several older versions. None of them wants to start. The
exception is 3.14, which starts, and works perfectly.<br>
<br>
On my machine, I already have a Python 3 installed (currently,
3.11.1), on absolute path C:\Python, PYTHONPATH system variable
pointing to it, and system path, too. I also have PyCharm
installed. I think this may be the cause of my problem. I
noticed the included interpreter (C:\Program Files\QGIS
3.28.7\bin\python.exe) does not start at all, with Python error
:<br>
File "C:\Python\Lib\io.py", line 54, in <module><br>
ImportError: cannot import name 'text_encoding' from 'io'
(unknown location)<br>
<br>
If I understand well, I'll have to write a customized startup
script, with correct path (not pointing to my c:\python\lib) so
that QGis can start using the included Python interpreter (and
not my system-wide one). But I didn't find how to achieve that.<br>
<br>
Later, I think I'll have to write some QGis Python code. Then,
I'll need to run it in "developer" mode : being able to put the
source code in a git repository, edit the code in PyCharm, and
run it. Any clues are welcome.<br>
<br>
Thank you in advance. Kind regards<br>
</font> <br>
<fieldset></fieldset>
<pre>_______________________________________________
QGIS-User mailing list
<a href="mailto:QGIS-User@lists.osgeo.org" target="_blank">QGIS-User@lists.osgeo.org</a>
List info: <a href="https://lists.osgeo.org/mailman/listinfo/qgis-user" target="_blank">https://lists.osgeo.org/mailman/listinfo/qgis-user</a>
Unsubscribe: <a href="https://lists.osgeo.org/mailman/listinfo/qgis-user" target="_blank">https://lists.osgeo.org/mailman/listinfo/qgis-user</a>
</pre>
</blockquote>
<pre cols="72">--
Johannes Kröger / GIS-Entwickler/-Berater
---------------------------------------------
Aufwind durch Wissen!
Web-Seminare und Online-Schulungen
bei der <a href="http://www.foss-academy.com" target="_blank">www.foss-academy.com</a>
---------------------------------------------
WhereGroup GmbH
c/o KK03 GmbH
Lange Reihe 29
20099 Hamburg
Germany
Tel: +49 (0)228 / 90 90 38 - 36
Fax: +49 (0)228 / 90 90 38 - 11
<a href="mailto:johannes.kroeger@wheregroup.com" target="_blank">johannes.kroeger@wheregroup.com</a>
<a href="http://www.wheregroup.com" target="_blank">www.wheregroup.com</a>
Geschäftsführer:
Olaf Knopp, Peter Stamm
Amtsgericht Bonn, HRB 9885
-------------------------------
</pre>
</div>
_______________________________________________<br>
QGIS-User mailing list<br>
<a href="mailto:QGIS-User@lists.osgeo.org" target="_blank">QGIS-User@lists.osgeo.org</a><br>
List info: <a href="https://lists.osgeo.org/mailman/listinfo/qgis-user" rel="noreferrer" target="_blank">https://lists.osgeo.org/mailman/listinfo/qgis-user</a><br>
Unsubscribe: <a href="https://lists.osgeo.org/mailman/listinfo/qgis-user" rel="noreferrer" target="_blank">https://lists.osgeo.org/mailman/listinfo/qgis-user</a><br>
</blockquote></div></div>