[sage-devel] Re: py3: issue with round

2019-01-30 Thread Frédéric Chapoton
You could add (at the price of some speed)

from sage.misc.functional import round

Le jeudi 31 janvier 2019 08:42:24 UTC+1, David Coudert a écrit :
>
> Does anyone know a suitable way to fix the following issue with round in 
> Python3 ?
>
> sage: G = Graph([(0, 1)])
> sage: f = g._build_flow_graph({(0, 1): 1}, True)
> ---
> TypeError Traceback (most recent call last)
>  in ()
> > 1 f = g._build_flow_graph({(Integer(0), Integer(1)): Integer(1)}, 
> True)
>
> /Users/dcoudert/sage3/sage/local/lib/python3.6/site-packages/sage/graphs/generic_graph.py
>  
> in _build_flow_graph(self, flow, integer)
>9094 g.delete_edge(u, v)
>9095 else:
> -> 9096 g.set_edge_label(u, v, int(round(l)))
>9097 
>9098 # returning a graph with the same embedding, the 
> corresponding name, etc ...
>
> TypeError: type sage.rings.integer.Integer doesn't define __round__ method
> sage:
> sage: f = g._build_flow_graph({(0, 1): 1.0}, True)
> ---
> TypeError Traceback (most recent call last)
>  in ()
> > 1 f = g._build_flow_graph({(Integer(0), Integer(1)): 
> RealNumber('1.0')}, True)
>
> /Users/dcoudert/sage3/sage/local/lib/python3.6/site-packages/sage/graphs/generic_graph.py
>  
> in _build_flow_graph(self, flow, integer)
>9094 g.delete_edge(u, v)
>9095 else:
> -> 9096 g.set_edge_label(u, v, int(round(l)))
>9097 
>9098 # returning a graph with the same embedding, the 
> corresponding name, etc ...
>
> TypeError: type sage.rings.real_mpfr.RealLiteral doesn't define __round__ 
> method
>
>

-- 
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.


[sage-devel] py3: issue with round

2019-01-30 Thread David Coudert
Does anyone know a suitable way to fix the following issue with round in 
Python3 ?

sage: G = Graph([(0, 1)])
sage: f = g._build_flow_graph({(0, 1): 1}, True)
---
TypeError Traceback (most recent call last)
 in ()
> 1 f = g._build_flow_graph({(Integer(0), Integer(1)): Integer(1)}, 
True)

/Users/dcoudert/sage3/sage/local/lib/python3.6/site-packages/sage/graphs/generic_graph.py
 
in _build_flow_graph(self, flow, integer)
   9094 g.delete_edge(u, v)
   9095 else:
-> 9096 g.set_edge_label(u, v, int(round(l)))
   9097 
   9098 # returning a graph with the same embedding, the 
corresponding name, etc ...

TypeError: type sage.rings.integer.Integer doesn't define __round__ method
sage:
sage: f = g._build_flow_graph({(0, 1): 1.0}, True)
---
TypeError Traceback (most recent call last)
 in ()
> 1 f = g._build_flow_graph({(Integer(0), Integer(1)): 
RealNumber('1.0')}, True)

/Users/dcoudert/sage3/sage/local/lib/python3.6/site-packages/sage/graphs/generic_graph.py
 
in _build_flow_graph(self, flow, integer)
   9094 g.delete_edge(u, v)
   9095 else:
-> 9096 g.set_edge_label(u, v, int(round(l)))
   9097 
   9098 # returning a graph with the same embedding, the 
corresponding name, etc ...

TypeError: type sage.rings.real_mpfr.RealLiteral doesn't define __round__ 
method

-- 
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.


[sage-devel] Re: python3 status report

2019-01-30 Thread Volker Braun
Also, I have now set up a Python3 buildbot to catch regressions!

-- 
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.


[sage-devel] Re: Help wanted to diagnose a system-dependent bug : R lost its graphics abilities

2019-01-30 Thread Emmanuel Charpentier
Never mind... The problem turned out  to be that out freetype library was a 
bit too outdated for R. This is now fixed in a positive-review ticket 
.

Le mardi 29 janvier 2019 15:36:30 UTC+1, Emmanuel Charpentier a écrit :
>
> See Trac#27163  for details. In 
> short : I can't get R graphics abilities on a Debian testing (a. k. a. 
> buster) system, whereas Doma Pasechnik can't reproduce my problem on a 
> Debian stretch (a. k. a. stretch) system.
>
> The critical point is to check that, possibly after installing the R 
> "Cairo" package, R's capabilities() do include or not png and cairo 
> capabilities (it does on Debian stretch, it does not on Debian buster).
>
> I'd be interested in which systems present (or not present) this specific 
> problem : this could help to know if that is a Debian libraries' problem or 
> a Sagemath R problem.
>
> So, if you have time to test Trac#27163 
> , this test would be helpful...
>

-- 
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.


[sage-devel] Re: spkgs dependencies graph

2019-01-30 Thread Volker Braun
If you want to use it for external dependencies you'll probably need to 
know about acceptable versions of these. Then you'll soon need a sat 
solver; E.g. conda does in that way.

On Tuesday, January 29, 2019 at 7:45:07 PM UTC+1, Dima Pasechnik wrote:
>
> Has anyone written code to compute it? 
> (and create a Sage graph out of it, maybe) 
>

-- 
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.


[sage-devel] Patchbot zancara: Disk quota exceeded

2019-01-30 Thread Jeroen Demeyer

There are problems with patchbot zancara:

OSError: [Errno 122] Disk quota exceeded: 
'/home/mi/kliem/.sage/temp/zancara/16740'


Full log: 
https://patchbot.sagemath.org/log/27152/debian/9.6/x86_64/4.9.0-8-amd64/zancara/2019-01-29%2021:56:24


--
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.