Hi All,

Christos:
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.


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.

Scouring the internet for work done in this area brings up other people facing 
related or similar problems, see the following:
https://stackoverflow.com/questions/43093400/code-completion-is-not-working-for-opencv-and-python
https://stackoverflow.com/questions/47900257/autocomplete-for-automation-objects-in-vs-code-and-python
https://stackoverflow.com/questions/50065211/pycharm-and-pyqt5-custom-stubs
https://stackoverflow.com/questions/50298745/vscode-intellisense-too-slow-working-with-pyqt4


Alex.


________________________________
From: Eric <[email protected]> on behalf of Christos 
Sevastiadis <[email protected]>
Sent: Monday, October 29, 2018 3:47:30 AM
To: [email protected]
Subject: Re: [Eric] Autocompletion behaviour

Hi,

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.

Regards
Christos
_______________________________________________
Eric mailing list
[email protected]
https://www.riverbankcomputing.com/mailman/listinfo/eric

Reply via email to