company-jedi icon indicating copy to clipboard operation
company-jedi copied to clipboard

Depdency for Jedi

Open MagisDing opened this issue 9 years ago • 9 comments

I described the issue here & HERE, I've tried reinstalling <company-jedi>,<company-mode>,<jedi> for several times, still couldn't solve this issue.

MagisDing avatar Sep 07 '15 09:09 MagisDing

Please do not install jedi. It is auto-complete plugin. You need to install jedi-core package. However you need not to install it manually with package.el, because it is installed as dependency of company-jedi package.

syohex avatar Sep 07 '15 13:09 syohex

@syohex Thanks, I see. So I just keep company-jedi and uninstall jedi & auto-complete, but then a similar issue like this came to me when I just open a ".py" file.

Traceback (most recent call last): File "/Users/Yuzhe_Ding/.emacs.d/.python-environments/default/bin/jediepcserver", line 11, in sys.exit(main()) File "/Users/Yuzhe_Ding/.emacs.d/.python-environments/default/lib/python3.4/site-packages/jediepcserver.py", line 316, in main server = jedi_epc_server(**vars(ns)) File "/Users/Yuzhe_Ding/.emacs.d/.python-environments/default/lib/python3.4/site-packages/jediepcserver.py", line 225, in jedi_epc_server server = epc.server.EPCServer((address, port)) File "/usr/local/Cellar/python3/3.4.3_2/Frameworks/Python.framework/Versions/3.4/lib/python3.4/site-packages/epc/server.py", line 121, in init self, server_address, RequestHandlerClass, bind_and_activate) File "/usr/local/Cellar/python3/3.4.3_2/Frameworks/Python.framework/Versions/3.4/lib/python3.4/socketserver.py", line 430, in init self.server_bind() File "/usr/local/Cellar/python3/3.4.3_2/Frameworks/Python.framework/Versions/3.4/lib/python3.4/socketserver.py", line 444, in server_bind self.socket.bind(self.server_address) OSError: [Errno 49] Can't assign requested address

Process epc:server:3 exited abnormally with code 1`

My relevant config in .init file show as blows:

;;standard-jedi-settings (add-hook 'python-mode-hook 'jedi:setup) (setq jedi:complete-on-dot t) (setq jedi:setup-keys t)

;;company-jedi-settings (defun my/python-mode-hook () (add-to-list 'company-backends 'company-jedi)) (add-hook 'python-mode-hook 'my/python-mode-hook)

;; backend-settings (setq elpy-rpc-backend "jedi")

MagisDing avatar Sep 08 '15 02:09 MagisDing

I cannot reproduce such error. You should do M-x jedi:install-server(You need to install virtualenv command for using this command) or install dependencies of jedi(jedi, epc) by manually.

syohex avatar Sep 08 '15 03:09 syohex

@syohex Actually,

the error"Process epc:server:3 exited abnormally with code 1`

came to me right after I using M-x jedi:install-server, since virtualenv hasn't been maintained for a long time, I use python-environment instead as aculich recommended. I have already installed jedi,epc both on pip and pip3.

MagisDing avatar Sep 08 '15 03:09 MagisDing

I cannot test on MacOSX now. I'll test this issue at tonight.

syohex avatar Sep 08 '15 03:09 syohex

I cannot reproduce this with Python 2.7.10 on MacOSX. But there is another error with Python 3.4 on MacOSX hmm.

syohex avatar Sep 08 '15 23:09 syohex

There are no problems on Linux with Python 3.4

syohex avatar Sep 09 '15 04:09 syohex

@syohex Yeah, the error comes with Python 3.4.3 on my MBP. So, should I report it to sb.?

MagisDing avatar Sep 10 '15 03:09 MagisDing

adding a "need repro" on this as a reminder to go back and test with current builds of Emacs on macOS.

gonewest818 avatar Mar 24 '20 00:03 gonewest818