<div dir="auto"><div><div dir="auto">There shouldn't be any problems in using conda and osgeo4w side by side, they should both have isolated python environments.</div><div dir="auto"><br></div>If I remember well, during conda installation you are asked if you want to add conda to the PATH environment variable (can't remember the exact wording), you need to say NO. Otherwise conda python will be the default python on your machine.</div><div dir="auto"><br></div><div dir="auto">I agree with Richard, don't mess with osgeo4w scripts or you will end up with with an even worst mess.</div><div dir="auto"><br></div><div dir="auto">Alexandre Neto<br><br><div class="gmail_quote" dir="auto"><div dir="ltr" class="gmail_attr">A sábado, 2/10/2021, 08:32, Richard Duivenvoorde <<a href="mailto:rdmailings@duif.net" target="_blank" rel="noreferrer">rdmailings@duif.net</a>> escreveu:<br></div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">Hi Fred,<br>
<br>
I think indeed the source of your problem is the mixing of different versions of python: the one in osgeo4w and the Conda one. When SIP is not loaded correctly, you will not have any python based stuff in QGIS (so no plugins and processing).<br>
<br>
The osgeo4w scripts normally 'isolate' the (python) paths pretty good. If I'm correct by actually even clearing your own PATH variable  (??)<br>
But I think that Conda add's it's path's to your normal (python)path's (PATH or PYTHONPATH) variables.<br>
<br>
For what I know you should not have  to 'fix' things in the osgeo4w scripts, better to make sure your system PATH is not filled with PYTHONPATH's or python/bin dirs in PATH.<br>
<br>
You could try to start the osgeo4w 'terminal' and check what the environment variables PATH and PYTHONPATH are there. If you see conda-paths in it, these should be removed (either by removing them from your environment (but then you have to 'fix' conda) or by clearing them in the osgeo4w bat files...<br>
<br>
Hope this helps, regards,<br>
<br>
Richard Duivenvoorde<br>
<br>
<br>
<br>
On 10/2/21 1:14 AM, Fred Perloff wrote:<br>
> Hi,<br>
> <br>
> After a fresh install of OSGeo4W network installer, I start QGISD Desktop.  A python error box pops up with the error copied below. I close the error window and the program loads. However, if I click on plugins settings, I receive the error: No Python support detected.<br>
> <br>
> I suspect I know the source of the problem. I have installed Python from Anaconda. Anaconda uses an older version of Python and of qt. I modified C:\OSGeo4W\etc\ini\python3.bat by prepending %OSGEO4W_ROOT%\apps\Python39;%OSGEO4W_ROOT%\apps\Python39\Lib;%OSGEO4W_ROOT%\apps\Python39\Lib\site-packages; to PYTHONPATH. There's a curious mix of / and escaped \\ in the resulting path.<br>
> <br>
> How do I enable loading python __init__.py when the desktop starts?<br>
> Thanks!<br>
> <br>
> Error window:<br>
> <br>
> Couldn't load SIP module.<br>
> Python support will be disabled.<br>
> <br>
> Traceback (most recent call last):<br>
> File "", line 1, in<br>
> File "C:\OSGeo4W/apps/qgis/./python\qgis\__init__.py", line 82, in<br>
> from qgis.PyQt import QtCore<br>
> File "C:\OSGeo4W/apps/qgis/./python\qgis\PyQt\QtCore.py", line 24, in<br>
> from PyQt5.QtCore import *<br>
> ImportError: DLL load failed while importing QtCore: The specified procedure could not be found.<br>
> <br>
> Python version:<br>
> 3.9.5 (tags/v3.9.5:0a7dcbd, May 3 2021, 17:27:52) [MSC v.1928 64 bit (AMD64)]<br>
> QGIS version:<br>
> 3.20.3-Odense 'Odense', 495fbaec<br>
> Python path:<br>
> ['C:/OSGeo4W/apps/qgis/./python', 'C:/Users/Fred/AppData/Roaming/QGIS/QGIS3\\profiles\\default/python', 'C:/Users/Fred/AppData/Roaming/QGIS/QGIS3\\profiles\\default/python/plugins', 'C:/OSGeo4W/apps/qgis/./python/plugins', 'C:\\ProgramData\\Anaconda3', 'C:\\ProgramData\\Anaconda3\\DLLs', 'C:\\ProgramData\\Anaconda3\\lib', 'C:\\ProgramData\\Anaconda3\\lib\\site-packages', 'C:\\ProgramData\\Anaconda3\\lib\\site-packages\\win32', 'C:\\ProgramData\\Anaconda3\\lib\\site-packages\\win32\\lib', 'C:\\ProgramData\\Anaconda3\\lib\\site-packages\\Pythonwin', 'C:\\Users\\Fred\\Documents', 'C:\\OSGeo4W\\bin\\python39.zip', 'C:\\OSGeo4W\\apps\\Python39\\DLLs', 'C:\\OSGeo4W\\apps\\Python39\\lib', 'C:\\OSGeo4W\\bin', 'C:\\OSGeo4W\\apps\\Python39', 'C:\\OSGeo4W\\apps\\Python39\\lib\\site-packages', 'C:\\OSGeo4W\\apps\\Python39\\lib\\site-packages\\win32', 'C:\\OSGeo4W\\apps\\Python39\\lib\\site-packages\\win32\\lib', 'C:\\OSGeo4W\\apps\\Python39\\lib\\site-packages\\Pythonwin']<br>
> OS version: Windows 10 Version 2009<br>
> QGIS version: 3.20.3-Odense 495fbaec<br>
> Qt version: 5.15.2<br>
> Python version: 3.9.5<br>
> Windows 10 Pro<br>
> <br>
> Fred Perloff<br>
> <a href="mailto:fred@perloff.us" rel="noreferrer noreferrer" target="_blank">fred@perloff.us</a><br>
> <br>
> _______________________________________________<br>
> Qgis-user mailing list<br>
> <a href="mailto:Qgis-user@lists.osgeo.org" rel="noreferrer noreferrer" target="_blank">Qgis-user@lists.osgeo.org</a><br>
> List info: <a href="https://lists.osgeo.org/mailman/listinfo/qgis-user" rel="noreferrer noreferrer 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 noreferrer noreferrer" target="_blank">https://lists.osgeo.org/mailman/listinfo/qgis-user</a><br>
> <br>
<br>
_______________________________________________<br>
Qgis-user mailing list<br>
<a href="mailto:Qgis-user@lists.osgeo.org" rel="noreferrer noreferrer" target="_blank">Qgis-user@lists.osgeo.org</a><br>
List info: <a href="https://lists.osgeo.org/mailman/listinfo/qgis-user" rel="noreferrer noreferrer 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 noreferrer noreferrer" target="_blank">https://lists.osgeo.org/mailman/listinfo/qgis-user</a><br>
</blockquote></div></div></div>