<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
</head>
<body>
Hi Toussaint,<br>
I am not a hard-core developer, but I script/code whenever I can
automate a procedure, so:<br>
<ul>
<li>It is my understanding that QGIS is developed/maintained in
the QT environment - so go that way rather than PyCharm if you
plan to dabble in QGIS development.<br>
Perhaps one of the devs that lurk on this user list will add to
this comment of mine.<br>
</li>
<li>Get on to QGIS-dev as well - you might find some better
guidance there, for PyCharm and other python scripting issues.</li>
</ul>
I will try to find time to set up QGIS and PyCharm on my laptop in
the next day or so - <b><u>but in the meantime, google</u></b>
"pycharm with qgis" - there are about a billion articles and videos
that come up.<br>
<br>
Oh!, Yes!, I am exaggerating..... :-)<br>
<br>
Regards,<br>
Zoltan<br>
<br>
<div class="moz-cite-prefix">On 2023/06/12 10:06, Toussaint OTTAVI
via QGIS-User wrote:<br>
</div>
<blockquote type="cite"
cite="mid:f81c315f-89d0-71ca-4c65-6cf1ca190b49@bc-109.com">
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<font face="Calibri">Hi Zoltan,<br>
<br>
Thank you in advance for your help.<br>
<br>
For now, I didn't manage to find a suitable configuration by
setting paths and environment variables in a startup ".bat"
file. QGis still tries to load things from my system-wide Python
folder (c:\python), </font><font face="Calibri"><font
face="Calibri">even if no path or env variable points to it. T</font>hen,
it fails.<br>
<br>
The only workaround I found is a bit rough : rename my c:\python
folder to c:\python.bak, run QGis, then rename back to the
original name ! Of course, this prevents from using QGis at the
same time with PyCharm or other Python stuff, and is not an
acceptable solution on the long term.<br>
<br>
Even if I don't have the skills to dive into QGis source code
for now, I may try to play around with some simple plugins.
Then, wouldn't it be a better idea to install QGis in
"developer" mode, by cloning / forking the GitHub repo ?<br>
<br>
Any suggestions are welcome.<br>
<br>
Kind regards. <br>
<br>
<br>
</font><br>
<div class="moz-cite-prefix">Le 09/06/2023 à 22:25, Zoltan a
écrit :<br>
</div>
<blockquote type="cite"
cite="mid:8193e50f-7d09-431e-8ee7-7315bb42f9dd@geograph.co.za">
<meta http-equiv="Content-Type" content="text/html;
charset=UTF-8">
<div dir="auto">Hi,<br>
</div>
<div dir="auto">I seem to remember that pycharm website provides
help on using pycharm with qgis, so don't mess with your
existing installations of python. <br>
</div>
<div dir="auto">The gist of it is that you add the pycharm
startup to the end of the bat file that qgis provides for
setting up all the env variables.<br>
</div>
<div dir="auto">Starting pycharm from the Taskbar will not set
these environment for you so use the edited bat file I
describe above.<br>
</div>
<div dir="auto">There might also be a way in your pycharm venv
to pre set these env vars.<br>
</div>
<div dir="auto">I have a new laptop which I have not yet set up
for this but if you are still stuck tomorrow, I'll set mine
up and let you know what works. <br>
</div>
<div dir="auto">Regards <br>
</div>
<div dir="auto">Zoltan <br>
<br>
</div>
</blockquote>
<br>
<br>
<fieldset class="moz-mime-attachment-header"></fieldset>
<pre class="moz-quote-pre" wrap="">_______________________________________________
QGIS-User mailing list
<a class="moz-txt-link-abbreviated" href="mailto:QGIS-User@lists.osgeo.org">QGIS-User@lists.osgeo.org</a>
List info: <a class="moz-txt-link-freetext" href="https://lists.osgeo.org/mailman/listinfo/qgis-user">https://lists.osgeo.org/mailman/listinfo/qgis-user</a>
Unsubscribe: <a class="moz-txt-link-freetext" href="https://lists.osgeo.org/mailman/listinfo/qgis-user">https://lists.osgeo.org/mailman/listinfo/qgis-user</a>
</pre>
</blockquote>
<br>
<pre class="moz-signature" cols="72">--
=============================================
Zoltan Szecsei GPrGISc 0031
Director, Geograph (Pty) Ltd.
GIS and Photogrammetric Services
Cape Town, South Africa.
Mobile: +974-5058-8729 (Signal, not WhatsApp)
+27-83-6004028 (Signal, not WhatsApp)
<a class="moz-txt-link-abbreviated" href="http://www.geograph.co.za">www.geograph.co.za</a>
=============================================</pre>
</body>
</html>