Hi,

I'm new to Sage too, but I faced this exact same error on a different file 
recently. Basically, my understanding is that sometimes Sage is unable to 
use a package that is installed on the local system and is not available 
within its directory. 
Check the following path (or equivalent) in your sage directory: 
local/lib/python2.7/site-packages/
If this does not have a sympy folder, the python used by Sage does not have 
sympy (and can't use the one that may be installed on your system) which is 
why it gives that error. In that case, try the following:
1. Download sympy <https://github.com/sympy/sympy/releases/tag/sympy-1.0> 
and unzip.
2. Go inside directory and install using sage - "sage --python setup.py 
install"
This worked for me. 

Best,
Arpit.


On Saturday, 14 May 2016 04:40:11 UTC+5:30, saad khalid wrote:
>
> Another note, this is happening on my master branch as well, which is just 
> an uneditted version of sage 7.1. I try running the command:
> ./sage-t src/sage/interfaces/maxima_lib.py
>
> and it tells me this:
>
>
> saad@saad-ThinkPad-X201:~/sage$ ./sage -t src/sage/interfaces/maxima_lib.
> py
> no stored timings available
> Running doctests with ID 2016-05-13-18-07-30-d52339e0.
> Git branch: master
> Using --optional=mpir,python2,sage
> Doctesting 1 file.
> Traceback (most recent call last):
>   File "/home/saad/sage/src/bin/sage-runtests", line 88, in <module>
>     err = DC.run()
>   File 
> "/home/saad/sage/local/lib/python2.7/site-packages/sage/doctest/control.py"
> , line 1044, in run
>     self.run_doctests()
>   File 
> "/home/saad/sage/local/lib/python2.7/site-packages/sage/doctest/control.py"
> , line 761, in run_doctests
>     self.dispatcher = DocTestDispatcher(self)
>   File 
> "/home/saad/sage/local/lib/python2.7/site-packages/sage/doctest/forker.py"
> , line 1376, in __init__
>     init_sage()
>   File 
> "/home/saad/sage/local/lib/python2.7/site-packages/sage/doctest/forker.py"
> , line 125, in init_sage
>     from sympy.printing.pretty.stringpict import stringPict
> ImportError: No module named sympy.printing.pretty.stringpict
>
>
>
>

-- 
You received this message because you are subscribed to the Google Groups 
"sage-devel" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to sage-devel+unsubscr...@googlegroups.com.
To post to this group, send email to sage-devel@googlegroups.com.
Visit this group at https://groups.google.com/group/sage-devel.
For more options, visit https://groups.google.com/d/optout.

Reply via email to