Thanks a lot for explanation, I was completely lost! The suggested fix is 
at http://trac.sagemath.org/ticket/20797

On Tuesday, 31 May 2016 01:26:35 UTC-6, Volker Braun wrote:
>
> great minds think alike ;-)
>
>
> On Tuesday, May 31, 2016 at 8:26:54 AM UTC+2, Frédéric Chapoton wrote:
>>
>> It's because these is a "six" module in sage/misc.
>>
>> I met this problem in #20694
>>
>> Solution: use from __future__ import absolute import
>>
>> Frederic
>>
>> Le mardi 31 mai 2016 07:55:14 UTC+2, Andrey Novoseltsev a écrit :
>>>
>>> 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.

Reply via email to