Hi,

I'm still having problems with this (see below)...  The fix below had
worked up to this point, but after updating sage again today, now I
get:



debian[~]$ sage
----------------------------------------------------------------------
| SAGE Version 2.1.4, Release Date: 2007-02-17                       |
| Type notebook() for the GUI, and license() for information.        |
----------------------------------------------------------------------

/usr/local/sage-1.5.0.2/local/lib/python2.5/site-packages/twisted/conch/ssh/keys.py:19:
RuntimeWarning: Python C API version mismatch for module
Crypto.Cipher.DES3: This Python has API version 1013, module
Crypto.Cipher.DES3 has version 1012.
  from Crypto.Cipher import DES3


Redoing the "fix" below (copying the directories) did not help.  Any
suggestions?

Thanks,

Luis





On 1/29/07, Luis Finotti <[EMAIL PROTECTED]> wrote:
> About my problem below:
>
> Copying /usr/lib/python2.4/site-packages/Crypto to
> /usr/local/sage-1.5.0.2/local/lib/python2.5/site-packages/ *seems* to
> have fixed it (I can run some basic commands in sage without problems
> now), but remains the question why did Sage install it in the former?
>
> Best,
>
> Luis
>
> On 1/29/07, Luis Finotti <[EMAIL PROTECTED]> wrote:
> > Hi,
> >
> > After successfully upgrading both my laptop and my work desktop to
> > 2.0, I had problems upgrading my home desktop.  The install went OK (I
> > thought it had succeeded, but when I tried to run it:
> >
> >
> > %%%%%%%%%%%
> >
> > ----------------------------------------------------------------------
> > | SAGE Version 2.0, Release Date: 2007-01-28                         |
> > | Type notebook() for the GUI, and license() for information.        |
> > ----------------------------------------------------------------------
> >
> > ---------------------------------------------------------------------------
> > <type 'exceptions.ImportError'>           Traceback (most recent call last)
> >
> > /home/local/sage-1.5.0.2/local/bin/<ipython console> in <module>()
> >
> > /usr/local/sage-1.5.0.2/local/lib/python2.5/site-packages/sage/all_cmdline.py
> > in <module>()
> >       1 """nodoctest"""
> > ----> 2 from sage.all import *
> >       3
> >
> > /usr/local/sage-1.5.0.2/local/lib/python2.5/site-packages/sage/all.py
> > in <module>()
> >      63 from sage.matrix.all     import *
> >      64 from sage.modules.all    import *
> > ---> 65 from sage.monoids.all    import *
> >      66 from sage.algebras.all   import *
> >      67 from sage.modular.all    import *
> >
> > /usr/local/sage-1.5.0.2/local/lib/python2.5/site-packages/sage/monoids/all.py
> > in <module>()
> >       2
> >       3 from free_monoid import FreeMonoid, is_FreeMonoid
> > ----> 4 from string_monoid import (BinaryStrings, OctalStrings,
> > HexadecimalStrings,
> >       5                            Radix64Strings, AlphabeticStrings)
> >       6
> >
> > /usr/local/sage-1.5.0.2/local/lib/python2.5/site-packages/sage/monoids/string_monoid.py
> > in <module>()
> >      17 from sage.structure.parent_gens import ParentWithGens, 
> > normalize_names
> >      18 from free_monoid import FreeMonoid_class
> > ---> 19 from string_monoid_element import StringMonoidElement
> >      20 from string_ops import strip_encoding
> >      21 from Crypto.Util.number import bytes_to_long
> >
> > /usr/local/sage-1.5.0.2/local/lib/python2.5/site-packages/sage/monoids/string_monoid_element.py
> > in <module>()
> >      21
> >      22 import operator
> > ---> 23 from Crypto.Util.number import long_to_bytes
> >      24 from sage.rings.integer import Integer
> >      25 from sage.rings.real_mpfr import RealField
> >
> > <type 'exceptions.ImportError'>: No module named Crypto.Util.number
> >
> > sage: 2+2
> > ---------------------------------------------------------------------------
> > <type 'exceptions.NameError'>             Traceback (most recent call last)
> >
> > /home/local/sage-1.5.0.2/local/bin/<ipython console> in <module>()
> >
> > <type 'exceptions.NameError'>: name 'Integer' is not defined
> >
> > sage:
> >
> > %%%%%%%%%%%%%%
> >
> > I don't have a 
> > $SAGE_ROOT/local/lib/python2.5/site-packages/Crypto/Util/number.py
> >
> > But, in the install.log file I see:
> >
> > copying build/lib.linux-i686-2.4/Crypto/Util/number.py ->
> > /usr/lib/python2.4/site-packages/Crypto/Util
> >
> > (I did not have python2.5 installed in this machine.  I did install it
> > now, but I suppose it is too late, even if that would have solved the
> > problem.)
> >
> > Since the install log is huge (5.2 Mb) and I haven't found what is the
> > problem in it, I will just post it at
> >
> > www.math.utk.edu/~finotti/install.log
> >
> > if anyone is interested.
> >
> > Any ideas on how to fix it?  (If this seems like it is not a problem
> > with Sage itself, but with my installation, I can just install it from
> > scratch.  I thought if I did not have the proper version of python
> > installed, Sage would install its own version.)
> >
> > Thanks,
> >
> > Luis
> >
>

--~--~---------~--~----~------------~-------~--~----~
To post to this group, send email to sage-support@googlegroups.com
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/sage-support
URLs: http://sage.math.washington.edu/sage/ and http://sage.scipy.org/sage/
-~----------~----~----~----~------~----~------~--~---

Reply via email to