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?

  1. Install Anaconda
  2. 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)

Most upvoted comments

@hepinjing, could you remove enum and 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.

enum must 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

— You are receiving this because you were mentioned. Reply to this email directly, view it on GitHub https://github.com/spyder-ide/spyder/issues/5782#issuecomment-483245183, or mute the thread https://github.com/notifications/unsubscribe-auth/AOhVGTlMxoOHxfUanEXPKoofBuBOQ7ELks5vhHqRgaJpZM4QiJK0 .

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

I proceeded to install Spyder 4.0.0 beta 1 ,which I git cloned from the master branch.

Beta 1, like the other betas well be once they are released, is available fully packaged from the normal channels aside from Anaconda defaults: the conda-forge and spyder-ide conda channels, as well as from pip. You can follow the instructions in our Readme, Contributing Guide or Install Guide, etc. to get it; you don’t need to git 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 latest master. If you’re going to clone from Github, just run off the master’s HEAD, since it reprisents nearly a year’s worth of development work over Beta 1.

However I have seen in the README.md the 2018/2019 road map for Spyder, showing Spyder 4.0.0 beta 3 has been released.

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

(base) C:\Users\Partha>conda list
# packages in environment at C:\Users\Partha\Anaconda3:
#
# Name                    Version                   Build  Channel
_ipyw_jlab_nb_ext_conf    0.1.0                    py35_0
_r-mutex                  1.0.0               anacondar_1    r
_tflow_1100_select        0.0.3                       mkl
absl-py                   0.4.1                    py35_0
alabaster                 0.7.11                   py35_0
anaconda                  custom           py35h64770cb_0
anaconda-client           1.7.2                    py35_0
anaconda-navigator        1.9.2                    py35_0
anaconda-project          0.8.2                    py35_0
appdirs                   1.4.3            py35h28b3542_0
asn1crypto                0.24.0                   py35_0
astor                     0.7.1                    py35_0
astroid                   2.0.4                    py35_0
astropy                   3.0.4            py35hfa6e2cd_0
atomicwrites              1.2.1                    py35_0
attrs                     18.2.0           py35h28b3542_0
automat                   0.7.0                    py35_0
babel                     2.6.0                    py35_0
backcall                  0.1.0                    py35_0
backports                 1.0                      py35_1
backports.shutil_get_terminal_size 1.0.0                    py35_2
beautifulsoup4            4.6.3                    py35_0
bitarray                  0.8.3            py35hfa6e2cd_0
bkcharts                  0.2              py35h4704c85_0
blas                      1.0                         mkl
blaze                     0.11.3                   py35_0
bleach                    2.1.4                    py35_0
blosc                     1.14.4               he51fdeb_0
bokeh                     0.13.0                   py35_0
boto                      2.49.0                   py35_0
bottleneck                1.2.1            py35h452e1ab_1
bzip2                     1.0.6                hfa6e2cd_5
ca-certificates           2018.03.07                    0
certifi                   2018.8.24                py35_1
cffi                      1.11.5           py35h74b6da3_1
chardet                   3.0.4                    py35_1
click                     6.7              py35h10df73f_0
cloudpickle               0.5.5                    py35_0
clyent                    1.2.2                    py35_1
colorama                  0.3.9            py35h32a752f_0
comtypes                  1.1.7                    py35_0
conda                     4.5.11                   py35_0
conda-build               3.15.1                   py35_0
conda-env                 2.6.0                         1
console_shortcut          0.1.1                         3
constantly                15.1.0           py35h28b3542_0
contextlib2               0.5.5            py35h0a97e54_0
cryptography              2.3.1            py35h74b6da3_0
curl                      7.62.0               h2a8f88b_0
cycler                    0.10.0           py35hcc71164_0
cython                    0.28.5           py35h6538335_0
cytoolz                   0.9.0.1          py35hfa6e2cd_1
dask                      0.19.2                   py35_0
dask-core                 0.19.2                   py35_0
datashape                 0.5.4                    py35_1
decorator                 4.3.0                    py35_0
defusedxml                0.5.0                    py35_1
distributed               1.23.2                   py35_0
docutils                  0.14             py35h8ccb97f_0
entrypoints               0.2.3                    py35_2
et_xmlfile                1.0.1            py35h2c13def_0
fastcache                 1.0.2            py35hfa6e2cd_2
filelock                  3.0.8                    py35_0
flask                     1.0.2                    py35_1
flask-cors                3.0.6                    py35_0
freetype                  2.9.1                ha9979f8_1
gast                      0.2.0                    py35_0
get_terminal_size         1.0.0                h38e98db_0
gevent                    1.3.6            py35hfa6e2cd_0
glob2                     0.6                      py35_0
greenlet                  0.4.15           py35hfa6e2cd_0
grpcio                    1.12.1           py35h1a1b453_0
h5py                      2.8.0            py35h3bdd7fb_2
hdf5                      1.10.2               hac2f561_1
heapdict                  1.0.0                    py35_2
html5lib                  1.0.1                    py35_0
hyperlink                 18.0.0                   py35_0
icc_rt                    2017.0.4             h97af966_0
icu                       58.2                 ha66f8fd_1
idna                      2.7                      py35_0
imageio                   2.4.1                    py35_0
imagesize                 1.1.0                    py35_0
incremental               17.5.0                   py35_0
intel-openmp              2018.0.3                      0
ipykernel                 4.10.0                   py35_0
ipython                   6.5.0                    py35_0
ipython-notebook          4.0.4                    py35_3
ipython_genutils          0.2.0            py35ha709e79_0
ipywidgets                7.4.1                    py35_0
isort                     4.3.4                    py35_0
itsdangerous              0.24                     py35_1
jdcal                     1.4                      py35_0
jedi                      0.12.1                   py35_0
jinja2                    2.10                     py35_0
jpeg                      9b                   hb83a4c4_2
jsonschema                2.6.0            py35h27d56d3_0
jupyter                   1.0.0                    py35_7
jupyter_client            5.2.3                    py35_0
jupyter_console           5.2.0                    py35_1
jupyter_core              4.4.0                    py35_0
jupyterlab                0.34.9                   py35_0
jupyterlab_launcher       0.13.1                   py35_0
keras                     2.2.2                         0
keras-applications        1.0.4                    py35_1
keras-base                2.2.2                    py35_0
keras-preprocessing       1.0.2                    py35_1
keyring                   13.2.1                   py35_0
kiwisolver                1.0.1            py35h6538335_0
lazy-object-proxy         1.3.1            py35hfa6e2cd_2
libcurl                   7.62.0               h2a8f88b_0
libiconv                  1.15                 h1df5818_7
libmklml                  2018.0.3                      1
libpng                    1.6.35               h2a8f88b_0
libprotobuf               3.6.0                h1a1b453_0
libsodium                 1.0.16               h9d3ae62_0
libssh2                   1.8.0                hd619d38_4
libtiff                   4.0.9                h36446d0_2
libxml2                   2.9.8                hadb2253_1
libxslt                   1.1.32               hf6f1972_0
llvmlite                  0.24.0           py35h6538335_0
locket                    0.2.0            py35h0dfcdd0_1
lxml                      4.2.5            py35hef2cd61_0
lzo                       2.10                 h6df0209_2
m2w64-bwidget             1.9.10                        2
m2w64-bzip2               1.0.6                         6
m2w64-expat               2.1.1                         2
m2w64-fftw                3.3.4                         6
m2w64-flac                1.3.1                         3
m2w64-gcc-libgfortran     5.3.0                         6
m2w64-gcc-libs            5.3.0                         7
m2w64-gcc-libs-core       5.3.0                         7
m2w64-gettext             0.19.7                        2
m2w64-gmp                 6.1.0                         2
m2w64-gsl                 2.1                           2
m2w64-libiconv            1.14                          6
m2w64-libjpeg-turbo       1.4.2                         3
m2w64-libogg              1.3.2                         3
m2w64-libpng              1.6.21                        2
m2w64-libsndfile          1.0.26                        2
m2w64-libsodium           1.0.10                        2
m2w64-libtiff             4.0.6                         2
m2w64-libvorbis           1.3.5                         2
m2w64-libwinpthread-git   5.0.0.4634.697f757               2
m2w64-libxml2             2.9.3                         4
m2w64-mpfr                3.1.4                         4
m2w64-openblas            0.2.19                        1
m2w64-pcre                8.38                          2
m2w64-speex               1.2rc2                        3
m2w64-speexdsp            1.2rc3                        3
m2w64-tcl                 8.6.5                         3
m2w64-tk                  8.6.5                         3
m2w64-tktable             2.10                          5
m2w64-wineditline         2.101                         5
m2w64-xz                  5.2.2                         2
m2w64-zeromq              4.1.4                         2
m2w64-zlib                1.2.8                        10
markdown                  2.6.11                   py35_0
markupsafe                1.0              py35hfa6e2cd_1
matplotlib                3.0.0            py35hd159220_0
mccabe                    0.6.1                    py35_1
menuinst                  1.4.14           py35hfa6e2cd_0
mistune                   0.8.3            py35hfa6e2cd_1
mkl                       2019.0                      118
mkl-service               1.1.2            py35hb217b18_5
mkl_fft                   1.0.6            py35hdbbee80_0
mkl_random                1.0.1            py35h77b88f5_1
more-itertools            4.3.0                    py35_0
mpmath                    1.0.0                    py35_2
msgpack-python            0.5.6            py35he980bc4_1
msys2-conda-epoch         20160418                      1
multipledispatch          0.6.0                    py35_0
navigator-updater         0.2.1                    py35_0
nbconvert                 5.3.1                    py35_0
nbformat                  4.4.0            py35h908c9d9_0
networkx                  2.1                      py35_0
nltk                      3.3.0                    py35_0
nose                      1.3.7                    py35_2
notebook                  5.6.0                    py35_0
numba                     0.39.0           py35h830ac7b_0
numexpr                   2.6.8            py35h9ef55f4_0
numpy                     1.15.2           py35ha559c80_0
numpy-base                1.15.2           py35h8128ebf_0
numpydoc                  0.8.0                    py35_0
odo                       0.5.1            py35hc850252_0
olefile                   0.46                     py35_0
openpyxl                  2.5.6                    py35_0
openssl                   1.0.2p               hfa6e2cd_0
packaging                 17.1                     py35_0
pandas                    0.23.4           py35h830ac7b_0
pandas-datareader         0.6.0                    py35_0
pandoc                    2.2.3.2                       0
pandocfilters             1.4.2                    py35_1
parso                     0.3.1                    py35_0
partd                     0.3.8            py35h894d1e4_0
path.py                   11.1.0                   py35_0
pathlib2                  2.3.2                    py35_0
patsy                     0.5.0                    py35_0
pep8                      1.7.1                    py35_0
pickleshare               0.7.4            py35h2f9f535_0
pillow                    5.2.0            py35h08bbbbd_0
pip                       10.0.1                   py35_0
pkginfo                   1.4.2                    py35_1
plotly                    3.2.1            py35h28b3542_0
pluggy                    0.7.1            py35h28b3542_0
ply                       3.11                     py35_0
prometheus_client         0.3.1            py35h28b3542_0
prompt_toolkit            1.0.15           py35h89c7cb4_0
protobuf                  3.6.0            py35he025d50_0
psutil                    5.4.7            py35hfa6e2cd_0
py                        1.6.0                    py35_0
pyasn1                    0.4.4            py35h28b3542_0
pyasn1-modules            0.2.2                    py35_0
pycodestyle               2.4.0                    py35_0
pycosat                   0.6.3            py35hfa6e2cd_0
pycparser                 2.19                     py35_0
pycrypto                  2.6.1            py35hfa6e2cd_9
pycurl                    7.43.0.2         py35h74b6da3_0
pyflakes                  2.0.0                    py35_0
pygments                  2.2.0            py35h24c0941_0
pylint                    2.1.1                    py35_0
pyodbc                    4.0.24           py35h6538335_0
pyopenssl                 18.0.0                   py35_0
pyparsing                 2.2.1                    py35_0
pyqt                      5.9.2            py35h6538335_2
pysocks                   1.6.8                    py35_0
pytables                  3.4.4            py35he6f6034_0
pytest                    3.8.1                    py35_0
pytest-arraydiff          0.2              py35h39e3cac_0
pytest-astropy            0.4.0                    py35_0
pytest-doctestplus        0.1.3                    py35_0
pytest-openfiles          0.3.0                    py35_0
pytest-remotedata         0.3.0                    py35_0
python                    3.5.6                he025d50_0
python-dateutil           2.7.3                    py35_0
pytz                      2018.5                   py35_0
pywavelets                1.0.0            py35h452e1ab_0
pywin32                   223              py35hfa6e2cd_1
pywinpty                  0.5.4                    py35_0
pyyaml                    3.13             py35hfa6e2cd_0
pyzmq                     17.1.2           py35hfa6e2cd_0
qt                        5.9.6            vc14h1e9a669_2  [vc14]
qtawesome                 0.4.4            py35h639d0ff_0
qtconsole                 4.4.1                    py35_0
qtpy                      1.5.0                    py35_0
r-base                    3.5.1                hac0af64_1    r
r-base64enc               0.1_3            r351hf348343_4    r
r-crayon                  1.3.4            r351hf348343_0    r
r-digest                  0.6.15           r351hf348343_0    r
r-evaluate                0.11             r351hf348343_0    r
r-glue                    1.3.0            r351hf348343_0    r
r-htmltools               0.3.6            r351hf348343_0    r
r-irdisplay               0.5.0            r351h6f4ce42_0    r
r-irkernel                0.8.12                   r351_0    r
r-jsonlite                1.5              r351hf348343_0    r
r-magrittr                1.5              r351hf348343_4    r
r-pbdzmq                  0.3_3            r351h6f4ce42_0    r
r-rcpp                    0.12.18          r351hf348343_0    r
r-repr                    0.15.0           r351h6f4ce42_0    r
r-stringi                 1.2.4            r351hf348343_0    r
r-stringr                 1.3.1            r351hf348343_0    r
r-uuid                    0.1_2            r351h6f4ce42_4    r
requests                  2.19.1                   py35_0
requests-file             1.4.3                    py35_0
requests-ftp              0.3.1                    py35_0
retrying                  1.3.3                    py35_2
rope                      0.11.0                   py35_0
ruamel_yaml               0.15.46          py35hfa6e2cd_0
scikit-image              0.14.0           py35h6538335_1
scikit-learn              0.20.0           py35heebcf9a_1
scipy                     1.1.0            py35h4f6bf74_1
seaborn                   0.9.0                    py35_0
send2trash                1.5.0                    py35_0
service_identity          17.0.0           py35h28b3542_0
setuptools                40.2.0                   py35_0
simplegeneric             0.8.1                    py35_2
singledispatch            3.4.0.3          py35h33f66b4_0
sip                       4.19.8           py35h6538335_0
six                       1.11.0                   py35_1
snappy                    1.1.7                h777316e_3
snowballstemmer           1.2.1            py35h4c55bfa_0
sortedcollections         1.0.1                    py35_0
sortedcontainers          2.0.5                    py35_0
sphinx                    1.7.9                    py35_0
sphinxcontrib             1.0                      py35_1
sphinxcontrib-websupport  1.1.0                    py35_1
spyder                    3.3.1                    py35_1
spyder-kernels            0.2.6                    py35_0
spyder-notebook           0.1.3                    py35_0    spyder-ide
sqlalchemy                1.2.11           py35hfa6e2cd_0
sqlite                    3.25.2               hfa6e2cd_0
statsmodels               0.9.0            py35h452e1ab_0
sympy                     1.2                      py35_0
tblib                     1.3.2            py35hd2cf7e1_0
tensorboard               1.10.0           py35he025d50_0
tensorflow                1.10.0          mkl_py35h4a0f5c2_0
tensorflow-base           1.10.0          mkl_py35h81393da_0
termcolor                 1.1.0                    py35_1
terminado                 0.8.1                    py35_1
testpath                  0.3.1            py35h06cf69e_0
tk                        8.6.8                hfa6e2cd_0
toolz                     0.9.0                    py35_0
tornado                   5.1.1            py35hfa6e2cd_0
tqdm                      4.26.0           py35h28b3542_0
traitlets                 4.3.2            py35h09b975b_0
twisted                   18.7.0           py35hfa6e2cd_1
typed-ast                 1.1.0            py35hfa6e2cd_0
unicodecsv                0.14.1           py35h0d88516_0
urllib3                   1.23                     py35_0
vc                        14.1                 h0510ff6_4
vs2013_runtime            12.0.21005                    1
vs2015_runtime            14.15.26706          h3a45250_0
wcwidth                   0.1.7            py35h6e80d8a_0
webencodings              0.5.1                    py35_1
werkzeug                  0.14.1                   py35_0
wheel                     0.31.1                   py35_0
widgetsnbextension        3.4.1                    py35_0
win_inet_pton             1.0.1                    py35_1
win_unicode_console       0.5              py35h56988b5_0
wincertstore              0.2              py35hfebbdb8_0
winpty                    0.4.3                         4
wrapt                     1.10.11          py35hfa6e2cd_2
xlrd                      1.1.0                    py35_1
xlsxwriter                1.1.1                    py35_0
xlwings                   0.11.8                   py35_0
xlwt                      1.3.0            py35hd04410a_0
yaml                      0.1.7                hc54c509_2
zeromq                    4.2.5                he025d50_1
zict                      0.1.3                    py35_0
zlib                      1.2.11               h8395fce_2
zope                      1.0                      py35_1
zope.interface            4.5.0            py35hfa6e2cd_0

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 enum34 works Windows 10 , Python 3.6.1 , Anaconda 4.4.4

Thanks a lot 😄

@MR-T77 enum34 can be uninstalld using pip uninstall enum34 @PikWay pip remove is the wrong command for un-installing the package

@PikWay, you have enum34 among your packages.

@partha1968, please run

conda install jedi=0.11.0
conda install parso=0.1.0

and try again.

Everything seems right. What if you

spyder --reset

and try again?