Spyder Crashing on Startup - ValueError:Attempted Relative Import in non-package

113 views
Skip to first unread message

Adam Duran

unread,
Aug 23, 2017, 5:50:32 PM8/23/17
to spyder
Anyone know what is going on with my Spyder install?  I recently performed an update on spyder using Pip and now it crashes on startup and spits out the following errors when I try to run it using the windows command prompt:


U:\>spyder
Traceback (most recent call last):
  File "C:\Python27\Scripts\spyder", line 3, in <module>
    start_app.main()
  File "C:\Python27\lib\site-packages\spyderlib\start_app.py", line 114, in main

    from spyderlib import spyder
  File "C:\Python27\lib\site-packages\spyderlib\spyder.py", line 155, in <module>

    from spyderlib.utils.environ import WinUserEnvDialog
  File "C:\Python27\lib\site-packages\spyderlib\utils\environ.py", line 17, in <module>

    from spyderlib.widgets.dicteditor import DictEditor
  File "C:\Python27\lib\site-packages\spyderlib\widgets\dicteditor.py", line 39, in <module>

    from spyderlib.widgets.dicteditorutils import (sort_against, get_size,
  File "C:\Python27\lib\site-packages\spyderlib\widgets\dicteditorutils.py", line 70, in <module>

    from spyderlib import pil_patch
  File "C:\Python27\lib\site-packages\spyderlib\pil_patch.py", line 59, in <module>

    import Image
  File "C:\Python27\lib\site-packages\PIL\Image.py", line 27, in <module>

    from . import VERSION, PILLOW_VERSION, _plugins

ValueError: Attempted relative import in non-package

Adam Duran

unread,
Aug 24, 2017, 5:46:05 PM8/24/17
to spyder
I found the fix.  Using pip I had to uninstall PIL and install Pillow instead. 
Reply all
Reply to author
Forward
0 new messages