Trying to run Jedi on Python version 3.3 #123

nfaggian opened this Issue Feb 8, 2013 · 8 comments


None yet

5 participants

nfaggian commented Feb 8, 2013


This is probably just misuse of the library but I keep running into this problem (below) while trying to get SublimeJedi ported over to work in sublime text 3 (using Python 3.3).

Any hints?



File "/home/accounts/nfaggian/.config/sublime-text-3/Packages/SublimeJEDI/jedi/", line 1399, in follow_statement
File "/home/accounts/nfaggian/.config/sublime-text-3/Packages/SublimeJEDI/jedi/", line 1478, in follow_call_list
File "/home/accounts/nfaggian/.config/sublime-text-3/Packages/SublimeJEDI/jedi/", line 1493, in follow_call
File "/home/accounts/nfaggian/.config/sublime-text-3/Packages/SublimeJEDI/jedi/", line 1517, in follow_call_path
File "/home/accounts/nfaggian/.config/sublime-text-3/Packages/SublimeJEDI/jedi/", line 274, in strip_imports
except ImportError:
File "/home/accounts/nfaggian/.config/sublime-text-3/Packages/SublimeJEDI/jedi/", line 157, in follow
for module_loader, name, is_pkg in pkgutil.iter_modules(search_path):
File "/home/accounts/nfaggian/.config/sublime-text-3/Packages/SublimeJEDI/jedi/", line 234, in _follow_file_system
path = ns_path
File "/home/accounts/nfaggian/.config/sublime-text-3/Packages/SublimeJEDI/jedi/", line 216, in follow_str

File "X/", line 203, in find_module
File "X/", line 92, in join
TypeError: Can't mix strings and bytes in path components.


Yeah sorry, you have to be patient with 3.3. There's the PR #109 for that. The import system changed in Python 3.3 (now using importlib), which means that we should rewrite the import parts for 3.3.

I'm just so deep into refactoring certain Jedi parts, I don't really have the time to do that right now.

But if you have some spare time and like to contribute, just go forward. There's dev documentation here:

nfaggian commented Feb 8, 2013

Thanks David. I will see if I can find some time.


If you do, please read the comments in the PR (and maybe build your work upon it).

@freethebee freethebee referenced this issue in davidhalter/jedi-vim Feb 18, 2013

Python 3.3 issues #98

Astrac commented Mar 22, 2013

As a followup of srusskih/SublimeJEDI#18

I have a branch where I'm implementing python 3.3 support in

The status is almost working; I've a caching issue and two failing tests to go, any help will be appreciated!


Maybe @tkf can help? Unfortunately, I don't have time for debugging right now.

tkf commented Mar 22, 2013

@Astrac Why not submit a PR even before finishing the work? It makes easier for other people to write comments. I think @1st1 may be interested in also as he made a PR #109 for 3.3 sometime ago.

Astrac commented Mar 24, 2013

I think I got it, this is the PR: #187

I just noticed that some tests are not passing yet. I'm going to look into them; if anyone finds anything helpful it will be very appreciated.


Could be closed, too :)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment