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
grid:faq [2014/12/30 10:55]
goncalo [Grid FAQ]
grid:faq [2014/12/30 11:04]
goncalo [numpy not found]
Line 1: Line 1:
 ====== Grid FAQ ====== ====== Grid FAQ ======
-===== numpy not found =====+===== External Python Module (ex: numpynot found =====
  
 +  * Users have to be carefull about their setup options, because they overwrite default configuration. To exemplify this problem, here is the example of a user which complained that numpy was not found although it was installed in the machine.
  
-Hi Guys... +<​code>​
- +
-As I've discussed with Kevin, the issue is not that numpy is not installed, but the fact that you guys +
-are doing localSetupROOT. This fetches python 2.7.4-x86_64-slc6-gcc48,​ which has no numpy installed by default +
-in CVMFS. +
 $ python $ python
 Python 2.7.4 (default, May  5 2013, 17:33:10) Python 2.7.4 (default, May  5 2013, 17:33:10)
Line 17: Line 13:
   File "<​stdin>",​ line 1, in <​module>​   File "<​stdin>",​ line 1, in <​module>​
 ImportError:​ No module named numpy ImportError:​ No module named numpy
 +</​code>​
 +
 +  * This problem was caused by the fact that:
 +    - user was configuring his environment with **localSetupROOT**. ​
 +    - **localSetupROOT** fetches **python 2.7.4-x86_64-slc6-gcc48** (from CVMFS).
 +    - **python 2.7.4-x86_64-slc6-gcc48** (from CVMFS) does not supports numpy.
  
  
-The solution is to use localSetupSFT ​ ​(this ​sets up the ATLAS environment for LCG externals packagesto set up all +  * The solution is to use localSetupSFT. This sets up the ATLAS environment for LCG externals packages. It allows the user to set up all other python analysis tools that you need for your current python version. That is done with:
-other python analysis tools that you need for your current python version. That is with the following option:+
  
 +<​code>​
 $ localSetupSFT pyanalysis/​1.4_python2.7 $ localSetupSFT pyanalysis/​1.4_python2.7
 ************************************************************************ ************************************************************************
Line 36: Line 38:
 >>>​ import numpy >>>​ import numpy
 >>>​ >>>​
 +</​code>​
  
-Cheers 
-Goncalo 
 ===== Your build job fails (and all other jobs are cancelled) ===== ===== Your build job fails (and all other jobs are cancelled) =====
  
grid/faq.txt · Last modified: 2014/12/30 11:04 by goncalo
 
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