<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=Windows-1252">
</head>
<body>
<meta name="Generator" content="Microsoft Word 15 (filtered medium)">
<style><!--
/* Font Definitions */
@font-face
{font-family:"Cambria Math";
panose-1:2 4 5 3 5 4 6 3 2 4;}
@font-face
{font-family:DengXian;
panose-1:2 1 6 0 3 1 1 1 1 1;}
@font-face
{font-family:Calibri;
panose-1:2 15 5 2 2 2 4 3 2 4;}
@font-face
{font-family:"\@DengXian";
panose-1:2 1 6 0 3 1 1 1 1 1;}
/* Style Definitions */
p.MsoNormal, li.MsoNormal, div.MsoNormal
{margin:0in;
margin-bottom:.0001pt;
font-size:11.0pt;
font-family:"Calibri",sans-serif;}
a:link, span.MsoHyperlink
{mso-style-priority:99;
color:blue;
text-decoration:underline;}
a:visited, span.MsoHyperlinkFollowed
{mso-style-priority:99;
color:#954F72;
text-decoration:underline;}
.MsoChpDefault
{mso-style-type:export-only;}
@page WordSection1
{size:8.5in 11.0in;
margin:1.0in 1.0in 1.0in 1.0in;}
div.WordSection1
{page:WordSection1;}
--></style>
<div class="WordSection1">
<p class="MsoNormal">Hi All,</p>
<p class="MsoNormal"><o:p> </o:p></p>
<p class="MsoNormal">Christos:</p>
<p class="MsoNormal">The additional directories conda adds to the PATH variable can be included in eric6 on execution under the “environment” input under the project debugger properties. Doing this allows you to use an eric6 conda environment for running eric,
and project environments for your individual projects – even if they have external DLLs.</p>
<p class="MsoNormal"><o:p> </o:p></p>
<p class="MsoNormal"><o:p> </o:p></p>
<p class="MsoNormal">In terms of Autocompletion, calltips, and code documentation – it does seem that setting the debugger in preferences rather than in your project will let these plugins “see” your conda environment modules – although Detlev has just recently
updated rope to respect the project debugger. As Detlev outlined in response to my last email, many of the issues I’m facing are not due to my setup but are actually either by design or by lack of functionality from the autocompletion tools themselves. I have
been researching this further and examining functionality for PyQt with other tools, particularly VSCode, and it seems most of the functionality is similar if not the same to that of eric. It seems the issue, as Detlev pointed out, is the lack of support autocompletion
tools have for modules with underlying C libraries. VSCode allegedly has support for typeshed, another tool I am not particularly familiar with, but I have been playing with this trying to get the desired outcome for autocompletion of PyQt variables under
VSCode; unfortunately I have not had any luck here either.</p>
<p class="MsoNormal"><o:p> </o:p></p>
<p class="MsoNormal">Scouring the internet for work done in this area brings up other people facing related or similar problems, see the following:</p>
<p class="MsoNormal"><a href="https://stackoverflow.com/questions/43093400/code-completion-is-not-working-for-opencv-and-python">https://stackoverflow.com/questions/43093400/code-completion-is-not-working-for-opencv-and-python</a></p>
<p class="MsoNormal"><a href="https://stackoverflow.com/questions/47900257/autocomplete-for-automation-objects-in-vs-code-and-python">https://stackoverflow.com/questions/47900257/autocomplete-for-automation-objects-in-vs-code-and-python</a></p>
<p class="MsoNormal"><a href="https://stackoverflow.com/questions/50065211/pycharm-and-pyqt5-custom-stubs">https://stackoverflow.com/questions/50065211/pycharm-and-pyqt5-custom-stubs</a></p>
<p class="MsoNormal"><a href="https://stackoverflow.com/questions/50298745/vscode-intellisense-too-slow-working-with-pyqt4">https://stackoverflow.com/questions/50298745/vscode-intellisense-too-slow-working-with-pyqt4</a></p>
<p class="MsoNormal"><o:p> </o:p></p>
<p class="MsoNormal"><o:p> </o:p></p>
<p class="MsoNormal">Alex.</p>
<p class="MsoNormal"><o:p> </o:p></p>
<p class="MsoNormal"><o:p> </o:p></p>
</div>
<hr style="display:inline-block;width:98%" tabindex="-1">
<div id="divRplyFwdMsg" dir="ltr"><font face="Calibri, sans-serif" style="font-size:11pt" color="#000000"><b>From:</b> Eric <eric-bounces@riverbankcomputing.com> on behalf of Christos Sevastiadis <csevast@auth.gr><br>
<b>Sent:</b> Monday, October 29, 2018 3:47:30 AM<br>
<b>To:</b> eric@riverbankcomputing.com<br>
<b>Subject:</b> Re: [Eric] Autocompletion behaviour</font>
<div> </div>
</div>
<div>
<div dir="ltr">
<div>Hi,</div>
<div><br>
</div>
<div>I had a problem with my Conda environments last time. I couldn't even import some specific modules with external DLLs, such as NumPy and PyAudio. I discovered that a lot of stuff in Conda environments are not installed in the standard Python folders. The
Conda's activate command add specific folders in the beginning of the PATH environment variable, and in this way all of Conda installed modules are working fine. My approach of installing Eric in its private Conda environment, with the projects executing in
different ones, generates problems with the execution, and maybe with Autocompletion, Calltips and Code Documentation. I execute my project in the base Conda environment. So executing "Anaconda Prompt" to activate the base Conda environment, then in the prompt
executing "activate eric6", to activate the Eric's Conda environment, and then executing in the prompt Scripts\eric6, to run Eric IDE, shows the best behavior. In another discussion with Detlev I suggested some other ideas. I don't know how the problem can
be solved in the end.</div>
<div><br>
</div>
<div>Regards</div>
<div>Christos<br>
</div>
</div>
</div>
</body>
</html>