Skip to content

unset $PYTHONPATH in before tested bootstrapped EasyBuild module#1743

Merged
boegel merged 1 commit intoeasybuilders:developfrom
boegel:travis
Apr 28, 2016
Merged

unset $PYTHONPATH in before tested bootstrapped EasyBuild module#1743
boegel merged 1 commit intoeasybuilders:developfrom
boegel:travis

Conversation

@boegel
Copy link
Copy Markdown
Member

@boegel boegel commented Apr 28, 2016

This avoids weird errors like:

$ module use /tmp/$TRAVIS_JOB_ID/modules/all; module load EasyBuild; eb --version
/home/travis/virtualenv/python2.6.9/lib/python2.6/site-packages/git/odict.py:8: UserWarning: git-python needs the ordereddict module installed in python below 2.6 and below.
  warnings.warn("git-python needs the ordereddict module installed in python below 2.6 and below.")
/home/travis/virtualenv/python2.6.9/lib/python2.6/site-packages/git/odict.py:9: UserWarning: Using standard dictionary as substitute, and cause reordering when writing git config
  warnings.warn("Using standard dictionary as substitute, and cause reordering when writing git config")
Couldn't import dot_parser, loading of dot files will not be possible.
Traceback (most recent call last):
  File "/opt/python/2.6.9/lib/python2.6/runpy.py", line 122, in _run_module_as_main
    "__main__", fname, loader, pkg_name)
  File "/opt/python/2.6.9/lib/python2.6/runpy.py", line 34, in _run_code
    exec code in run_globals
  File "/home/travis/build/hpcugent/easybuild-framework/easybuild/main.py", line 50, in <module>
    import easybuild.tools.options as eboptions
  File "/tmp/126323054/software/EasyBuild/2.7.0/lib/python2.6/site-packages/easybuild_framework-2.7.0-py2.6.egg/easybuild/tools/options.py", line 46, in <module>
    from easybuild.framework.easyblock import MODULE_ONLY_STEPS, SOURCE_STEP, EasyBlock
  File "/home/travis/build/hpcugent/easybuild-framework/easybuild/framework/easyblock.py", line 75, in <module>
    from easybuild.tools.modules import invalidate_module_caches_for, get_software_root, get_software_root_env_var_name
ImportError: cannot import name invalidate_module_caches_for

(occurred in tests for #1742)

@boegel boegel added this to the v2.8.0 milestone Apr 28, 2016
@hpcugentbot
Copy link
Copy Markdown

EasyBuild framework unit test suite PASSed (see https://jenkins1.ugent.be/job/easybuild-framework-pr-builder/2978/console for more details).

This pull request is now ready for review/testing.

Please try and find someone who can tackle this; contact @boegel if you're not sure what to do.

@boegel boegel merged commit f5effe5 into easybuilders:develop Apr 28, 2016
@boegel boegel deleted the travis branch April 28, 2016 10:08
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants