Trying to run Jedi on Python version 3.3 #123

Closed
nfaggian opened this Issue Feb 8, 2013 · 8 comments

Projects

None yet

5 participants

@nfaggian
nfaggian commented Feb 8, 2013

Hi,

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?

Cheers,

Nathan

File "/home/accounts/nfaggian/.config/sublime-text-3/Packages/SublimeJEDI/jedi/evaluate.py", line 1399, in follow_statement
File "/home/accounts/nfaggian/.config/sublime-text-3/Packages/SublimeJEDI/jedi/evaluate.py", line 1478, in follow_call_list
File "/home/accounts/nfaggian/.config/sublime-text-3/Packages/SublimeJEDI/jedi/evaluate.py", line 1493, in follow_call
File "/home/accounts/nfaggian/.config/sublime-text-3/Packages/SublimeJEDI/jedi/evaluate.py", line 1517, in follow_call_path
File "/home/accounts/nfaggian/.config/sublime-text-3/Packages/SublimeJEDI/jedi/imports.py", line 274, in strip_imports
except ImportError:
File "/home/accounts/nfaggian/.config/sublime-text-3/Packages/SublimeJEDI/jedi/imports.py", 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/imports.py", line 234, in _follow_file_system
path = ns_path
File "/home/accounts/nfaggian/.config/sublime-text-3/Packages/SublimeJEDI/jedi/imports.py", line 216, in follow_str

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

@davidhalter
Owner

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:
http://jedi.jedidjah.ch/en/dev/docs/development.html

@nfaggian
nfaggian commented Feb 8, 2013

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

@davidhalter
Owner

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
Closed

Python 3.3 issues #98

@Astrac
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 https://github.com/Astrac/jedi/tree/python-3.3

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

@davidhalter
Owner

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

@tkf
Collaborator
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
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.

@schlamar

Could be closed, too :)

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