spyder-ide / spyder-terminal

Run system terminals inside Spyder. Works on Linux, macOS and Windows.
MIT License
230 stars 78 forks source link

Missing import in confpage.py #239

Closed pkars closed 3 years ago

pkars commented 4 years ago

Description of your problem

Terminal plugin raises an error when opening Spyder preferences window. The issue is in confpage.py:

  File "[removed]/spyder_terminal/confpage.py", line 50, in setup_page
    elif sys.platform.startswith('linux'):
NameError: name 'sys' is not defined

This prevents setting terminal preferences, too. Adding import sys to the file fixes the problem.

What steps will reproduce the problem?

  1. Use Linux
  2. Open Preferences

Versions and main components

steff456 commented 3 years ago

Hi @pkars this issue is fixed by #201 and included in the latest release 4.2, to update please type in a console,

conda update spyder
conda install spyder-terminal -c spyder-ide