Closed Anoncheg1 closed 2 years ago
Solved: It was jedi version missmatch: jedi-0.18.1
after downgrade to:
pip install jedi==0.17.2
everything woks.
it also required pip install virtualenv
my .emacs:
(require 'jedi-core)
(require 'company-jedi)
(with-eval-after-load 'jedi-core
;;standard-jedi-settings
;; (setq jedi:environment-virtualenv (list (expand-file-name "~/.emacs.d/.python-environments/")))
(setq jedi:environment-root "jedi")
(setq jedi:server-command (jedi:-env-server-command))
(add-hook 'python-mode-hook 'jedi:setup)
(setq jedi:complete-on-dot t)
(setq jedi:use-shortcuts t)
)
(with-eval-after-load 'company-jedi
(defun my/python-mode-hook ()
(add-to-list 'company-backends 'company-jedi)
)
(add-hook 'python-mode-hook 'my/python-mode-hook)
(add-hook 'python-mode-hook 'company-mode)
)
It would be "nice" if this 'little detail' was somewhere in the documentation
best, /PA
Summary
Not working
Steps to reproduce
deferred error : (error "\"TypeError('init() takes from 1 to 2 positional arguments but 5 positional arguments (and 1 keyword-only argument) were given')\""
My configuration
env
PATH=/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/opt/bin:/usr/lib/llvm/13/bin:/home/user/.local/bin PYTHONPATH=/home/user/.local/lib/python3.9/dist-packages/:/home/user/.local/lib/python3.9/site-packages/
OS
.emacs
message buffer
pip freeze
~/.emacs.d/.python-environments $ ls ////*