Open FraserBell opened 1 year ago
Hi @FraserBell thank you for the feedback! I'm not totally sure what could be causing this but seems like this is a duplicate of https://github.com/spyder-ide/spyder-terminal/issues/330
Just in case, what happens if you try to access the server address with your browser?
I will move this to the spyder-terminal repo for the moment, but if you get more info in order to better understand this let us know!
I have the same problem. The terminal is accessible in browser but spyder fails to connect (Python 3.9, Python 3.10, spyder 5.3.3, spyder-terminal 1.2.2).
From the logs seems like the websocket is being closed. If the problem is related with the websocket handling maybe is related with the terminado
version you have installed? What terminado
version do you have installed @mhechthz @FraserBell ? What happens if you try to downgrade to terminado
0.13.3 ?
terminado==0.17.0 ... with terminado 0.13.3 it's the same problem. Terminal can be accessed via browser but not from Spyder.
What was the command to generate error log files? there is no documentation on this? ... found it: spyder --debug-info minimal
by the way: issue https://github.com/spyder-ide/spyder-terminal/issues/324 and https://github.com/spyder-ide/spyder-terminal/issues/203 are the same.
Thanks for the new info @mhechthz! I'm not sure what could be happening there sorry :/
The other piece of log that is interesting from the OP is the code 404 for the main.bundle.js
- 2022-10-24 15:35:08 8afbf8f0.st-andrews.ac.uk tornado.access[12256] WARNING 404 GET /main.bundle.js (127.0.0.1) 258.44ms
🤔
Also, thanks for the feedback around all issue, will close them as superseded by this one :+1:
You forgot 203 ;)
I had the same problem. Obviously, in my case it was due to the environment variable HTTP_PROXY
that was set.
After I remove the variable, the terminal in Spyder works again.
Description
What steps will reproduce the problem?
Upon opening the application the following message occurs: "Terminal server could not be located at http://127.0.0.1:8071, please restart Spyder on debugging mode and open an issue with the contents of...sypder_terminal_out.log and ...spyder_terminal_err.log files at https://github...
spyder_terminal_out.log is blank
spyder_terminal_err.log: No QCoreApplication instance found. Application patches not applied. You have to call load_stylesheet function after instantiation of QApplication to take effect. 2022-10-24 15:35:06 8afbf8f0.st-andrews.ac.uk main[12256] INFO Server is now at: 127.0.0.1:8071 2022-10-24 15:35:06 8afbf8f0.st-andrews.ac.uk main[12256] INFO Shell: /bin/bash 2022-10-24 15:35:08 8afbf8f0.st-andrews.ac.uk tornado.access[12256] INFO 200 GET / (127.0.0.1) 11.33ms 2022-10-24 15:35:08 8afbf8f0.st-andrews.ac.uk tornado.access[12256] INFO 200 GET /static/css/ubuntu.css (127.0.0.1) 19.97ms 2022-10-24 15:35:08 8afbf8f0.st-andrews.ac.uk tornado.access[12256] INFO 200 GET /static/css/style.css (127.0.0.1) 9.13ms 2022-10-24 15:35:08 8afbf8f0.st-andrews.ac.uk tornado.access[12256] INFO 200 GET /static/components/xterm.js/src/xterm.css (127.0.0.1) 24.58ms 2022-10-24 15:35:08 8afbf8f0.st-andrews.ac.uk tornado.access[12256] INFO 200 GET /static/components/jquery/dist/jquery.min.js (127.0.0.1) 71.46ms 2022-10-24 15:35:08 8afbf8f0.st-andrews.ac.uk tornado.access[12256] INFO 200 GET /static/build/main.bundle.js (127.0.0.1) 211.84ms 2022-10-24 15:35:08 8afbf8f0.st-andrews.ac.uk tornado.access[12256] WARNING 404 GET /main.bundle.js (127.0.0.1) 258.44ms 2022-10-24 15:35:08 8afbf8f0.st-andrews.ac.uk tornado.access[12256] INFO 200 GET /static/css/fonts/ubuntumono-regular-webfont.woff2 (127.0.0.1) 20.54ms 2022-10-24 15:35:08 8afbf8f0.st-andrews.ac.uk spyder_terminal.server.rest.term_rest[12256] INFO CWD: /Users/fraserbell 2022-10-24 15:35:08 8afbf8f0.st-andrews.ac.uk spyder_terminal.server.rest.term_rest[12256] INFO Size: (156, 42) 2022-10-24 15:35:08 8afbf8f0.st-andrews.ac.uk tornado.access[12256] INFO 200 POST /api/terminals?cols=156&rows=42 (127.0.0.1) 53.20ms 2022-10-24 15:35:08 8afbf8f0.st-andrews.ac.uk tornado.access[12256] WARNING 404 GET /favicon.ico (127.0.0.1) 3.01ms 2022-10-24 15:35:08 8afbf8f0.st-andrews.ac.uk tornado.access[12256] INFO 101 GET /terminals/bafd68 (127.0.0.1) 0.81ms 2022-10-24 15:35:08 8afbf8f0.st-andrews.ac.uk spyder_terminal.server.websockets.term_ws[12256] INFO WebSocket opened: bafd68 2022-10-24 15:35:08 8afbf8f0.st-andrews.ac.uk spyder_terminal.server.websockets.term_ws[12256] INFO TTY On! 2022-10-24 15:35:14 8afbf8f0.st-andrews.ac.uk spyder_terminal.server.websockets.term_ws[12256] INFO TTY Off! 2022-10-24 15:35:14 8afbf8f0.st-andrews.ac.uk spyder_terminal.server.websockets.term_ws[12256] INFO WebSocket closed: bafd68 2022-10-24 15:35:14 8afbf8f0.st-andrews.ac.uk terminado.management[12256] INFO Websocket closed, sending SIGHUP to terminal. 2022-10-24 15:35:14 8afbf8f0.st-andrews.ac.uk terminado.management[12256] INFO EOF on FD 17; stopping reading
Versions
Dependencies