By "test some code" you mean make changes to the Sage sources? Check that the directory you are runnig from doesn't contain any funny files like version.py that might take precedent....
On Tuesday, July 31, 2018 at 7:53:48 PM UTC+2, Jeremy Meza wrote: > > > Hi, > > I recently installed sage from source code and everything was fine. Then, > later, when I was trying to test out some code, sage wouldn't run and I got > this error > > Traceback (most recent call last): > > File "/Users/Jeremy/sage-8.2/src/bin/sage-ipython", line 9, in <module> > > from sage.misc.banner import banner > > File > "/Users/Jeremy/sage-8.2/local/lib/python2.7/site-packages/sage/misc/banner.py", > > line 16, in <module> > > from sage.env import SAGE_VERSION, SAGE_DATE, SAGE_SRC, SAGE_BANNER > > File > "/Users/Jeremy/sage-8.2/local/lib/python2.7/site-packages/sage/env.py", > line 24, in <module> > > from . import version > > > I ended up running "make distclean && make" to try to just start over and > I still get the same error: > > > [sagelib-8.2] Traceback (most recent call last): > > [sagelib-8.2] File "setup.py", line 56, in <module> > > [sagelib-8.2] import sage.env > > [sagelib-8.2] File "/Users/Jeremy/sage-8.2/src/sage/env.py", line 24, > in <module> > > [sagelib-8.2] from . import version > > [sagelib-8.2] ImportError: cannot import name version > > > > I've searched everywhere and can't seem to find out how to fix this. Any > help would be appreciated! > > > Thanks, > > Jeremy > -- You received this message because you are subscribed to the Google Groups "sage-support" group. To unsubscribe from this group and stop receiving emails from it, send an email to sage-support+unsubscr...@googlegroups.com. To post to this group, send email to sage-support@googlegroups.com. Visit this group at https://groups.google.com/group/sage-support. For more options, visit https://groups.google.com/d/optout.