pythonic-emacs / anaconda-mode

Code navigation, documentation lookup and completion for Python.
GNU General Public License v3.0
707 stars 87 forks source link

pythonic-activate can't understand path with tilde(~) #383

Closed n-wen closed 4 years ago

n-wen commented 4 years ago

Hi, I met trouble with pythonic-activate, it looks like Jedi can't understand the tilde symbol. Trackback as below:

Traceback (most recent call last):
  File "<string>", line 84, in <module>
  File "/Users/wenning/.emacs.d/anaconda-mode/0.1.13/jedi-0.15.1-py2.7.egg/jedi/api/environment.py", line 355, in create_environment
    return Environment(_get_executable_path(path, safe=safe))
  File "/Users/wenning/.emacs.d/anaconda-mode/0.1.13/jedi-0.15.1-py2.7.egg/jedi/api/environment.py", line 368, in _get_executable_path
    raise InvalidPythonEnvironment("%s seems to be missing." % python)
jedi.api.environment.InvalidPythonEnvironment: ~/project/ytys/play/play_project/venv/bin/python seems to be missing.

So if I change the path to the absolute path, it works; But it's not convenient, is there anything I miss? Thanks

CeleritasCelery commented 4 years ago

This has been fixed upstream in pythonic. Please test.