company-jedi
company-jedi copied to clipboard
Depdency for Jedi
I described the issue here & HERE, I've tried reinstalling <company-jedi>
,<company-mode>
,<jedi>
for several times, still couldn't solve this issue.
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 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")
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 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.
I cannot test on MacOSX now. I'll test this issue at tonight.
I cannot reproduce this with Python 2.7.10 on MacOSX. But there is another error with Python 3.4 on MacOSX hmm.
There are no problems on Linux with Python 3.4
@syohex Yeah, the error comes with Python 3.4.3 on my MBP. So, should I report it to sb.?
adding a "need repro" on this as a reminder to go back and test with current builds of Emacs on macOS.