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
Next revision
Previous revision
grid:faq [2013/07/16 10:54]
lucien
grid:faq [2014/12/30 11:04]
goncalo [numpy not found]
Line 1: Line 1:
 ====== Grid FAQ ====== ====== Grid FAQ ======
 +===== External Python Module (ex: numpy) not 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.
 +
 +<​code>​
 +$ python
 +Python 2.7.4 (default, May  5 2013, 17:33:10)
 +[GCC 4.8.0] on linux2
 +Type "​help",​ "​copyright",​ "​credits"​ or "​license"​ for more information.
 +>>>​ import numpy
 +Traceback (most recent call last):
 +  File "<​stdin>",​ line 1, in <​module>​
 +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 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:
 +
 +<​code>​
 +$ localSetupSFT pyanalysis/​1.4_python2.7
 +************************************************************************
 +  Current GCC version: gcc (GCC) 4.8.1
 +  Python version in your path is 2.7
 +Setting up pyanalysis 1.4_python2.7 ...
 + The env $SFT_HOME_pyanalysis is the home dir
 +************************************************************************
 +
 +$ python
 +Python 2.7.4 (default, May  5 2013, 17:33:10)
 +[GCC 4.8.0] on linux2
 +Type "​help",​ "​copyright",​ "​credits"​ or "​license"​ for more information.
 +>>>​ import numpy
 +>>>​
 +</​code>​
  
 ===== 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