CoEPP RC
 

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revision Previous revision
cloud:image_cernvm_2.5.1 [2013/07/25 15:23]
scrosby
cloud:image_cernvm_2.5.1 [2013/07/25 15:31] (current)
scrosby
Line 344: Line 344:
 </​code>​ </​code>​
  
 +===== Rucio pilots =====
  
 +Default CERNVM was not working with Rucio pilots. This was caused by Python not being able to import the '​hashlib'​ module. On regular SL5, Python2.4 also doesn'​t have the '​hashlib'​ module, but '​md5'​ was used as a fallback. '​md5'​ wasn't working on the CERNVM image either, so '​hashlib'​ was installed.
 +
 +Sean compiled hashlib and copied the files into /​usr/​lib64/​python2.4/​site-packages
 +
 +Hashlib was downloaded from here - [[https://​pypi.python.org/​pypi/​hashlib/​20081119]]. The file downloaded was hashlib-20081119.zip
 +
 +<​code>​
 +unzip hashlib-20081119.zip
 +cd hashlib-20081119
 +python setup.py build
 +python setup.py install
 +</​code>​
 +
 +This installs into /​usr/​lib64/​python2.4/​site-packages:​
 +
 +<​code>​
 +_md5.so
 +_sha.so
 +_sha256.so
 +_sha512.so
 +hashlib.py
 +hashlib.pyc
 +</​code>​
 +
 +You should now be able to import the module hashlib into python
 +
 +<​code>​
 +[root@vm-118-138-241-196 build]# python
 +Python 2.4.3 (#1, Sep 20 2011, 06:​04:​31) ​
 +[GCC 4.1.2 20080704 (Red Hat 4.1.2-51)] on linux2
 +Type "​help",​ "​copyright",​ "​credits"​ or "​license"​ for more information.
 +>>>​ from hashlib import md5
 +>>> ​
 +</​code>​
  
 ===== CVMFS Configuration ===== ===== CVMFS Configuration =====
cloud/image_cernvm_2.5.1.txt · Last modified: 2013/07/25 15:31 by scrosby
 
Except where otherwise noted, content on this wiki is licensed under the following license: CC Attribution-Share Alike 4.0 International
Recent changes RSS feed Donate Powered by PHP Valid XHTML 1.0 Valid CSS Driven by DokuWiki