Bugzilla – Bug 1148568
Spyder 3.3.4-2.1 crashes on startup
Last modified: 2020-03-25 07:36:47 UTC
On Tumbleweed snapshot 20190824, Spyder 3.3.4-2.1 crashes on startup with with the following log event: File "/usr/lib/python2.7/site-packages/spyder/plugins/editor.py", line 592, in visibility_changed SpyderPluginWidget.visibility_changed(self, enable) File "/usr/lib/python2.7/site-packages/spyder/plugins/__init__.py", line 429, in visibility_changed self.refresh_plugin() # To give focus to the plugin's widget File "/usr/lib/python2.7/site-packages/spyder/plugins/editor.py", line 604, in refresh_plugin editorstack.refresh() File "/usr/lib/python2.7/site-packages/spyder/widgets/editor.py", line 2030, in refresh self.__modify_stack_title() File "/usr/lib/python2.7/site-packages/spyder/widgets/editor.py", line 2011, in __modify_stack_title for index, finfo in enumerate(self.data): UnicodeEncodeError: 'ascii' codec can't encode character u'\u2014' in position 15: ordinal not in range(128)
This seems like a related bug: https://github.com/spyder-ide/spyder/issues/9811
What's your $LANG setting?
(In reply to Hans-Peter Jansen from comment #2) > What's your $LANG setting? If you mean ~/.config/spyder/langconfig, it's empty. System region: en_US.
On start-up, issue reporter "Spyder has encountered an internal problem!" pops up, and if using icon theme Spyder 3, all icons disappears. I am able to set icon theme to Spyder 2 and still use Spyder. This start-up issue does not seem to affect python3 (Spyder3).
An update: because Spyder on start-up creates a temp.py file which I was able to run, I thought perhaps, I would be able to run other files, however, it's unable to open any other file, so, I'd say this is a major, if not critical bug.
> System region: en_US Well, it's about the console encoding, usually following the region, e.g.: $ echo $LANG de_DE.UTF-8 ^^^^^ > This start-up issue does not seem to affect python3 (Spyder3). Allow me to ask, why you want to run the older version? For once, spyder-3.3.4-2.1 isn't properly installable anymore due to: Problem: nothing provides python-spyder-kernels >= 0.4.3 needed by spyder-3.3.4-2.1.noarch Solution 1: do not install spyder-3.3.4-2.1.noarch Solution 2: break spyder-3.3.4-2.1.noarch by ignoring some of its dependencies The dependency isn't provided anymore due to: https://build.opensuse.org/package/rdiff/devel:languages:python:numeric/python-spyder-kernels?linkrev=base&rev=20 So, spyder-3.3.4 is about to disappear soon, and even if I grab the latest version of python2-spyder-kernels-0.5.1-1.1.noarch.rpm from http://download.opensuse.org/history/20190806/tumbleweed/repo/oss/noarch/, it fails with some other issue: Traceback (most recent call last): File "/usr/lib/python2.7/site-packages/spyder/app/mainwindow.py", line 3285, in main mainwindow = run_spyder(app, options, args) File "/usr/lib/python2.7/site-packages/spyder/app/mainwindow.py", line 3140, in run_spyder main.setup() File "/usr/lib/python2.7/site-packages/spyder/app/mainwindow.py", line 903, in setup self.findinfiles = FindInFiles(self) File "/usr/lib/python2.7/site-packages/spyder/plugins/findinfiles.py", line 60, in __init__ case_sensitive, path_history) File "/usr/lib/python2.7/site-packages/spyder/widgets/findinfiles.py", line 958, in __init__ external_path_history) File "/usr/lib/python2.7/site-packages/spyder/widgets/findinfiles.py", line 484, in __init__ external_path_history, parent) File "/usr/lib/python2.7/site-packages/spyder/widgets/findinfiles.py", line 248, in __init__ self.setItemData(1, ttip, Qt.ToolTipRole) TypeError: unable to convert a Python 'unicode' object to a C++ 'QString' instance so, all in all, it looks like a dead horse already... Just a last test for you: $ export LANG=en_US.UTF-8 $ spyder I bet, it bails with the traceback from above. Does it?
(In reply to Hans-Peter Jansen from comment #6) > > System region: en_US > > Well, it's about the console encoding, usually following the region, e.g.: > > $ echo $LANG > de_DE.UTF-8 > ^^^^^ > > > This start-up issue does not seem to affect python3 (Spyder3). > > Allow me to ask, why you want to run the older version? > > For once, spyder-3.3.4-2.1 isn't properly installable anymore due to: > > Problem: nothing provides python-spyder-kernels >= 0.4.3 needed by > spyder-3.3.4-2.1.noarch > Solution 1: do not install spyder-3.3.4-2.1.noarch > Solution 2: break spyder-3.3.4-2.1.noarch by ignoring some of its > dependencies > > The dependency isn't provided anymore due to: > > https://build.opensuse.org/package/rdiff/devel:languages:python:numeric/ > python-spyder-kernels?linkrev=base&rev=20 > > So, spyder-3.3.4 is about to disappear soon, and even if I grab the latest > version of python2-spyder-kernels-0.5.1-1.1.noarch.rpm from > http://download.opensuse.org/history/20190806/tumbleweed/repo/oss/noarch/, > it fails with some other issue: > > Traceback (most recent call last): > File "/usr/lib/python2.7/site-packages/spyder/app/mainwindow.py", line > 3285, in main > mainwindow = run_spyder(app, options, args) > File "/usr/lib/python2.7/site-packages/spyder/app/mainwindow.py", line > 3140, in run_spyder > main.setup() > File "/usr/lib/python2.7/site-packages/spyder/app/mainwindow.py", line > 903, in setup > self.findinfiles = FindInFiles(self) > File "/usr/lib/python2.7/site-packages/spyder/plugins/findinfiles.py", > line 60, in __init__ > case_sensitive, path_history) > File "/usr/lib/python2.7/site-packages/spyder/widgets/findinfiles.py", > line 958, in __init__ > external_path_history) > File "/usr/lib/python2.7/site-packages/spyder/widgets/findinfiles.py", > line 484, in __init__ > external_path_history, parent) > File "/usr/lib/python2.7/site-packages/spyder/widgets/findinfiles.py", > line 248, in __init__ > self.setItemData(1, ttip, Qt.ToolTipRole) > TypeError: unable to convert a Python 'unicode' object to a C++ 'QString' > instance > > so, all in all, it looks like a dead horse already... > > Just a last test for you: > > $ export LANG=en_US.UTF-8 > $ spyder > > I bet, it bails with the traceback from above. Does it? It didn't help. Thanks, however. I guess it's time to begin the port to Python 3.x.
There's a current version of Spyder available in TW now. Older versions will surely bail on Py3.8. Hence, it's time to close this one.