spyder: Autocomplete is not working
Description
In the last version of Anaconda 3, for windows 64 the Spyder autocomplete function is not working at all. What steps will reproduce the problem?
- Install Anaconda
- Open Spyder e try autocomplete
File “C:\Users\andre.ramos\AppData\Local\Continuum\anaconda3\lib\site-packages\spyder\utils\introspection\manager.py”, line 221, in get_completions self.plugin_manager.send_request(info) File “C:\Users\andre.ramos\AppData\Local\Continuum\anaconda3\lib\site-packages\spyder\utils\introspection\manager.py”, line 95, in send_request plugins = [self.plugins[desired]] KeyError: ‘fallback’
Version and main components
- Spyder Version: 3.2.4
- Python Version: 3.6.3
- Qt Versions: 5.6.2, PyQt5 5.6 on Windows
Dependencies
pyflakes >=0.6.0 : 1.6.0 (OK)
pycodestyle >=2.3: 2.3.1 (OK)
pygments >=2.0 : 2.2.0 (OK)
pandas >=0.13.1 : 0.20.3 (OK)
numpy >=1.7 : 1.13.3 (OK)
sphinx >=0.6.6 : 1.6.3 (OK)
rope >=0.9.4 : 0.10.5 (OK)
jedi >=0.9.0 : 0.10.2 (OK)
nbconvert >=4.0 : 5.3.1 (OK)
sympy >=0.7.3 : 1.1.1 (OK)
cython >=0.21 : 0.26.1 (OK)
qtconsole >=4.2.0: 4.3.1 (OK)
IPython >=4.0 : 6.1.0 (OK)
pylint >=0.25 : 1.7.4 (OK)
About this issue
- Original URL
- State: closed
- Created 9 years ago
- Reactions: 2
- Comments: 128 (45 by maintainers)
@hepinjing, could you remove
enumand try again?pip list --format=‘columns’ | grep enum enum34 1.1.6
If this only happens for specific packages, variables etc., see @ccordoba12 's explanation of why you get different results in the editor and the console.
enummust not be installed in Python 3.4 or higher, but some package is bringing it as a dependency in Python 3.6. I think that’s messing with our completion machinery and breaking it completely.@ccordoba12 Many thanks!!! This solved finally the problem!! 😃
To everybody following this issue:
Kite is a free plugin for several IDEs and editors that uses machine learning to provide better code completions for Python. We are planning to add support for Kite in Spyder, but before proceeding we’d like to know your opinion about it. Please help us with that by filling the following poll:
https://www.quiz-maker.com/poll2385657x93274cD6-68
Note: This doesn’t mean that if we do that integration, code completions will only work through Kite. Spyder will give the completions provided by Kite along with the ones from other open source libraries, like Jedi and Rope.
When will this problem be sorted out? Anaconda is a wonderful product. I have also used R Studio for analysis and its very very good. I wish the solution comes out soon for this great product. Thanks Parth
On 15 Apr 2019 6:41 pm, “Hey” notifications@github.com wrote:
Hello, I am faced with the problem that Autocomplete is working on IPython console,but it doesn’t work on Editor.
My version is 3.1.4
Beta 1, like the other betas well be once they are released, is available fully packaged from the normal channels aside from Anaconda
defaults: theconda-forgeandspyder-ideconda channels, as well as frompip. You can follow the instructions in our Readme, Contributing Guide or Install Guide, etc. to get it; you don’t need togit clone. In fact, you would need to go out of your way to actually detach your head to the Beta 1 release tag rather than the latestmaster. If you’re going to clone from Github, just run off themaster’sHEAD, since it reprisents nearly a year’s worth of development work over Beta 1.This roadmap is somewhat out of date; if Beta 2 and 3 were released, you would see them in the Github releases tab. We implemented the major rework of our whole completion/introspection/help/analysis architecture early on (in Q3 2018, on schedule), but we’ve needed to spend much more time than anticipated in testing, debugging and enhancement to fix unexpected bugs, fully integrate it with Spyder and ensure it is working much more reliably than the old architecture. This work is almost complete, and so Beta 2 is released soon, with Beta 3 to shortly follow since a lot of that work was happening in parallel. Thanks for your patience!
Autocomplete is not working perfectly. Sometimes it works and sometimes it does not work. With numpy it works but with pandas it does not work and so with some other package. Also after pressing tab , it takes long time for suggestion.
My conda list is
The most weird thing I ever saw was Spyder behaviour. When I woke up today morning, I was able to use autocomplete and the documentation query from Editor itself. XD Looks like AI is taking over Spyder 3.3.1
Uninstalling enum34 by
pip uninstall enum34works Windows 10 , Python 3.6.1 , Anaconda 4.4.4Thanks a lot 😄
@MR-T77 enum34 can be uninstalld using
pip uninstall enum34@PikWaypip removeis the wrong command for un-installing the package@PikWay, you have
enum34among your packages.@partha1968, please run
and try again.
Everything seems right. What if you
and try again?