abingham / traad

An JSON+HTTP server for the rope Python refactoring library
MIT License
107 stars 20 forks source link

Can not install server and need to make it with pyenv #110

Open vipermagic opened 11 months ago

vipermagic commented 11 months ago

I just trying to touch traad.

M-x traad-install-server in emacs gives me this error message:

Debugger entered--Lisp error: (error "Invalid virtualenv traad specified!")
  signal(error ("Invalid virtualenv traad specified!"))
  error("Invalid virtualenv traad specified!")
  venv-workon("traad")
  venv-with-virtualenv-shell-command("traad" "pip install --upgrade traad")
  traad-install-server()
  funcall-interactively(traad-install-server)
  call-interactively(traad-install-server record nil)
  command-execute(traad-install-server record)
  #f(compiled-function (cmd) #<bytecode -0xb5a436b6b7a019f>)("traad-install-server")
  ivy-call()
  ivy-read("M-x " [python-imenu-format-parent-item-label 0 pr-ps-file-preview eshell-insert-buffer-name nexti dashboard-ls archive--file-desc-mode ivy-explorer python-nav-beginning-of-defun-regexp Reduce\ To:\ to\ Cc: ivy-default-view-name c-electric-lt-gt pcomplete-stub yas-x-prompt zmq dired-unmark-all-marks link-name senator-eldoc-use-color cvs-handled-face elpy-django-map files--splice-dirname-file helm-show-kill-ring message-expand-name-databases info--manual-names autoload-find-file python-shell-get-process-or-error traversed compilation-error-list kmacro-pop-ring1 request-response-p--cmacro nexus vc-annotate :mac xref--push-markers 0 nswbuff ov-end eshell--sep-terms int-file-name --cl-block-request-response--timeout-callback-- hs-toggle-hiding 0 dired-do-chmod gud-target-name deferred:parallel-array-to-alist hashbang xref-group latexdiff tramp-handle-make-auto-save-file-name puny-encode-digit ...] :predicate commandp :require-match t :history extended-command-history :action #f(compiled-function (cmd) #<bytecode -0xb5a436b6b7a019f>) :sort t :keymap (keymap (67108908 . counsel--info-lookup-symbol) (67108910 . counsel-find-symbol)) :initial-input "^" :caller counsel-M-x)
  counsel-M-x()
  funcall-interactively(counsel-M-x)
  call-interactively(counsel-M-x nil nil)
  command-execute(counsel-M-x)

Actualy I need to somehow connect traad with pyenv virtualenvs because I need to refator python 3.12.0 code. Is it possible?

Ubuntu 20.04 Emacs 28.1