Ask Your Question
1

"The top-level `frontend` package has been deprecated. "

asked 2013-09-23 19:39:45 -0500

robinBanx gravatar image

Just tried a fresh install of SimpleCV. Opened up a Python shell, and it let me import SimplCV with no problems, but when I got to step two...

In [2]: from SimpleCV import Shell

C:\Python27\lib\site-packagesIPythonfrontend.py:30: UserWarning: The top-level frontend package has been deprecated. All its subpackages have been moved to the top IPython level. warn("The top-level frontend package has been deprecated. "

Running Window 8 64-bit. I do have another version of Python installed - maybe the computer's getting confused?

Thanks!

edit retag flag offensive close merge delete

5 Answers

Sort by ยป oldest newest most voted
3

answered 2013-10-01 00:17:09 -0500

updated 2013-10-01 00:40:28 -0500

Change this file in your python installation:

path\Python27\Lib\site-packages\SimpleCV\Shell\Shell.py

Change line 51 from

from IPython.frontend.terminal.embed import InteractiveShellEmbed

to:

if IPython.version_info[0]>=1:
        from IPython.terminal.embed import InteractiveShellEmbed
else:
        from IPython.frontend.terminal.embed import InteractiveShellEmbed

Also made a pull request for this changes ( https://github.com/sightmachine/SimpleCV/pull/582/files )

edit flag offensive delete link more
0

answered 2014-02-18 21:43:12 -0500

narutovihang gravatar image

Works Well!!

edit flag offensive delete link more
0

answered 2014-01-07 04:03:48 -0500

PureSolar gravatar image

This worked for me as well. I'm running Windows 7 ultimate 64 bit.

edit flag offensive delete link more
0

answered 2013-10-02 15:09:47 -0500

robinBanx gravatar image

Works perfectly! Thanks!

edit flag offensive delete link more
0

answered 2014-05-10 05:17:23 -0500

memilanuk gravatar image

updated 2014-05-10 05:49:04 -0500

Weird... had installed SimpleCV from the github repo 'master' branch, and had no issues. Uninstalled that, and tried again using 'develop' branch... and suddenly ran into this (among other) problem when trying to run simplecv notebook.

Looking at the pull request... doesn't appear to have been merged into the official repo?

This is what I'm seeing now:

monte@machin-shin:~/python/SimpleCV$ simplecv notebook
/usr/local/lib/python2.7/dist-packages/IPython/frontend.py:30: UserWarning: The top-level `frontend` package has been deprecated. All its subpackages have been moved to the top `IPython` level.
warn("The top-level `frontend` package has been deprecated. "
ERROR: 
Traceback (most recent call last):
  File "/usr/local/bin/simplecv", line 9, in <module>
    load_entry_point('SimpleCV==1.3', 'console_scripts', 'simplecv')()
  File "/usr/local/lib/python2.7/dist-packages/SimpleCV-1.3-py2.7.egg/SimpleCV/Shell/Shell.py", line 233, in main
run_notebook(sys.argv[1:])
  File "/usr/local/lib/python2.7/dist-packages/SimpleCV-1.3-py2.7.egg/SimpleCV/Shell/Shell.py", line 185, in run_notebook
from IPython.frontend.html.notebook import kernelmanager
ImportError: cannot import name kernelmanager
monte@machin-shin:~/python/SimpleCV$

Looks like the IPython version number is again hard-coded in another file, per the issue here: https://github.com/sightmachine/SimpleCV/pull/616/files

...and as a result, the code ralphs when presented with IPython 2.0.0. And... just to make things more fun... after I 'fix' said lines in said files... I get this:

monte@machin-shin:~/python/SimpleCV$ simplecv notebook2014-05-10 03:39:10.830 [NotebookApp] CRITICAL | No such file or directory: /home/monte/Dropbox/Code/python/SimpleCV/notebook
monte@machin-shin:~/python/SimpleCV$

Note to self: DO NOT use --upgrade when installing SimpleCV using sudo pip install -r requirements - it will pull in IPython 2.0.0, and there are too many other parts of SimpleCV that don't play nice with that version.

edit flag offensive delete link more

Your Answer

Please start posting anonymously - your entry will be published after you log in or create a new account.

Add Answer

Question Tools

3 followers

Stats

Asked: 2013-09-23 19:39:45 -0500

Seen: 6,513 times

Last updated: May 10 '14