Skip to content
New issue

Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? # to your account

Setup without easy install #340

Closed
jkaye2012 opened this issue Nov 13, 2018 · 3 comments
Closed

Setup without easy install #340

jkaye2012 opened this issue Nov 13, 2018 · 3 comments

Comments

@jkaye2012
Copy link

Hi all,

After a recent upgrade, completion in anaconda-mode buffers is broken for me. Other buffers complete fine (as does the inferior repl), which points to an issue in anaconda-mode.

anaconda-mode contains the following message repeatedly:

Traceback (most recent call last):
  File "<string>", line 61, in <module>
AttributeError: 'list' object has no attribute 'clear'

Thanks!

@wailo
Copy link

wailo commented Nov 13, 2018

Guessing:
(defun anaconda-mode-port () (process-get anaconda-mode-process 'port))

This function returns nils.

@jkaye2012
Copy link
Author

This was being caused by the way that Anaconda expects its dependencies to be loaded/installed. It's currently using eggs that must be installed by easy_install, which does not support many of the pip configurations that are often required to get at external packages (e.g. from within a corporate network).

Is there any way to leverage pip instead of easy_install to get these dependencies (jedi, parso, and service_factory). I ended up having to manually download each of these packages and running easy_install pointed to my own machine as the pypi index.

@CeleritasCelery
Copy link
Contributor

CeleritasCelery commented Sep 17, 2019

So long as the dependencies are already installed, you can work around this by adding the following empty directories to the directory stored in (anaconda-mode-server-directory) (typically ~/.emacs.d/anaconda-mode/<version>)

jedi.egg
service_factory.egg

@CeleritasCelery CeleritasCelery changed the title Company completion not working Setup without easy install Sep 17, 2019
# for free to join this conversation on GitHub. Already have an account? # to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants