Hi All,

Can anyone think why my binary install (Sage4.5.2 on Ubuntu10.04)
should start intermittently having a coercion problem "rank =
int(rank) in free_module.py" when I haven't tried to install anything
else in Sage's python or modify Sage itself.

eg. I had:
V = VectorSpace(RR, 2)
v = V([3.0, 4.0])
...

Now it seems I must put
V = VectorSpace(RR, '2')
#so it can be converted back into int? Why?


Traceback (most recent call last):    load('/home/me/workspace/
my_app.py')
  File "", line 1, in <module>

  File "/tmp/tmpJqLx2b/___code___.py", line 21, in <module>
    V = VectorSpace(RR, _sage_const_2 )
  File "/home/me/sage/sage-4.5.2/local/lib/python2.6/site-packages/
sage/modules/free_module.py", line 408, in VectorSpace
    return FreeModule(K, rank=dimension, sparse=sparse,
inner_product_matrix=inner_product_matrix)
  File "factory.pyx", line 108, in
sage.structure.factory.UniqueFactory.__call__ (sage/structure/
factory.c:877)
  File "factory.pyx", line 195, in
sage.structure.factory.UniqueFactory.create_key_and_extra_args (sage/
structure/factory.c:1784)
  File "/home/me/sage/sage-4.5.2/local/lib/python2.6/site-packages/
sage/modules/free_module.py", line 329, in create_key
    rank = int(rank)
TypeError: int() argument must be a string or a number, not 'Integer'

-- 
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to 
[email protected]
For more options, visit this group at 
http://groups.google.com/group/sage-support
URL: http://www.sagemath.org

Reply via email to