Hi Loris,

On 22/01/2020 17:16, Loris Bennett wrote:
Hi Sam,

Sam Moors <[email protected]> writes:

Hi Loris,
I suspect it's due to the './' in front of your files.
You should add the path relative to the installation dir.
If the file is in the installation dir, just remove the './'.
If the file is in lib/ then add 'lib/' in front of the file.

Does this help?

Unfortunately not.  I did originally have

   sanity_check_paths = {
       'files': ['voreentool', 'libvoreen_core.so'],
       'dirs': ['resource'],
   }

and got the same error.  Because the files are usually in 'bin'
or something, I thought rather speculatively that maybe file names
without a directory were being misinterpreted, so that's why I added the
'./'.  That is obviously not an absolute path, so the error must be
coming from somewhere else.

Can you share the full easyconfig file you are using for this, so we can try and reproduce the issue?

The error is a bit cryptic, it could/should tell for which environment variable this is, which would make it easier to pinpoint the problem...


regards,

Kenneth


Cheers,

Loris

Sam
On Wed, Jan 22, 2020 at 4:12 PM Loris Bennett <[email protected]> 
wrote:

  Hi,

  I am trying to build a package, but am failing at the sanity check
  stage:

    == 2020-01-22 16:03:20,211 build_log.py:169 ERROR EasyBuild crashed with an 
error (at 
easybuild/software/EasyBuild/4.1.1/lib/python2.7/site-packages/easybuild/base/exceptions.py:124
 in __init__):
  Absolute path 
/trinity/shared/easybuild/software/voreen/5.1.1-foss-2018b-Python-3.6.6 passed 
to update_paths which only expects relative paths. (at
  
easybuild/software/EasyBuild/4.1.1/lib/python2.7/site-packages/easybuild/tools/module_generator.py:1325
 in update_paths)
    == 2020-01-22 16:03:20,211 easyblock.py:2557 WARNING Sanity check: loading 
fake module failed: 'Absolute path 
/trinity/shared/easybuild/software/voreen/5.1.1-foss-2018b-Python-3.6.6 passed 
to
  update_paths which only expects relative paths.'
    == 2020-01-22 16:03:20,211 build_log.py:169 ERROR EasyBuild crashed with an 
error (at 
easybuild/software/EasyBuild/4.1.1/lib/python2.7/site-packages/easybuild/base/exceptions.py:124
 in __init__): Sanity
  check failed: loading fake module failed: 'Absolute path 
/trinity/shared/easybuild/software/voreen/5.1.1-foss-2018b-Python-3.6.6 passed 
to update_paths which only expects relative paths.' (at
  
easybuild/software/EasyBuild/4.1.1/lib/python2.7/site-packages/easybuild/framework/easyblock.py:2596
 in _sanity_check_step)
    == 2020-01-22 16:03:20,212 easyblock.py:3109 WARNING build failed (first 
300 chars): Sanity check failed: loading fake module failed: 'Absolute path
  /trinity/shared/easybuild/software/voreen/5.1.1-foss-2018b-Python-3.6.6 
passed to update_paths which only expects relative paths.'

  In my EC I have:

    sanity_check_paths = {
        'files': ['./voreentool', './libvoreen_core.so'],
        'dirs': ['resource'],
    }

  What am I doing wrong and how can I rerun EB skipping everything before
  the sanity check stage?

  Cheers,

  Loris

  --
  Dr. Loris Bennett (Mr.)
  ZEDAT, Freie Universität Berlin         Email [email protected]

Reply via email to