[IPython-User] 'StoreMagics' object has no attribute 'db'

Matthew Snape SnapeM@rpsgroup....
Thu Jul 5 04:51:26 CDT 2012



I am using ipython 0.13 on python 26.  When I try and use %store I get
the following error:


AttributeError                            Traceback (most recent call

<ipython-input-3-6795157a19c8> in <module>()

----> 1 get_ipython().magic(u'store')


yc in magic(self, arg_s)

   2159         magic_name, _, magic_arg_s = arg_s.partition(' ')

   2160         magic_name = magic_name.lstrip(prefilter.ESC_MAGIC)

-> 2161         return self.run_line_magic(magic_name, magic_arg_s)




yc in run_line_magic(self, magic_name, line)

   2085                 args.append(sys._getframe(stack_depth).f_locals)

   2086             with self.builtin_trap:

-> 2087                 result = fn(*args)

   2088             return result



yc in store(self, parameter_s)


C:\Python26\ArcGIS10.0\lib\site-packages\IPython\core\magic.pyc in
<lambda>(f, *a, **k)

    189     # but it's overkill for just that one bit of state.

    190     def magic_deco(arg):

--> 191         call = lambda f, *a, **k: f(*a, **k)


    193         if callable(arg):


yc in store(self, parameter_s)

    141         # run without arguments -> list variables & values

    142         elif not args:

--> 143             vars = self.db.keys('autorestore/*')

    144             vars.sort()

    145             if vars:


AttributeError: 'StoreMagics' object has no attribute 'db'


How can I get store to work?


This e-mail message and any attached file is the property of the sender and is sent in confidence to the addressee only.
Internet communications are not secure and RPS is not responsible for their abuse by third parties, any alteration or corruption in transmission or for any loss or damage caused by a virus or by other means.
Any advice contained in this e-mail is for information purposes only.

RPS Planning and Development Limited, company number: 02947164 (England). Registered office: 20 Milton Park Abingdon Oxfordshire OX14 4SH.
RPS Group Plc web link: <http://www.rpsgroup.com>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://mail.scipy.org/pipermail/ipython-user/attachments/20120705/cd501802/attachment-0001.html 

More information about the IPython-User mailing list