Accented char in PYTHONPATH manager causes crash on starup

Bug #1420090 reported by Francis Thérien
8
This bug affects 1 person
Affects Status Importance Assigned to Milestone
spyder (Ubuntu)
Expired
Undecided
Unassigned

Bug Description

I can repeatedly crash spyder 2.3.0 on lubuntu 14.10 by the following procedure:

1) Start with fresh spyder (spyder --reset)
2) Tools -> PYTHONPATH Manager, add a path with an accented character (in my case, é causes the crash
3) Close spyder, start it up again

Crashes with the error message below, at which point the only way to be able to start it up again it --reset.

Traceback (most recent call last):
  File "/usr/lib/python2.7/dist-packages/spyderlib/spyder.py", line 2333, in main
    mainwindow = run_spyder(app, options, args)
  File "/usr/lib/python2.7/dist-packages/spyderlib/spyder.py", line 2221, in run_spyder
    main.setup()
  File "/usr/lib/python2.7/dist-packages/spyderlib/spyder.py", line 785, in setup
    from spyderlib.plugins.inspector import ObjectInspector
  File "/usr/lib/python2.7/dist-packages/spyderlib/plugins/inspector.py", line 40, in <module>
    from spyderlib.widgets.ipython import IPythonControlWidget
  File "/usr/lib/python2.7/dist-packages/spyderlib/widgets/ipython.py", line 27, in <module>
    from IPython.qt.console.rich_ipython_widget import RichIPythonWidget
  File "/usr/lib/python2.7/dist-packages/IPython/qt/console/rich_ipython_widget.py", line 20, in <module>
    from .ipython_widget import IPythonWidget
  File "/usr/lib/python2.7/dist-packages/IPython/qt/console/ipython_widget.py", line 26, in <module>
    from .frontend_widget import FrontendWidget
  File "/usr/lib/python2.7/dist-packages/IPython/qt/console/frontend_widget.py", line 24, in <module>
    from .pygments_highlighter import PygmentsHighlighter
  File "/usr/lib/python2.7/dist-packages/IPython/qt/console/pygments_highlighter.py", line 3, in <module>
    from pygments.formatters.html import HtmlFormatter
  File "/usr/lib/python2.7/dist-packages/pygments/formatters/__init__.py", line 14, in <module>
    from pygments.formatters._mapping import FORMATTERS
  File "/usr/lib/python2.7/dist-packages/pygments/formatters/_mapping.py", line 17, in <module>
    from pygments.formatters.bbcode import BBCodeFormatter
  File "/usr/lib/python2.7/dist-packages/pygments/formatters/bbcode.py", line 13, in <module>
    from pygments.formatter import Formatter
  File "/usr/lib/python2.7/dist-packages/pygments/formatter.py", line 15, in <module>
    from pygments.styles import get_style_by_name
  File "/usr/lib/python2.7/dist-packages/pygments/styles/__init__.py", line 12, in <module>
    from pygments.plugin import find_plugin_styles
  File "/usr/lib/python2.7/dist-packages/pygments/plugin.py", line 39, in <module>
    import pkg_resources
  File "/usr/lib/python2.7/dist-packages/pkg_resources.py", line 2876, in <module>
    working_set = WorkingSet._build_master()
  File "/usr/lib/python2.7/dist-packages/pkg_resources.py", line 440, in _build_master
    ws = cls()
  File "/usr/lib/python2.7/dist-packages/pkg_resources.py", line 433, in __init__
    self.add_entry(entry)
  File "/usr/lib/python2.7/dist-packages/pkg_resources.py", line 489, in add_entry
    for dist in find_distributions(entry, True):
  File "/usr/lib/python2.7/dist-packages/pkg_resources.py", line 1858, in find_distributions
    importer = get_importer(path_item)
  File "/usr/lib/python2.7/pkgutil.py", line 384, in get_importer
    importer = path_hook(path_item)
UnicodeEncodeError: 'ascii' codec can't encode character u'\xc9' in position 24: ordinal not in range(128)

Revision history for this message
Ghislain Vaillant (ghisvail) wrote :

Can you reproduce this issue with spyder 3.x ?

Changed in spyder (Ubuntu):
status: New → Incomplete
Revision history for this message
Launchpad Janitor (janitor) wrote :

[Expired for spyder (Ubuntu) because there has been no activity for 60 days.]

Changed in spyder (Ubuntu):
status: Incomplete → Expired
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.