-
Notifications
You must be signed in to change notification settings - Fork 33
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
Possible conflict with new version of Jedi, or unclear documentation #9
Comments
I stumbled onto the same issue. I tried reproducing the problem (on OS X, mind you):
While it now runs without complaining about not finding the module, I'm unsure if its actually working. The autocomplete sometimes flakes out, gives wrong suggestions. Not sure if that's Jedi, or its simply not working yet. |
ok, not sure how it is on OS X but looks like you copied the jedi module into the wrong directory (maybe it works the way you did it as well but I'm not sure. Can you show me a screenshot what wrong suggestions jedi made? (and what happens when you turn jedi of?) Normally you have to copy the jedi package into the code_autocomplete folder in the addons diretory.. |
I'm beginning to think Blender's OS X package installs things a bit differently. The 'jedi' folder was already in a "global" user preferences directory (that is, outside the Blender.app package, which is more or less a bundled directory). This is usually under So I replaced the empty directory with the full jedi folder. But then the Addon couldn't find the 'jedi' module when I tried enabling it in the User Preferences. After that, I tried moving the 'jedi' directory to here: Now the addon can find the jedi plugin, and appears to work. As far as it flaking out, I'm beginning to think I just don't understand the Blender Python API enough to judge it :P I'm going to try testing it in this existing configuration. Thanks Jacques! |
This seams like a separate issue and I don't know why it happens :/ Maybe you copied the jedi package in the wrong folder, here is how it looks on my pc: So you have to copy the complete jedi package into a folder called 'jedi' that is inside the Code Autocomplete main directory. |
Oh and yes. The addon creates this fake module because most of blenders python api is implemented in C -> not accesable by jedi. |
The documentation isn't quite clear on what code_autocomplete expects regarding Jedi. This is what it says:
The documentation mentioned that the jedi module is not included in the github download. I tried adding the jedi module to the download, copying the contents of the "jedi" subfolder into code_autocomplete's own "jedi" subfolder, but it gives this error and refuses to run:
Traceback (most recent call last): File "C:\Program Files\Blender Foundation\Blender\2.76\scripts\modules\addon_utils.py", line 324, in enable mod = __import__(module_name) File "C:\Users\HiddenUsername\AppData\Roaming\Blender Foundation\Blender\2.76\scripts\addons\code_autocomplete-master\__init__.py", line 45, in <module> modules = developer_utils.setup_addon_modules(__path__, __name__, "bpy" in locals()) File "C:\Users\HiddenUsername\AppData\Roaming\Blender Foundation\Blender\2.76\scripts\addons\code_autocomplete-master\developer_utils.py", line 39, in setup_addon_modules modules = import_submodules(names) File "C:\Users\HiddenUsername\AppData\Roaming\Blender Foundation\Blender\2.76\scripts\addons\code_autocomplete-master\developer_utils.py", line 30, in import_submodules modules.append(importlib.import_module("." + name, package_name)) File "C:\Program Files\Blender Foundation\Blender\2.76\python\lib\importlib\__init__.py", line 109, in import_module return _bootstrap._gcd_import(name[level:], package, level) File "C:\Users\HiddenUsername\AppData\Roaming\Blender Foundation\Blender\2.76\scripts\addons\code_autocomplete-master\jedi\__init__.py", line 41, in <module> from jedi.api import Script, Interpreter, NotFoundError, set_debug_function ImportError: No module named 'jedi'
I looked into my roaming appdata and it seems to be fine. Code_autocomplete's jedi folder has the contents of the jedi library (api, library, parser, init.py, etc...). If the problem is that I need to include the other root files/folders in the jedi git repository, I still get errors if I include those too. If I remove the jedi library, it installs fine but complains about the missing library.
Perhaps the documentation needs to be updated with what code_autocomplete expects from the user regarding how to include the jedi library? I would be happy to help write that. I just need to know the correct approach first. The other possibility is that jedi is no longer compatible with code_autocomplete or Blender, in which case the documentation should probably specify a working version.
The text was updated successfully, but these errors were encountered: