-
-
Notifications
You must be signed in to change notification settings - Fork 511
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
I found a question, please answer :) #1301
Comments
Forgot to replenish the operating environment, sorry······ |
I just upgraded the version of parso, it is now the latest version '0.3.4' I got a lot of specific error messages File "C:\Users\DELL\AppData\Roaming\Python\Python36\site-packages\parso\cache.py", line 91, in load_module During handling of the above exception, another exception occurred: Traceback (most recent call last): |
Sorry, there is so much information, but I really hope someone can help me... This file is real and I can open it... |
Is my understanding of jedi not enough? I really hope someone can help me... |
Try to clear the Jedi/Parso cache. That might help. Otherwise, I wouldn't use the _analysis function, it's not maintained at the moment and there's a reason it's not public. I hope to make it work one day, but that is at least 3 years away. So not sure if that's ever going to happen. |
Thank you very much for your answer. ^_^ |
I should have realized earlier that it is a non-public method······ |
I will close I guess. The first dependency for this would probably be #1059. |
I want to use jedi's analysis function, but found the problem.
The next py file(test.py) needs to be analyzed:
import pandas as pd
def read():
data = pd.read_excel('C:\Users\DELL\Desktop\iexcel.xlsx',sheet_name='Sheet1')
print(data)
The analysis code I wrote is:
import jedi
script = jedi.Script(source=None, path='test.py')
errors = set(repr(e) for e in script._analysis())
The error message is : "Ran out of input"
i think the codes in test.py are correct, but i don't konw why the Analysis results will be given an error.
Please give me some advice, I don't know if this is the cause of my mistake······
thanks a lot 👍
The text was updated successfully, but these errors were encountered: