Open jbm950 opened 8 years ago
I also got this error when trying to render a tuple of two dyadics in notebook 4:
---------------------------------------------------------------------------
AttributeError Traceback (most recent call last)
/home/moorepants/miniconda3/lib/python3.5/site-packages/IPython/core/formatters.py in __call__(self, obj)
697 type_pprinters=self.type_printers,
698 deferred_pprinters=self.deferred_printers)
--> 699 printer.pretty(obj)
700 printer.flush()
701 return stream.getvalue()
/home/moorepants/miniconda3/lib/python3.5/site-packages/IPython/lib/pretty.py in pretty(self, obj)
366 if cls in self.type_pprinters:
367 # printer registered in self.type_pprinters
--> 368 return self.type_pprinters[cls](obj, self, cycle)
369 else:
370 # deferred printer
/home/moorepants/miniconda3/lib/python3.5/site-packages/sympy/interactive/printing.py in _print_plain(arg, p, cycle)
66 """caller for pretty, for use in IPython 0.11"""
67 if _can_print_latex(arg):
---> 68 p.text(stringify_func(arg))
69 else:
70 p.text(IPython.lib.pretty.pretty(arg))
/home/moorepants/miniconda3/lib/python3.5/site-packages/sympy/physics/vector/printing.py in vpprint(expr, **settings)
330
331 try:
--> 332 return pp.doprint(expr)
333 finally:
334 pretty_use_unicode(uflag)
/home/moorepants/miniconda3/lib/python3.5/site-packages/sympy/printing/pretty/pretty.py in doprint(self, expr)
56
57 def doprint(self, expr):
---> 58 return self._print(expr).render(**self._settings)
59
60 # empty op so _print(stringPict) returns the same
/home/moorepants/miniconda3/lib/python3.5/site-packages/sympy/printing/printer.py in _print(self, expr, *args, **kwargs)
255 printmethod = '_print_' + cls.__name__
256 if hasattr(self, printmethod):
--> 257 return getattr(self, printmethod)(expr, *args, **kwargs)
258
259 # Unknown object, fall back to the emptyPrinter.
/home/moorepants/miniconda3/lib/python3.5/site-packages/sympy/printing/pretty/pretty.py in _print_tuple(self, t)
1670 return prettyForm(*ptuple.parens('(', ')', ifascii_nougly=True))
1671 else:
-> 1672 return self._print_seq(t, '(', ')')
1673
1674 def _print_Tuple(self, expr):
/home/moorepants/miniconda3/lib/python3.5/site-packages/sympy/printing/pretty/pretty.py in _print_seq(self, seq, left, right, delimiter, parenthesize)
1638 s = pform
1639 else:
-> 1640 s = prettyForm(*stringPict.next(s, delimiter))
1641 s = prettyForm(*stringPict.next(s, pform))
1642
/home/moorepants/miniconda3/lib/python3.5/site-packages/sympy/printing/pretty/stringpict.py in next(*args)
70 newHeightBelowBaseline = max(
71 obj.height() - obj.baseline
---> 72 for obj in objects)
73 newHeight = newBaseline + newHeightBelowBaseline
74
/home/moorepants/miniconda3/lib/python3.5/site-packages/sympy/printing/pretty/stringpict.py in <genexpr>(.0)
70 newHeightBelowBaseline = max(
71 obj.height() - obj.baseline
---> 72 for obj in objects)
73 newHeight = newBaseline + newHeightBelowBaseline
74
AttributeError: 'Fake' object has no attribute 'height'
@jbm950 I am not able to recreate the errors you are getting in notebooks 3 and 5. What line are you typing?
Im getting the following error in notebook 3 and 5
My packages are as follows