This imports src/sage/misc/six.py The best fix is probably
from __future__ import absolute_import to get the saner py3 behavior. On Tuesday, May 31, 2016 at 7:55:14 AM UTC+2, Andrey Novoseltsev wrote: > > Hello, > > Can anybody explain (even better - fix ;-)) what is going on with this > error with 7.2 and 7.3.beta0: > > sage: from sage.misc.remote_file import get_remote_file > sage: get_remote_file(' > http://193.146.36.205:8080/GgbSageDirect/DiscoverGGB/DiscoverGGBAux/2015_11_24_fromGgbXMLString2Cons.sage > ') > Attempting to load remote file: > http://193.146.36.205:8080/GgbSageDirect/DiscoverGGB/DiscoverGGBAux/2015_11_24_fromGgbXMLString2Cons.sage > --------------------------------------------------------------------------- > ImportError Traceback (most recent call last) > <ipython-input-2-51ff583f8cbb> in <module>() > ----> 1 get_remote_file(' > http://193.146.36.205:8080/GgbSageDirect/DiscoverGGB/DiscoverGGBAux/2015_11_24_fromGgbXMLString2Cons.sage > ') > > /home/novoselt/sage/local/lib/python2.7/site-packages/sage/misc/remote_file.pyc > > in get_remote_file(filename, verbose) > 34 > 35 # import compatible with py2 and py3 > ---> 36 from six.moves.urllib.request import urlretrieve > 37 > 38 global cur > > ImportError: No module named moves.urllib.request > > Given that I can repeat this line directly without any issues: > > sage: from six.moves.urllib.request import urlretrieve > <everything is just fine> > > Thank you! > Andrey > > -- 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.