<html xmlns:o="urn:schemas-microsoft-com:office:office" xmlns:w="urn:schemas-microsoft-com:office:word" xmlns:m="http://schemas.microsoft.com/office/2004/12/omml" xmlns="http://www.w3.org/TR/REC-html40">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=Windows-1252">
<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>
</head>
<body lang="EN-US" link="blue" vlink="#954F72">
<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">I have found that, under the setup I described in my last email, it is necessary to have</p>
<p class="MsoNormal">\AppData\Local\conda\conda\envs\testEric\Library\bin;</p>
<p class="MsoNormal">Included in PATH in order to import numpy successfully.</p>
<p class="MsoNormal"><o:p> </o:p></p>
<p class="MsoNormal">Setting this path as the “working directory” in the “Run Script” prompt seems to solve the issue.</p>
<p class="MsoNormal">What is the “working directory” setting supposed to control, and would I expect other consequences to doing this? Is there a way to tie this working directory to a particular virtual environment?</p>
<p class="MsoNormal"><o:p> </o:p></p>
<p class="MsoNormal">Regards,</p>
<p class="MsoNormal">Alex.</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 Alex Gerhardt-Bourke <agerhbour@hotmail.com><br>
<b>Sent:</b> Sunday, September 16, 2018 1:14:12 PM<br>
<b>To:</b> Christos Sevastiadis; detlev@die-offenbachs.de<br>
<b>Cc:</b> Eric@riverbankcomputing.com<br>
<b>Subject:</b> Re: [Eric] Support network for eric, conda, and internet connection</font>
<div> </div>
</div>
<div>
<div class="WordSection1">
<p class="MsoNormal">Hi All,</p>
<p class="MsoNormal"><o:p> </o:p></p>
<p class="MsoNormal">Thankyou for your responses.</p>
<p class="MsoNormal"><o:p> </o:p></p>
<p class="MsoNormal">Toggling the Dynamic Online Status Determination meant I am now able to retrieve the list of plugins. It did not solve the issue of being able to connect to IRC servers – not a huge issue but would be nice to know what is causing this.</p>
<p class="MsoNormal"><o:p> </o:p></p>
<p class="MsoNormal">With regards to Conda environments – thankyou Christos for your useful contributions. Installing eric6 under its own virtual environment is a great idea as it means I can keep pyqt5 and qscintilla and other packages used by eric in compatible
 versions with eric.</p>
<p class="MsoNormal">The way you have described setting conda virtual environments works a charm – it seems you can only set an environment as a “global environment” if you have not also set the directory path name. I also do not know what the effect of this
 is.</p>
<p class="MsoNormal"><o:p> </o:p></p>
<p class="MsoNormal">I have now realized, after testing with other modules, that it is the numpy module in particular that is making life difficult. Here is my setup:</p>
<p class="MsoNormal">Miniconda installed, base environment has no extra modules installed</p>
<p class="MsoNormal">eric6 environment has pyqt5, qscintilla installed underneath it. Eric has been installed and is running under this environment</p>
<p class="MsoNormal">testEric environment has numpy installed. Numpy successfully imports when running through the anaconda prompt with the testEric environment activated.</p>
<p class="MsoNormal"><o:p> </o:p></p>
<p class="MsoNormal">Now, if I try to import numpy in a script and run through eric, where I choose testEric as the virtual environment, I get an import error. This is the same import error I get if I manually run the testEric python interpreter and try to
 import numpy. So I assume conda is doing something else when I run its activation script. I have tried changing the virtual environment configuration in eric, in particular the “global environment” toggle as mentioned before, as well as changing the <default>
 global environment to both the conda base interpreter, and the eric6 environment interpreter. Clearly none of these settings also change whatever conda is doing.
</p>
<p class="MsoNormal"><o:p> </o:p></p>
<p class="MsoNormal">Cristos – do you work with numpy and do you work with numpy in eric? Perhaps this is one of your “working” packages you have installed under the base environment. I assume this issue won’t exist if running through the base environment,
 but this is clearly not a solution if one wants to work with virtual environments in their intended sense.</p>
<p class="MsoNormal"><o:p> </o:p></p>
<p class="MsoNormal">Thankyou all again for your input,</p>
<p class="MsoNormal">Regards,</p>
<p class="MsoNormal">Alex.</p>
<p class="MsoNormal"><o:p> </o:p></p>
<p class="MsoNormal"><o:p> </o:p></p>
<div style="mso-element:para-border-div;border:none;border-top:solid #E1E1E1 1.0pt;padding:3.0pt 0in 0in 0in">
<p class="MsoNormal" style="border:none;padding:0in"><b>From: </b><a href="mailto:csevast@auth.gr">Christos Sevastiadis</a><br>
<b>Sent: </b>Saturday, September 15, 2018 10:17 PM<br>
<b>Subject: </b>Re: [Eric] Support network for eric, conda, and internet connection</p>
</div>
<p class="MsoNormal"><o:p> </o:p></p>
<p class="MsoNormal" style="margin-bottom:12.0pt"><o:p> </o:p></p>
<div>
<div>
<p class="MsoNormal">On Sat, 15 Sep 2018 at 17:07, Detlev Offenbach <<a href="mailto:detlev@die-offenbachs.de">detlev@die-offenbachs.de</a>> wrote:<o:p></o:p></p>
</div>
<blockquote style="border:none;border-left:solid #CCCCCC 1.0pt;padding:0in 0in 0in 6.0pt;margin-left:4.8pt;margin-top:5.0pt;margin-right:0in;margin-bottom:5.0pt">
<p class="MsoNormal" style="margin-left:9.6pt"><br>
Am Samstag, 15. September 2018, 15:25:05 CEST schrieb Christos Sevastiadis:<br>
<br>
..<br>
<br>
> P.S. to Detlev: It should be convenient if the of the default running<br>
> environment was saved in the project. That means there is a default running<br>
> environment for all new projects, but it can be changed and saved on each<br>
> project.<br>
<br>
Virtual environments can be different on different computers/operating <br>
systems. Therefore I am not including this in the project data, because that <br>
should be platform/installation neutral. However, one can configure the <br>
debugger settings specifically for a project through the Project menu <br>
(Project->Debugger). Loading and saving of the project debugger settings can <br>
be configured on the Project->Project configuration page.<br>
<br>
Detlev<br>
-- <br>
Detlev Offenbach<br>
<a href="mailto:detlev@die-offenbachs.de" target="_blank">detlev@die-offenbachs.de</a><br>
<br>
 <o:p></o:p></p>
</blockquote>
<div>
<p class="MsoNormal"><o:p> </o:p></p>
</div>
<div>
<p class="MsoNormal">I didn't notice the Debug options in the project Menu, as I was expecting it somewhere in or close to the Project options in the same menu.<o:p></o:p></p>
</div>
<div>
<p class="MsoNormal">Because I started to use Python with the Anaconda distribution, which is popular for scientific applications, from the beginning I was involved with the problems of Conda environments and Eric. One way or another I solved them, with no
 need the Conda system to be integrated into Eric. I hope Alex will make it either.<o:p></o:p></p>
</div>
<div>
<p class="MsoNormal"><o:p> </o:p></p>
</div>
</div>
<p class="MsoNormal">Christos.<o:p></o:p></p>
<p class="MsoNormal"><o:p> </o:p></p>
</div>
</div>
</body>
</html>