Registry / testing / jedi
library0.20.0pypypi✓ verified 24d ago

Jedi is a static analysis tool for Python, primarily used for autocompletion and goto functionality in IDEs and editor plugins. It also offers features like refactoring, code search, and finding references. The current version is 0.19.2, released on November 10, 2024. Jedi follows a regular release cadence, with updates approximately every 6-12 months.

pip install jedi
INSTALL
IMPORT
SIG · JEDI
J
jedi
testingpythonv0.20.0
Install
2.7s avg
Import
337ms
Disk
46MB
Pass rate
10/ 10
Env Coverage10 / 10
glibc
3.93.13
musl
3.93.13
Install & Compatibility
Where this runs
tested against v0.20.0 · pip install
no network on importno background threads
Install × environment matrix
Each cell = how many times install + import succeeded across repeated harness runs. Partial = flaky.
glibc = Debian/Ubuntu slim · musl = Alpine Linux
musl
py 3.103.95 runs
installs and imports cleanly · install 0.0s · import 0.364s · 52.6MB
glibc
py 3.103.95 runs
installs and imports cleanly · install 2.7s · import 0.310s · 53MB
46MB installed
● package 46MB
Code
Verified usage

Verified import paths — ran on the pinned version, not inferred.

Script
from jedi import Script
Ensure correct import path to avoid ImportError

A simple example demonstrating Jedi's autocompletion feature.

import jedi source = ''' import json json.lo ''' script = jedi.Script(source, path='example.py') completions = script.complete(3, len('json.lo')) print(completions[0].name)
Debug
Known issues
breakingDeprecation of Python 2 support in version 0.16.0
fix
Upgrade to Python 3.6 or later.
affects: 0.16.0
gotchaUse of deprecated 'completions' method in version 0.16.0
fix
Use the 'complete' method instead.
breakingUnspecified failure during library load process.
fix
Review the full test logs for detailed error messages or stack traces leading to the 'load' event to identify the root cause.
affects: unknown
Errors
Common errors & fixes
ModuleNotFoundError: No module named 'jedi'
The 'jedi' package is not installed in the Python environment being used, or the Python environment where it is installed is not correctly configured in the IDE/editor.
fix
Ensure 'jedi' is installed in your active Python environment: `pip install jedi` or `python -m pip install jedi`.
AttributeError: module 'jedi' has no attribute 'Script'
This typically occurs when an outdated or incompatible version of 'jedi' is installed, or when there's a conflict in the Python environment leading to the wrong 'jedi' module being loaded. The `Script` class might have moved or been removed in a newer major version, or the installed `jedi` is too old for the code trying to use `Script`.
fix
Upgrade 'jedi' to the latest version: `pip install --upgrade jedi`. If the issue persists, ensure no conflicting 'jedi' installations exist and try reinstalling it: `pip uninstall jedi && pip install jedi`.
ImportError: cannot import name 'traverse_parents'
This error points to an internal inconsistency or version mismatch within the 'jedi' library or its dependencies, often due to a partial or corrupted installation, or an incompatibility with the Python version being used.
fix
Reinstall 'jedi' to ensure all its components are consistent: `pip uninstall jedi && pip install jedi`. If using a specific editor plugin (like jedi-vim), ensure it's compatible with your installed Python and jedi versions.
AttributeError: module 'typing' has no attribute '_SpecialForm'
This error often arises from a compatibility issue between the 'jedi' library (or its components like 'jedi-language-server') and the `typing` module, particularly with older Python versions or specific setups where `typing` might be backported or have an unexpected structure.
fix
Update `jedi` and any related language server components to their latest versions: `pip install --upgrade jedi jedi-language-server`. Consider ensuring your Python environment is up-to-date, especially if you are using an older Python 3.x version.
Upgrade
Version history
0.20.0latest on PyPI · released May 1, 2026
Audit
Dependencies
pytestoptionalRequired for running the test suite
Agent activity
11 hits · last 30 days
node
10
Resources
jedi — pip install jedi · libregistry