#18444: Use floor division in sage-download-file
-------------------------------------+-------------------------------------
       Reporter:  jdemeyer           |        Owner:
           Type:  defect             |       Status:  positive_review
       Priority:  blocker            |    Milestone:  sage-6.7
      Component:  scripts            |   Resolution:
       Keywords:                     |    Merged in:
        Authors:  Jeroen Demeyer     |    Reviewers:  Volker Braun
Report Upstream:  N/A                |  Work issues:
         Branch:                     |       Commit:
  u/jdemeyer/use_floor_division_in_sage_download_file|  
718f969ffbb8b630e806536240031f3133b4317b
   Dependencies:                     |     Stopgaps:
-------------------------------------+-------------------------------------
Description changed by jdemeyer:

Old description:

> If we want to be compatible with system Python 3 installs, we need to
> replace
> {{{
> /
> }}}
> by
> {{{
> //
> }}}

New description:

 When installing Sage 6.7 from git if the system Python is version 3:
 {{{
 Attempting to download package patch-2.7.1
 
http://www.mirrorservice.org/sites/www.sagemath.org/spkg/upstream/patch/patch-2.7.1.tar.gz
 [Traceback (most recent call last):
   File "/usr/local/src/sage-config/src/bin/sage-download-file", line 419,
 in <module>
     tarball.download(mirror_list)
   File "/usr/local/src/sage-config/src/bin/sage-download-file", line 356,
 in download
     http_download(url, self.upstream_fqn)
   File "/usr/local/src/sage-config/src/bin/sage-download-file", line 115,
 in http_download
     filename, info = opener.retrieve(url, destination, progress_bar)
   File "/usr/lib64/python3.3/urllib/request.py", line 1714, in retrieve
     reporthook(blocknum, bs, size)
   File "/usr/local/src/sage-config/src/bin/sage-download-file", line 71,
 in __call__
     self.stream.write('.' * (n-self.progress))
 TypeError: can't multiply sequence by non-int of type 'float'
 }}}

--

--
Ticket URL: <http://trac.sagemath.org/ticket/18444#comment:5>
Sage <http://www.sagemath.org>
Sage: Creating a Viable Open Source Alternative to Magma, Maple, Mathematica, 
and MATLAB

-- 
You received this message because you are subscribed to the Google Groups 
"sage-trac" 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/sage-trac.
For more options, visit https://groups.google.com/d/optout.

Reply via email to