Skip to content
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

autocomplete-python traceback output #453

Open
ghost opened this issue Apr 24, 2021 · 22 comments
Open

autocomplete-python traceback output #453

ghost opened this issue Apr 24, 2021 · 22 comments

Comments

@ghost
Copy link

ghost commented Apr 24, 2021

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

Screenshot (2)

@ghost
Copy link

ghost commented Apr 30, 2021

I have the same problem. Who can help us?

@ghost
Copy link

ghost commented May 12, 2021

same as me here, it keeps on showing.

@austino3
Copy link

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.

@anthonymariniello
Copy link

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

@Abelink23
Copy link

Abelink23 commented May 24, 2021

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.

@ghost
Copy link

ghost commented May 26, 2021

Me too. How can I solve this issue? Please guide me.

@Maha-ali1233
Copy link

same issue. Someone help please

@devnarayanan
Copy link

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)

@pzmetz
Copy link

pzmetz commented Jul 6, 2021

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

@k8k8812
Copy link

k8k8812 commented Aug 13, 2021

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

@smzm
Copy link

smzm commented Aug 13, 2021

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

@ankursxna
Copy link

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.

@KosnIre
Copy link

KosnIre commented Sep 20, 2021

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.

@chhanda14
Copy link

It works. Problem solved.

@luisignaciomenendez
Copy link

luisignaciomenendez commented Nov 14, 2021

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

@Nour-Aldein2
Copy link

Nour-Aldein2 commented Jan 4, 2022

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

@githubmasoudkh
Copy link

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

@Blessedrajput
Copy link

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

@mus101
Copy link

mus101 commented Mar 11, 2022

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?

@PBMS4TECH
Copy link

pip install jedi

works for me

@Dariu7syd
Copy link

Hi ,you are Perfectly.. .

#453 (comment)

@bhargav3738
Copy link

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests