You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Reproduced the issue after updating with conda update spyder (or pip, if not using Anaconda) [this caused the issue to appear!]
Could not reproduce inside jupyter qtconsole (if console-related) [not applicable]
Tried basic troubleshooting (if a bug/error)
Restarted Spyder
Reset preferences with spyder --reset
Reinstalled the latest version of Anaconda[na: using pip or standalone]
Tried the other applicable steps from the Troubleshooting Guide
Completed the Problem Description, Steps to Reproduce and Version sections below
Problem Description
On Windows 10, after updating from Spyder 5.4.0 to 5.4.1, if there exist any Windows environment variable with non-ASCII characters (e.g. accented letters), Spyder starts the splash screen, then it disappears and does not open.
Running from console, results in UnicodeDecodeError in parsing the environment variable as read from stdout.
Removing the environment variable with non-ASCII chars solves the issue.
What steps reproduce the problem?
Add (if not already present) any Windows environment variable with a non-ASCII character. E.g. ASD = à. My system is using CP850, not sure if all codepages can reproduce the issue.
Start Spyder (from Start menu or cmd or Powershell).
Spyder spash screen appears and then disappears, Spyder does not load.
What is the expected output? What do you see instead?
C:\Users\alex8>python C:\Users\alex8\AppData\Local\Programs\Python\Python311\Lib\site-packages\spyder\app\start.py
fromIccProfile: failed minimal tag size sanity
Traceback (most recent call last):
File "C:\Users\alex8\AppData\Local\Programs\Python\Python311\Lib\site-packages\spyder\app\start.py", line 270, in <module>
main()
File "C:\Users\alex8\AppData\Local\Programs\Python\Python311\Lib\site-packages\spyder\app\start.py", line 252, in main
mainwindow.main(options, args)
File "C:\Users\alex8\AppData\Local\Programs\Python\Python311\Lib\site-packages\spyder\app\mainwindow.py", line 1822, in main
mainwindow = create_window(MainWindow, app, splash, options, args)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "C:\Users\alex8\AppData\Local\Programs\Python\Python311\Lib\site-packages\spyder\app\utils.py", line 289, in create_window
main.setup()
File "C:\Users\alex8\AppData\Local\Programs\Python\Python311\Lib\site-packages\spyder\app\mainwindow.py", line 773, in setupPLUGIN_REGISTRY.register_plugin(self, PluginClass,
File "C:\Users\alex8\AppData\Local\Programs\Python\Python311\Lib\site-packages\spyder\api\plugin_registration\registry.py", line 342, in register_plugin
instance =self._instantiate_spyder5_plugin(
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "C:\Users\alex8\AppData\Local\Programs\Python\Python311\Lib\site-packages\spyder\api\plugin_registration\registry.py", line 184, in _instantiate_spyder5_plugin
plugin_instance = PluginClass(main_window, configuration=CONF)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "C:\Users\alex8\AppData\Local\Programs\Python\Python311\Lib\site-packages\spyder\api\plugins\new_api.py", line 331, in __init__
container.setup()
File "C:\Users\alex8\AppData\Local\Programs\Python\Python311\Lib\site-packages\spyder\plugins\pythonpath\container.py", line 55, in setupself._load_pythonpath()
File "C:\Users\alex8\AppData\Local\Programs\Python\Python311\Lib\site-packages\spyder\plugins\pythonpath\container.py", line 136, in _load_pythonpath
system_path = get_system_pythonpath()
^^^^^^^^^^^^^^^^^^^^^^^
File "C:\Users\alex8\AppData\Local\Programs\Python\Python311\Lib\site-packages\spyder\plugins\pythonpath\utils.py", line 31, in get_system_pythonpath
env = get_user_env()
^^^^^^^^^^^^^^
File "C:\Users\alex8\AppData\Local\Programs\Python\Python311\Lib\site-packages\spyder\utils\environ.py", line 71, in get_user_env
env_dict = get_user_environment_variables()
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "C:\Users\alex8\AppData\Local\Programs\Python\Python311\Lib\site-packages\spyder\utils\environ.py", line 60, in get_user_environment_variables
res = stdout.decode().strip().split(os.linesep)
^^^^^^^^^^^^^^^UnicodeDecodeError: 'utf-8' codec can't decode byte 0x85 in position 76: invalid start byte
Versions
Spyder version: 5.4.1 (pip) [reproducible also with standalone Spyder]
Python version: 3.11.1 64-bit [reproducible also in 3.10]
Qt version: 5.15.2
PyQt version: 5.15.7
Operating System name/version: Windows 10 Home, 22H2, build 19045.2364
Hey @alessandro-soldati, thanks for reporting. This is a duplicate of #20309 and it'll be fixed in our next version (5.4.2), to be released by the end of the week.
Issue Report Checklist
conda update spyder
(orpip
, if not using Anaconda) [this caused the issue to appear!]jupyter qtconsole
(if console-related) [not applicable]spyder --reset
Problem Description
On Windows 10, after updating from Spyder 5.4.0 to 5.4.1, if there exist any Windows environment variable with non-ASCII characters (e.g. accented letters), Spyder starts the splash screen, then it disappears and does not open.
Running from console, results in
UnicodeDecodeError
in parsing the environment variable as read from stdout.Removing the environment variable with non-ASCII chars solves the issue.
What steps reproduce the problem?
ASD = à
. My system is using CP850, not sure if all codepages can reproduce the issue.What is the expected output? What do you see instead?
Expected: Spyder opens.
Achieved: Spyder spash screen disappears, Spyder not loaded.
Paste Traceback/Error Below (if applicable)
Versions
Dependencies
The text was updated successfully, but these errors were encountered: