Skip to content

Issue in notebook 03 and 05 #105

@jbm950

Description

@jbm950

Im getting the following error in notebook 3 and 5

AttributeErrorTraceback (most recent call last)
/Users/james/anaconda/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()

/Users/james/anaconda/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

/Users/james/git_repos/sympy_work/sympy/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))

/Users/james/git_repos/sympy_work/sympy/sympy/physics/vector/printing.py in vpprint(expr, **settings)
    337 
    338     try:
--> 339         return pp.doprint(expr)
    340     finally:
    341         pretty_use_unicode(uflag)

/Users/james/git_repos/sympy_work/sympy/sympy/printing/pretty/pretty.py in doprint(self, expr)
     57 
     58     def doprint(self, expr):
---> 59         return self._print(expr).render(**self._settings)
     60 
     61     # empty op so _print(stringPict) returns the same

/Users/james/git_repos/sympy_work/sympy/sympy/physics/vector/vector.py in render(self, *args, **kwargs)
    288                                 pform = vp._print(
    289                                     ar[i][0][j])
--> 290                             pform = prettyForm(*pform.right(" ",
    291                                                 ar[i][1].pretty_vecs[j]))
    292                         else:

AttributeError: 'tuple' object has no attribute 'right'

My packages are as follows

$ pip list
abstract-rendering (0.5.1)
alabaster (0.7.7)
anaconda-client (1.2.2)
appnope (0.1.0)
appscript (1.0.1)
argcomplete (1.0.0)
astropy (1.1.1)
Babel (2.2.0)
backports.shutil-get-terminal-size (1.0.0)
beautifulsoup4 (4.4.1)
bitarray (0.8.1)
blaze (0.9.0)
bokeh (0.11.0)
boto (2.39.0)
Bottleneck (1.0.0)
cffi (1.2.1)
clyent (1.2.0)
colorama (0.3.6)
conda (4.0.8)
conda-build (1.19.0)
conda-env (2.4.5)
configobj (5.0.6)
cryptography (1.0.2)
cycler (0.9.0)
Cython (0.23.4)
cytoolz (0.7.5)
datashape (0.5.0)
decorator (4.0.10)
docutils (0.12)
dynd (f641248)
et-xmlfile (1.0.1)
fastcache (1.0.2)
Flask (0.10.1)
futures (3.0.3)
gnureadline (6.3.3)
greenlet (0.4.9)
h5py (2.5.0)
idna (2.0)
ipykernel (4.3.1)
ipython (4.2.0)
ipython-genutils (0.1.0)
ipywidgets (4.1.1)
itsdangerous (0.24)
jdcal (1.2)
jedi (0.9.0)
Jinja2 (2.8)
jsonschema (2.4.0)
jupyter (1.0.0)
jupyter-client (4.2.1)
jupyter-console (4.1.0)
jupyter-core (4.1.0)
llvmlite (0.8.0)
lxml (3.5.0)
MarkupSafe (0.23)
matplotlib (1.5.1)
mistune (0.7.1)
mpmath (0.19)
multipledispatch (0.4.8)
nbconvert (4.1.0)
nbformat (4.0.1)
networkx (1.11)
nltk (3.1)
nose (1.3.7)
notebook (4.2.1)
numba (0.23.1)
numexpr (2.4.6)
numpy (1.10.4)
odo (0.4.0)
openpyxl (2.3.2)
pandas (0.17.1)
path.py (0.0.0)
patsy (0.4.0)
pep8 (1.7.0)
pexpect (4.1.0)
pickleshare (0.7.2)
Pillow (3.1.0)
pip (8.1.2)
ply (3.8)
psutil (3.4.2)
ptyprocess (0.5.1)
py (1.4.31)
pyasn1 (0.1.9)
pycosat (0.6.1)
pycparser (2.14)
pycrypto (2.6.1)
pycurl (7.19.5.3)
pydy (0.4.0.dev0, /Users/james/git_repos/sympy_work/pydy)
pyflakes (1.0.0)
pyglet (1.2.4)
Pygments (2.1.1)
pyOpenSSL (0.15.1)
pyparsing (2.0.3)
pytest (2.8.5)
python-dateutil (2.4.2)
pytz (2015.7)
PyYAML (3.11)
pyzmq (15.2.0)
qtconsole (4.1.1)
redis (2.10.3)
requests (2.9.1)
rope-py3k (0.9.4.post1)
scikit-image (0.11.3)
scikit-learn (0.17)
scipy (0.17.0)
setuptools (23.0.0)
simplegeneric (0.8.1)
six (1.10.0)
snowballstemmer (1.2.1)
sockjs-tornado (1.0.1)
Sphinx (1.3.5)
sphinx-rtd-theme (0.1.9)
spyder (2.3.8)
SQLAlchemy (1.0.11)
statsmodels (0.6.1)
sympy (1.0, /Users/james/anaconda/lib/python3.5/site-packages)
tables (3.2.2)
terminado (0.5)
toolz (0.7.4)
tornado (4.3)
traitlets (4.2.1)
unicodecsv (0.14.1)
Werkzeug (0.11.3)
wheel (0.29.0)
widgetsnbextension (1.2.3)
xlrd (0.9.4)
XlsxWriter (0.8.4)
xlwings (0.6.4)
xlwt (1.0.0)```

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions