Pyscripter does not

53 views
Skip to first unread message

JJ CC

unread,
Feb 1, 2024, 5:38:19 PMFeb 1
to PyScripter
Hi,

The PyScripter Interpreter seems to report back upon launch a script like below ***** when there is a syntax error.  It does not report what the error is and the line the error is on, but reports back with errors in the python library files!  I noticed the same issue in the previous version 4.2.5. My interpreter is configured to External, not remote, so I don't know why it reports back "remote"!
In Spyder, it reports back with something like this: AttributeError: 'QPushButton' object has no attribute 'setSdtyleSheet', etc, and includes the name and line number (not shown here)of my script file. 
What is going on here please because I can't use PyScripter properly at all!
Thanks.
Julian
*****************************************************************
Traceback (most recent call last):
  File "C:\Users\<username>\Documents\Appz\PyScripter-4.3.4-x64\Lib\rpyc.zip\rpyc\core\stream.py", line 214, in read
ConnectionResetError: [WinError 10054] An existing connection was forcibly closed by the remote host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\<username>\Documents\Appz\PyScripter-4.3.4-x64\Lib\rpyc.zip\rpyc\core\netref.py", line 208, in __call__
  File "C:\Users\<username>\Documents\Appz\PyScripter-4.3.4-x64\Lib\rpyc.zip\rpyc\core\netref.py", line 76, in syncreq
  File "C:\Users\<username>\Documents\Appz\PyScripter-4.3.4-x64\Lib\rpyc.zip\rpyc\core\protocol.py", line 471, in sync_request
  File "C:\Users\<username>\Documents\Appz\PyScripter-4.3.4-x64\Lib\rpyc.zip\rpyc\core\async_.py", line 95, in value
  File "C:\Users\<username>\Documents\Appz\PyScripter-4.3.4-x64\Lib\rpyc.zip\rpyc\core\async_.py", line 45, in wait
  File "C:\Users\<username>\Documents\Appz\PyScripter-4.3.4-x64\Lib\rpyc.zip\rpyc\core\protocol.py", line 387, in serve
  File "C:\Users\<username>\Documents\Appz\PyScripter-4.3.4-x64\Lib\rpyc.zip\rpyc\core\channel.py", line 50, in recv
  File "C:\Users\<username>\Documents\Appz\PyScripter-4.3.4-x64\Lib\rpyc.zip\rpyc\core\stream.py", line 223, in read
EOFError: [WinError 10054] An existing connection was forcibly closed by the remote host
Traceback (most recent call last):
  File "C:\Users\<username>\Documents\Appz\PyScripter-4.3.4-x64\Lib\rpyc.zip\rpyc\core\netref.py", line 152, in __getattribute__
  File "C:\Users\<username>\Documents\Appz\PyScripter-4.3.4-x64\Lib\rpyc.zip\rpyc\core\netref.py", line 76, in syncreq
  File "C:\Users\<username>\Documents\Appz\PyScripter-4.3.4-x64\Lib\rpyc.zip\rpyc\core\protocol.py", line 471, in sync_request
  File "C:\Users\<username>\Documents\Appz\PyScripter-4.3.4-x64\Lib\rpyc.zip\rpyc\core\protocol.py", line 492, in async_request
  File "C:\Users\<username>\Documents\Appz\PyScripter-4.3.4-x64\Lib\rpyc.zip\rpyc\core\protocol.py", line 477, in _async_request
  File "C:\Users\<username>\Documents\Appz\PyScripter-4.3.4-x64\Lib\rpyc.zip\rpyc\core\protocol.py", line 259, in _send
  File "C:\Users\<username>\Documents\Appz\PyScripter-4.3.4-x64\Lib\rpyc.zip\rpyc\core\channel.py", line 69, in send
  File "C:\Users\<username>\Documents\Appz\PyScripter-4.3.4-x64\Lib\rpyc.zip\rpyc\core\stream.py", line 233, in write
  File "C:\Users\<username>\Documents\Appz\PyScripter-4.3.4-x64\Lib\rpyc.zip\rpyc\core\stream.py", line 81, in __getattr__
EOFError: stream has been closed
>>>
*** Remote Interpreter Reinitialized ***
>>> 
*****************************************************************


Julian

PyScripter

unread,
Feb 1, 2024, 5:50:10 PMFeb 1
to PyScripter
 > My interpreter is configured to External, not remote,
What do you mean by that?   Run, External Run is a way of running scripts outside Pyscripter.  But otherwise under Run, Python Engine, there is no option "External".  So when you run the script by (Run, Run/Debug, or using the toolbar buttons) it appears that you are using the Remote Python Engine.  See the help topic "Remote Python Engines" for details. 

> when there is a syntax error

The error you are encountering is most likely a Run time error (AttributeError is a runtime error), which kills the running python engine.

Could you please post a minimal script that reproduces the issue you are having?
Reply all
Reply to author
Forward
0 new messages