Skip to content
New issue

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

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

Already on GitHub? Sign in to your account

Depdency for Jedi #8

Open
MagisDing opened this issue Sep 7, 2015 · 9 comments
Open

Depdency for Jedi #8

MagisDing opened this issue Sep 7, 2015 · 9 comments
Labels
need repro we can't reproduce this

Comments

@MagisDing
Copy link

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

@syohex
Copy link
Contributor

syohex commented Sep 7, 2015

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.

@MagisDing
Copy link
Author

@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")

@syohex
Copy link
Contributor

syohex commented Sep 8, 2015

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.

@MagisDing
Copy link
Author

@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.

@syohex
Copy link
Contributor

syohex commented Sep 8, 2015

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

@syohex
Copy link
Contributor

syohex commented Sep 8, 2015

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

@syohex
Copy link
Contributor

syohex commented Sep 9, 2015

There are no problems on Linux with Python 3.4

@MagisDing
Copy link
Author

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

@gonewest818 gonewest818 added the need repro we can't reproduce this label Mar 24, 2020
@gonewest818
Copy link
Collaborator

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
need repro we can't reproduce this
Development

No branches or pull requests

3 participants