Skip to content

Possible conflict with new version of Jedi, or unclear documentation #9

@Jellybit

Description

@Jellybit

The documentation isn't quite clear on what code_autocomplete expects regarding Jedi. This is what it says:

When there is a error message Jedi library not found you have to use another .zip file in the beginning. Direct download from the github page is not supported, because the Jedi library is a submodule which isn’t included in these downloads. You can either use an official release or use git to download the repository and its submodules.

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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions