Quote:
Originally Posted by kovidgoyal
In the absence of ipython it will run a simple python REPL.
|
I run this in windows, it just raise error, with:
Python function terminated unexpectedly
cannot import name ipython(Error Code: 1)
in directly open calibre.
And in cmd
calibredb
Hello world
Python function terminated unexpectedly
cannot import name ipython (Error Code: 1)
Traceback (most recent call last):
File "site.py", line 114, in main
File "site.py", line 87, in run_entry_point
File "D:\workplace\program\open-sourse\calibre-src\src\calibre\__init__.py", line 7, in <module>
from calibre import ipython
ImportError: cannot import name ipython
My code is
from __future__ import unicode_literals, print_function
''' E-book management software'''
__license__ = 'GPL v3'
__copyright__ = '2008, Kovid Goyal <kovid@kovidgoyal.net>'
__docformat__ = 'restructuredtext en'
print("Hello world")
from calibre import ipython
ipython(locals())
And I am working with the 4.12.0 with the source code of 4.12.0