Skip to content

autocomplete-python traceback output #453

Open

Description

Getting this thing when I type a letter or a variable
Traceback (most recent call last):

Screenshot (2)

Activity

  1. austino3 commented on May 17, 2021

    @austino3

    I have the same problem. Installed the package, and the first thing that happened when I started typing was this error: "autocomplete-python traceback output". It refers to line 8...
    Your code is broken, dev. Pretty lame.

  2. anthonymariniello commented on May 19, 2021

    @anthonymariniello

    Same issues here.
    Line 8 refers to a Jedi call which if you don't have Jedi installed will fail.
    The Jedi Pip install on my Windows if failing with
    ERROR: Could not install packages due to an OSError: [Errno 2] No such file or directory: 'C:\Users\\AppData\Local\Packages\PythonSoftwareFoundation.Python.3.9_qbz5n2kfra8p0\LocalCache\local-packages\Python39\site-packages\jedi\third_party\django-stubs\django-stubs\contrib\contenttypes\management\commands\remove_stale_contenttypes.pyi'

    Suggest you guys try pip install jedi and see what happens for you

  3. Abelink23 commented on May 24, 2021

    @Abelink23

    Same problem here.
    I have played with compatibility issues between Python (3.8.5), jedi (0.17.2), ipykernel (5.3.4) -- all installed through Anaconda -- being forced to use that jedi version in Atom (1.57.0) in order to be able to run other packages which I need. I suspect jedi 0.18 could solve this issue but nobody in the thread provided information regarding their package versions.

  4. Maha-ali1233 commented on Jun 9, 2021

    @Maha-ali1233

    same issue. Someone help please

  5. devnarayanan commented on Jul 3, 2021

    @devnarayanan

    If autocomplete-python in Atom not working with Python 3.7 In windows, go to:

    C:\Users\username.atom\packages\autocomplete-python\lib\jedi\parser

    Or in linux:

    cd ~/.atom/packages/autocomplete-python/lib/jedi/parser

    Duplicate file named "grammar3.6.txt" and change it to "grammar3.7.txt"

    It's worked for me with python 3.7! (WINDOWS)

  6. pzmetz commented on Jul 6, 2021

    @pzmetz

    And does anyone know this for Mac. I have very little experience, so not sure how to get rid of this issue.

  7. k8k8812 commented on Aug 13, 2021

    @k8k8812

    same here. I'm a Mac user too. it's not working properly

  8. smzm commented on Aug 13, 2021

    @smzm

    It seems related to importing Jedi.

    1- Fix the import issue error:
    https://stackoverflow.com/questions/63331116/python-3-6-8-jedi-importerror-cannot-import-name-traverse-parents

    You can use pip3 install -e git://github.com/davidhalter/jedi.git#egg=jedi for reinstalling Jedi

    2- Use Jedi 0.17.2 (Release History) :

    pip install jedi==0.17.2

  9. ankursxna commented on Aug 17, 2021

    @ankursxna

    It seems related to importing Jedi.

    1- Fix the import issue error:
    https://stackoverflow.com/questions/63331116/python-3-6-8-jedi-importerror-cannot-import-name-traverse-parents

    You can use pip3 install -e git://github.com/davidhalter/jedi.git#egg=jedi for reinstalling Jedi

    2- Use Jedi 0.17.2 (Release History) :

    pip install jedi==0.17.2

    Thanks @smzm installing jedi worked for me. For reference, I am on windows and did exactly pip install jedi==0.17.2 as suggested above.

  10. KosnIre commented on Sep 20, 2021

    @KosnIre

    jedi is listed as a requirement in the README file for this project.

    However, since more than a few users are running into this problem, it seems like a reasonable solution would be to improve the reported error to guide beginners.

    Adding something like this to completion.py may help:

    try:
        import jedi
    except ImportError:
        jedi = None
    
    if jedi is None:
            raise ImportError('autocomplete-python requires jedi; please ensure jedi is installed')

    You could then handle the stderr message in this section to show an appropriate notification in the atom UI.

  11. chhanda14 commented on Oct 11, 2021

    @chhanda14

    It works. Problem solved.

  12. luisignaciomenendez commented on Nov 14, 2021

    @luisignaciomenendez

    I have the same issue using Python 3.10.0. I have installed Jedi via pip install jedi==0.17.2 and the traceback error appears every time I write something on the script. I had no issues but something happened after I updated python to the last version. Any help?

    PS: I am using mac under atom version 15.58.0

  13. Nour-Aldein2 commented on Jan 4, 2022

    @Nour-Aldein2

    I have the same issue using Python 3.10.0. I have installed Jedi via pip install jedi==0.17.2 and the traceback error appears every time I write something on the script. I had no issues but something happened after I updated python to the last version. Any help?

    PS: I am using mac under atom version 15.58.0

    Try to install jedi manually, you can use:
    git clone --recurse-submodules https://github.com/davidhalter/jedi
    cd jedi
    sudo python setup.py install

  14. githubmasoudkh commented on Jan 30, 2022

    @githubmasoudkh

    thanks guys , it works for me after do this:

    It seems related to importing Jedi.
    
    1- Fix the import issue error:
    https://stackoverflow.com/questions/63331116/python-3-6-8-jedi-importerror-cannot-import-name-traverse-parents
    
        You can use pip3 install -e git://github.com/davidhalter/jedi.git#egg=jedi for reinstalling Jedi
    
    2- Use Jedi 0.17.2 (Release History) :
    
        pip install jedi==0.18.1
    
  15. Blessedrajput commented on Feb 18, 2022

    @Blessedrajput

    Had the same issue, what worked for me was installing jedi by:
    pip install jedi

  16. mus101 commented on Mar 11, 2022

    @mus101

    It seems related to importing Jedi.

    1- Fix the import issue error: https://stackoverflow.com/questions/63331116/python-3-6-8-jedi-importerror-cannot-import-name-traverse-parents

    You can use pip3 install -e git://github.com/davidhalter/jedi.git#egg=jedi for reinstalling Jedi

    2- Use Jedi 0.17.2 (Release History) :

    pip install jedi==0.17.2

    this does not work for me. any ideas why?

  17. PBMS4TECH commented on Mar 19, 2022

    @PBMS4TECH

    pip install jedi

    works for me

  18. Dariu7syd commented on Jul 18, 2022

    @Dariu7syd

    Hi ,you are Perfectly.. .

    #453 (comment)

  19. bhargav3738 commented on Aug 18, 2022

    @bhargav3738

    I had the same problem, but it is solved now

    just go to cmd and write pip install jedi and error was gone
    try it

  20. added a commit that references this issue on Sep 15, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions