-
Notifications
You must be signed in to change notification settings - Fork 109
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
Lookup Error, Could not get version information for 'python' #326
Comments
I am very late to the party, huh... but I had faced the same issue. The most awful solution I came up with is to comment out some lines in Jedi modules themselves. In def pickle_load(file):
try:
# if is_py3: # <-- line 395
# return pickle.load(file, encoding='bytes')
return pickle.load(file)
# Python on Windows don't throw EOF errors for pipes. So reraise them with
# the correct type, which is caught upwards.
except OSError:
if sys.platform == 'win32':
raise EOFError()
raise In # py2 sends bytes via pickle apparently?!
# if self.version_info.major == 2: # <-- line 99
# self.executable = self.executable.decode()
# self.path = self.path.decode()
# Adjust pickle protocol according to host and client version.
self._subprocess._pickle_protocol = highest_pickle_protocol([
sys.version_info, self.version_info]) Before doing these changes, make sure that your After that, autocompletion should start working as intended, but its speed is sorta sluggish. Better than nothing, still... |
More 'updates' on the problem. With my own 'fix' the plugin works for a while, but some time after it may explode in very long traceback... and I have no idea how to fix this for real or at least mitigate. UPD: or I have an idea! But I'm not sure if this change affects Python 3.x scenarios. def pickle_load(file):
try:
if is_py3:
return pickle.load(file, encoding='latin-1') # <-- line 396
return pickle.load(file)
# Python on Windows don't throw EOF errors for pipes. So reraise them with
# the correct type, which is caught upwards.
except OSError:
if sys.platform == 'win32':
raise EOFError()
raise Speaking of |
Hi All,
I am still a beginner, so bear with me. My immediate problem is that am having trouble getting Jedi to autocomplete for python 2.7.16, but the ultimate goal is to set up Sublime Text to develop IronPython code that will ultimately be run in Rhino.
I have just done a clean install of Sublime Text 4 and Jedi v0.18.0, as well as a clean install of Python 2.7.16. Here is a complete print-out from the console that I receive when I try to test Jedi autocomplete:
Here is a screenshot of Sublime Text 4, so you can see what I see:

And here is a link to the stubs that I am ultimately trying to use. It seems like I need to get Jedi working on standard python autocomplete before attempting to get the stubs to work though.... More info here
The text was updated successfully, but these errors were encountered: