It works for me. Make sure that you don't have anything named "roots" laying around. Or any additional files or directories for that matter (git status will tell you what untracked file you have in your repository). Python 3 has these annoying "namespace" packages, meaning that if you have any directory in your current directory (even if it's completely unrelated to Python) with the same name as a package, it will break Python, because it will try to import that directory instead of the package.
Aaron Meurer On Sun, Oct 27, 2013 at 3:26 AM, Pablo Puente <[email protected]> wrote: > I did a pull from master and now I get an import error: > > pape@lenovo:~/sympy$ python3 bin/test > Traceback (most recent call last): > File "bin/test", line 76, in <module> > import sympy > File "/home/pape/sympy/sympy/__init__.py", line 35, in <module> > from .polys import * > File "/home/pape/sympy/sympy/polys/__init__.py", line 21, in <module> > from . import numberfields > File "/home/pape/sympy/sympy/polys/numberfields.py", line 26, in <module> > from sympy.polys.rootoftools import RootOf > File "/home/pape/sympy/sympy/polys/rootoftools.py", line 16, in <module> > from sympy.polys.polyroots import ( > File "/home/pape/sympy/sympy/polys/polyroots.py", line 22, in <module> > from sympy.simplify import simplify, powsimp > File "/home/pape/sympy/sympy/simplify/__init__.py", line 23, in <module> > from .hyperexpand import hyperexpand > File "/home/pape/sympy/sympy/simplify/hyperexpand.py", line 80, in > <module> > from sympy.series import residue > File "/home/pape/sympy/sympy/series/__init__.py", line 6, in <module> > from .series import series > File "/home/pape/sympy/sympy/series/series.py", line 4, in <module> > from sympy.integrals import integrate > File "/home/pape/sympy/sympy/integrals/__init__.py", line 12, in <module> > from .integrals import integrate, Integral, line_integrate > File "/home/pape/sympy/sympy/integrals/integrals.py", line 3, in <module> > from sympy.concrete.expr_with_limits import AddWithLimits > File "/home/pape/sympy/sympy/concrete/__init__.py", line 1, in <module> > from .products import product, Product > File "/home/pape/sympy/sympy/concrete/products.py", line 11, in <module> > from sympy.polys import quo, roots > ImportError: cannot import name roots > > -- > You received this message because you are subscribed to the Google Groups > "sympy" group. > To unsubscribe from this group and stop receiving emails from it, send an > email to [email protected]. > To post to this group, send email to [email protected]. > Visit this group at http://groups.google.com/group/sympy. > For more options, visit https://groups.google.com/groups/opt_out. -- You received this message because you are subscribed to the Google Groups "sympy" group. To unsubscribe from this group and stop receiving emails from it, send an email to [email protected]. To post to this group, send email to [email protected]. Visit this group at http://groups.google.com/group/sympy. For more options, visit https://groups.google.com/groups/opt_out.
