-
-
Notifications
You must be signed in to change notification settings - Fork 1.6k
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
KeyboardInterrupt shows up when Spyder starts #8022
Comments
Maybe it is my installation (here at home through pip) because I've tried other revisions without much success (but many different errors). I really don't know what to do. Thanks. |
Strangely after closing the error report, the ipython console is working, the menu as well. But as soon as I press a key in the editor, everything freeze. |
Here is the full output of --debug. It seems that rope (0.11.0) & jedi (0.3.1) have issues Executing Spyder from source checkout
[python] LSP-Client <=== [python] LSP-Client ===> [python] LSP-Client <=== [python] LSP-Client ===> [python] LSP-Client ===> [python] LSP-Client ===> |
Please revert to the Rope 0.10.7 and Jedi 0.12.1 and try again. |
No it does not work, same issue. Thanks for the try. |
This looks like an issue with the old completion architecture, but only on Windows because I can't reproduce it on Linux. It should be fixed by PR #8004. |
@sylvain-bougnoux, please try again with our latest master. |
It does not! I will check the path. What about this error ? I've tried to reinstall PyQt5 but no success. Hum. |
It definitely seems an error in Qt/QWebEngine: so it's probably related to your video card drivers. What is your PyQt5 version? |
Last one 5.11.3, but I've tried with others, same issue with spyder (maybe not with this error). I did |
Please downgrade to 5.9.2 and try again. |
@sylvain-bougnoux What is you version of I cannot manage to make introspection works if the version is higher than 0.19, either on my pip or Anaconda install on Windows 10 and python 3.6. |
Downgrading python-language-server to 0.19.0 works (whatever PyQt5), merci JS. |
@sylvain-bougnoux Glad it worked, because this means I am not alone with this problem! I think I would like to leave this opened until we can find a fix to be able to use the latest
I think this means this is not going to be easy to fix... I'm almost hoping that it doesn't work on @ccordoba12's Windows box too lol @ccordoba12 Do you think there is a link with those 2 tests we have skipped on AppVeyor in PR #7792? Maybe the error were legit after all? |
I'm asking about PyQt version because when I install the @sylvain-bougnoux At works, Spyder doesn't crash, but does introspection works? |
Here is what I did:
Then, I can see that pyls kicks of quite rapidly, but then, Spyder becomes irresponsible and I need to hard kill it. I also get this traceback: Traceback (most recent call last):
File "C:\Users\User\spyder\spyder\utils\syntaxhighlighters.py", line 227, in highlightBlock
self.highlight_block(text)
File "C:\Users\User\spyder\spyder\utils\syntaxhighlighters.py", line 524, in highlight_block
match = self.PROG.search(text, match.end())
KeyboardInterrupt
Connecting signal... Then,
Makes everything works fine again |
Interesting fact: Spyder, Ipython console, and pyls start waaaaay faster on my Anaconda install than on my pip install. Both are using |
This seems a problem with the latest pyls: palantir/python-language-server#434 and that's why using older versions makes it work again. |
@jnsebgosselin Good point, actually it does not. Downgrading to 0.19.0 does not make it work either. I must have missed an installation step? |
You need to make sure, if you restarted Spyder, that there is no background processes running in the Windows task manager, or else, introspection won't work. See Issue #7796. |
@jnsebgosselin hum, when I close spyder all Python instance disappear. But when I relaunch it I got 4 instances (see below), with a mix of 32 & 64 version (!). Does introspection should work then? For me it does not, whatever the version (0.19 or 0.21.2). |
I think it should work... The problem is when there is a background process remaining in the Also, if you are running on master, be sure to get the latest version, because a lot of things were fixed in the latest PR. Try starting Spyder in debug mode. Sometimes, it is working better, but I do not know why. Also this allow Finally, make sure that |
On a site note, introspection is working a lot better on my Anaconda install than on my pip install... It is not even comparable. I do not know why. |
I've checked 'Background processes' as well (& window processes) no python instance. But I updated master (I was 8 days behind). It crashed. Currently
|
This is good news!
Excellent, this seems to reinforce the hypotheses that the issue I've reported in #7796 is specific to my installation.
My personal experience with this since the new PLS has been implemented is that this is a on or off issue. It works or it doesn't. But I may be wrong.
I think @ccordoba12 is working to fix this in PR #7734 |
We need to disable |
The easy way is to configure
This could be created by spyder, possibly with optional ignore. |
I can confirm the problem specifically starts with 0.21.0 on Windows, since 0.20 is unaffected as well in my testing while 0.21.0 produced the crash on startup. I also observed the |
On my laptop, with 0.21.0, Spyder simply crashes. With 0.20, it doesn't, but I can't get introspection to work... only with 0.19 am I able to make this work, either with my pip or Anaconda install. |
I don't believe I ever got it working on 0.20, but I'm not 100% sure. The problem on 0.19.0, when it occurred, outwardly appeared the same as on 0.20 (no introspection/completion at all on startup), but it only happened some of the time even in the same env, versions and even console window, particularly after I'd just upgraded/downgraded/reinstalled pyls with |
Description
What steps will reproduce the problem?
The IDE pops up but crashes before finishing installation.
I started 'bootstrap reset' without success as well.
I add to 'pip install autoped8 yasf' otherwise there was error in lsp_server_logfile.log. This is not in requirements.txt.
python bootstrap.py debug
Executing Spyder from source checkout
Revision 324ca58, Branch: master
[Python 3.6.5 64bits, Qt 5.9.3, PyQt5 5.9.2 on Windows]
Bootstrap completed in 00:00:00.8743
Traceback
Versions
Dependencies
The text was updated successfully, but these errors were encountered: