Hi,

On 2/18/07, William Stein <[EMAIL PROTECTED]> wrote:
> Definitely copying that Crypto directory is the wrong thing to do, and you
> should remove it.  Then you should do
>   sage -f pycrypto-2.0.1.spkg
> and finally
>   sage -upgrade

Thanks.  But it did not work:

debian[/usr/local/sage-1.5.0.2/local/lib/python2.5/site-packages]#  rm
-rf Crypto
debian[/usr/local/sage-1.5.0.2/local/lib/python2.5/site-packages]#
sage -f pycrypto-2.0.1.spkg
Force installing pycrypto-2.0.1.spkg
Calling sage-spkg on pycrypto-2.0.1.spkg
WARNING: Using SAGE_ROOT variable that was already set to
'/usr/local/sage-1.5.0.2'.
pycrypto-2.0.1
Machine:
Linux debian 2.6.17-2-k7 #1 SMP Wed Sep 13 17:18:46 UTC 2006 i686 GNU/Linux
Deleting directories from past builds of previous/current versions of
pycrypto-2.0.1
Extracting package /usr/local/sage-1.5.0.2/spkg/standard/pycrypto-2.0.1.spkg ...
-rw-r--r-- 1 root root 139361 2006-12-13 00:20
/usr/local/sage-1.5.0.2/spkg/standard/pycrypto-2.0.1.spkg
pycrypto-2.0.1/
pycrypto-2.0.1/__init__.py
pycrypto-2.0.1/ACKS
pycrypto-2.0.1/ChangeLog
pycrypto-2.0.1/Cipher/
pycrypto-2.0.1/Cipher/__init__.py
pycrypto-2.0.1/Doc/
pycrypto-2.0.1/Doc/pycrypt.tex
pycrypto-2.0.1/Hash/
pycrypto-2.0.1/Hash/__init__.py
pycrypto-2.0.1/Hash/HMAC.py
pycrypto-2.0.1/Hash/MD5.py
pycrypto-2.0.1/Hash/SHA.py
pycrypto-2.0.1/LICENSE
pycrypto-2.0.1/MANIFEST
pycrypto-2.0.1/PKG-INFO
pycrypto-2.0.1/Protocol/
pycrypto-2.0.1/Protocol/__init__.py
pycrypto-2.0.1/Protocol/AllOrNothing.py
pycrypto-2.0.1/Protocol/Chaffing.py
pycrypto-2.0.1/PublicKey/
pycrypto-2.0.1/PublicKey/__init__.py
pycrypto-2.0.1/PublicKey/DSA.py
pycrypto-2.0.1/PublicKey/ElGamal.py
pycrypto-2.0.1/PublicKey/pubkey.py
pycrypto-2.0.1/PublicKey/qNEW.py
pycrypto-2.0.1/PublicKey/RSA.py
pycrypto-2.0.1/PublicKey/test/
pycrypto-2.0.1/PublicKey/test/rsa_speed.py
pycrypto-2.0.1/README
pycrypto-2.0.1/setup.py
pycrypto-2.0.1/spkg-install
pycrypto-2.0.1/src/
pycrypto-2.0.1/src/_dsa.c
pycrypto-2.0.1/src/_fastmath.c
pycrypto-2.0.1/src/_rsa.c
pycrypto-2.0.1/src/AES.c
pycrypto-2.0.1/src/ARC2.c
pycrypto-2.0.1/src/ARC4.c
pycrypto-2.0.1/src/block_template.c
pycrypto-2.0.1/src/Blowfish.c
pycrypto-2.0.1/src/CAST.c
pycrypto-2.0.1/src/cast5.c
pycrypto-2.0.1/src/DES.c
pycrypto-2.0.1/src/DES3.c
pycrypto-2.0.1/src/hash_template.c
pycrypto-2.0.1/src/IDEA.c
pycrypto-2.0.1/src/MD2.c
pycrypto-2.0.1/src/MD4.c
pycrypto-2.0.1/src/RC5.c
pycrypto-2.0.1/src/RIPEMD.c
pycrypto-2.0.1/src/SHA256.c
pycrypto-2.0.1/src/stream_template.c
pycrypto-2.0.1/src/winrand.c
pycrypto-2.0.1/src/XOR.c
pycrypto-2.0.1/test/
pycrypto-2.0.1/test/template
pycrypto-2.0.1/test/test_chaffing.py
pycrypto-2.0.1/test/test_hashes.py
pycrypto-2.0.1/test/test_number.py
pycrypto-2.0.1/test/test_publickey.py
pycrypto-2.0.1/test/test_randpool.py
pycrypto-2.0.1/test/test_rfc1751.py
pycrypto-2.0.1/test/testdata.py
pycrypto-2.0.1/test.py
pycrypto-2.0.1/TODO
pycrypto-2.0.1/Util/
pycrypto-2.0.1/Util/__init__.py
pycrypto-2.0.1/Util/number.py
pycrypto-2.0.1/Util/randpool.py
pycrypto-2.0.1/Util/RFC1751.py
pycrypto-2.0.1/Util/test/
pycrypto-2.0.1/Util/test/prime_speed.py
pycrypto-2.0.1/Util/test.py
Finished extraction
****************************************************
Host system
uname -a:
Linux debian 2.6.17-2-k7 #1 SMP Wed Sep 13 17:18:46 UTC 2006 i686 GNU/Linux
****************************************************
****************************************************
GCC Version
gcc -v
Using built-in specs.
Target: i486-linux-gnu
Configured with: ../src/configure -v
--enable-languages=c,c++,fortran,objc,obj-c++,treelang --prefix=/usr
--enable-shared --with-system-zlib --libexecdir=/usr/lib
--without-included-gettext --enable-threads=posix --enable-nls
--program-suffix=-4.1 --enable-__cxa_atexit --enable-clocale=gnu
--enable-libstdcxx-debug --enable-mpfr --with-tune=i686
--enable-checking=release i486-linux-gnu
Thread model: posix
gcc version 4.1.2 20061115 (prerelease) (Debian 4.1.1-21)
****************************************************
Traceback (most recent call last):
  File "setup.py", line 5, in ?
    from distutils import core
  File "/usr/local/sage-1.5.0.2/local/lib/python/distutils/core.py",
line 21, in ?
    from distutils.dist import Distribution
  File "/usr/local/sage-1.5.0.2/local/lib/python/distutils/dist.py",
line 16, in ?
    import warnings
  File "/usr/local/sage-1.5.0.2/local/lib/python/warnings.py", line 264, in ?
    simplefilter("ignore", category=ImportWarning, append=1)
NameError: name 'ImportWarning' is not defined

real    0m0.331s
user    0m0.168s
sys     0m0.012s
sage: An error occured while installing pycrypto-2.0.1
Please email William Stein <[EMAIL PROTECTED]> explaining the
problem and send him the relevant part of
of /usr/local/sage-1.5.0.2/install.log.  Don't send the whole thing.
If you want to try to fix the problem, yourself *don't* just cd to
/usr/local/sage-1.5.0.2/spkg/build/pycrypto-2.0.1 and type 'make'.
Instead (using bash) type "source local/bin/sage-env" from the directory
/usr/local/sage-1.5.0.2
in order to set all environment variables correctly, then cd to
/usr/local/sage-1.5.0.2/spkg/build/pycrypto-2.0.1

I don't want to waste anyone's time if this seems to be something I
did wrong (and not a bug or something someone else might encounter).
In that case, I can just reinstall from scratch...

Thanks again,

Luis

--~--~---------~--~----~------------~-------~--~----~
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
URLs: http://sage.math.washington.edu/sage/ and http://sage.scipy.org/sage/
-~----------~----~----~----~------~----~------~--~---

Reply via email to