【问题标题】:How to solve easybuild installation problems如何解决easybuild安装问题
【发布时间】:2022-06-10 19:46:45
【问题描述】:

我正在尝试在 miniconda 虚拟环境中的 centos 7.9 上安装 easybuild,但遇到了问题。我使用 conda 安装 lmod 没有问题,然后尝试使用 pip 作为“pip install easybuild”安装easybuild。输出附加在下面。关于接下来要尝试什么的任何建议?

    python -V : Python 3.10.4

    type module
module is a function
module () 
{ 
    local __lmod_my_status;
    local __lmod_sh_dbg;
    if [ -z "${LMOD_SH_DBG_ON+x}" ]; then
        case "$-" in 
            *v*x*)
                __lmod_sh_dbg='vx'
            ;;
            *v*)
                __lmod_sh_dbg='v'
            ;;
            *x*)
                __lmod_sh_dbg='x'
            ;;
        esac;
    fi;
    if [ -n "${__lmod_sh_dbg:-}" ]; then
        set +$__lmod_sh_dbg;
        echo "Shell debugging temporarily silenced: export LMOD_SH_DBG_ON=1 for Lmod's output" 1>&2;
    fi;
    eval "$($LMOD_CMD bash "$@")" && eval $(${LMOD_SETTARG_CMD:-:} -s sh);
    __lmod_my_status=$?;
    if [ -n "${__lmod_sh_dbg:-}" ]; then
        echo "Shell debugging restarted" 1>&2;
        set -$__lmod_sh_dbg;
    fi;
    return $__lmod_my_status
}

    >module --version

Modules based on Lua: Version 8.6.17  2022-03-25 19:53 -05:00
    by Robert McLay mclay@tacc.utexas.edu


module av EasyBuild
No module(s) or extension(s) found!


which -a eb
/data/miniconda/envs/easybuild/bin/eb

eb --version
This is EasyBuild 4.5.3 (framework: 4.5.3, easyblocks: 0.0.UNKNOWN.EASYBLOCKS) on host muon.




       >pip install easybuild
Collecting easybuild
  Using cached easybuild-4.5.3-py3-none-any.whl
Collecting easybuild-framework==4.5.3
  Using cached easybuild_framework-4.5.3-py3-none-any.whl
Collecting easybuild-easyblocks==4.5.3
  Using cached easybuild_easyblocks-4.5.3-py3-none-any.whl
Collecting easybuild-easyconfigs==4.5.3
  Using cached easybuild-easyconfigs-4.5.3.tar.gz (7.3 MB)
  Preparing metadata (setup.py) ... done
Building wheels for collected packages: easybuild-easyconfigs
  Building wheel for easybuild-easyconfigs (setup.py) ... error
  error: subprocess-exited-with-error
  
  × python setup.py bdist_wheel did not run successfully.
  │ exit code: 1
  ╰─> [29 lines of output]
      Installing version 4.5.3 (required versions: API >= 4, easyblocks >= 4.5)
      running bdist_wheel
      running build
      running build_py
      package init file 'easybuild/__init__.py' not found (or not a regular file)
      package init file 'easybuild/easyconfigs/__init__.py' not found (or not a regular file)
      package init file 'easybuild/easyconfigs/__archive__/__init__.py' not found (or not a regular file)
      package init file 'easybuild/easyconfigs/a/__init__.py' not found (or not a regular file)
      package init file 'easybuild/easyconfigs/b/__init__.py' not found (or not a regular file)
      package init file 'easybuild/easyconfigs/c/__init__.py' not found (or not a regular file)
      package init file 'easybuild/easyconfigs/d/__init__.py' not found (or not a regular file)
      package init file 'easybuild/easyconfigs/e/__init__.py' not found (or not a regular file)
      package init file 'easybuild/easyconfigs/f/__init__.py' not found (or not a regular file)
      package init file 'easybuild/easyconfigs/g/__init__.py' not found (or not a regular file)
      package init file 'easybuild/easyconfigs/h/__init__.py' not found (or not a regular file)
      package init file 'easybuild/easyconfigs/i/__init__.py' not found (or not a regular file)
      package init file 'easybuild/easyconfigs/j/__init__.py' not found (or not a regular file)
      package init file 'easybuild/easyconfigs/k/__init__.py' not found (or not a regular file)
      package init file 'easybuild/easyconfigs/l/__init__.py' not found (or not a regular file)
      package init file 'easybuild/easyconfigs/m/__init__.py' not found (or not a regular file)
      package init file 'easybuild/easyconfigs/n/__init__.py' not found (or not a regular file)
      package init file 'easybuild/easyconfigs/o/__init__.py' not found (or not a regular file)
      package init file 'easybuild/easyconfigs/p/__init__.py' not found (or not a regular file)
      creating build
      creating build/lib
      creating build/lib/easybuild
      creating build/lib/easybuild/easyconfigs
      creating build/lib/easybuild/easyconfigs/p
      error: can't copy 'easybuild/easyconfigs/p/path.py': doesn't exist or not a regular file
      [end of output]
  
  note: This error originates from a subprocess, and is likely not a problem with pip.
  ERROR: Failed building wheel for easybuild-easyconfigs
  Running setup.py clean for easybuild-easyconfigs
Failed to build easybuild-easyconfigs
Installing collected packages: easybuild-framework, easybuild-easyconfigs, easybuild-easyblocks, easybuild
  Running setup.py install for easybuild-easyconfigs ... error
  error: subprocess-exited-with-error
  
  × Running setup.py install for easybuild-easyconfigs did not run successfully.
  │ exit code: 1
  ╰─> [31 lines of output]
      Installing version 4.5.3 (required versions: API >= 4, easyblocks >= 4.5)
      running install
      /data/miniconda/envs/easybuild/lib/python3.10/site-packages/setuptools/command/install.py:34: SetuptoolsDeprecationWarning: setup.py install is deprecated. Use build and pip and other standards-based tools.
        warnings.warn(
      running build
      running build_py
      package init file 'easybuild/__init__.py' not found (or not a regular file)
      package init file 'easybuild/easyconfigs/__init__.py' not found (or not a regular file)
      package init file 'easybuild/easyconfigs/__archive__/__init__.py' not found (or not a regular file)
      package init file 'easybuild/easyconfigs/a/__init__.py' not found (or not a regular file)
      package init file 'easybuild/easyconfigs/b/__init__.py' not found (or not a regular file)
      package init file 'easybuild/easyconfigs/c/__init__.py' not found (or not a regular file)
      package init file 'easybuild/easyconfigs/d/__init__.py' not found (or not a regular file)
      package init file 'easybuild/easyconfigs/e/__init__.py' not found (or not a regular file)
      package init file 'easybuild/easyconfigs/f/__init__.py' not found (or not a regular file)
      package init file 'easybuild/easyconfigs/g/__init__.py' not found (or not a regular file)
      package init file 'easybuild/easyconfigs/h/__init__.py' not found (or not a regular file)
      package init file 'easybuild/easyconfigs/i/__init__.py' not found (or not a regular file)
      package init file 'easybuild/easyconfigs/j/__init__.py' not found (or not a regular file)
      package init file 'easybuild/easyconfigs/k/__init__.py' not found (or not a regular file)
      package init file 'easybuild/easyconfigs/l/__init__.py' not found (or not a regular file)
      package init file 'easybuild/easyconfigs/m/__init__.py' not found (or not a regular file)
      package init file 'easybuild/easyconfigs/n/__init__.py' not found (or not a regular file)
      package init file 'easybuild/easyconfigs/o/__init__.py' not found (or not a regular file)
      package init file 'easybuild/easyconfigs/p/__init__.py' not found (or not a regular file)
      creating build
      creating build/lib
      creating build/lib/easybuild
      creating build/lib/easybuild/easyconfigs
      creating build/lib/easybuild/easyconfigs/p
      error: can't copy 'easybuild/easyconfigs/p/path.py': doesn't exist or not a regular file
      [end of output]
  
  note: This error originates from a subprocess, and is likely not a problem with pip.
error: legacy-install-failure

× Encountered error while trying to install package.
╰─> easybuild-easyconfigs

note: This is an issue with the package mentioned above, not pip.
hint: See above for output from the failure.

【问题讨论】:

  • 当我指定conda虚拟环境使用python==3.9时,上述错误信息消失,安装成功。另一方面,模块命令无法识别 easybuild 安装,例如模块加载 EasyBuild Lmod 检测到以下错误:以下模块未知:“EasyBuild”

标签: python-3.x pip


【解决方案1】:

您遇到了由 setuptools 61.0 中的最近更改引起的问题,该更改已在 EasyBuild v4.5.5 中修复;请参阅https://github.com/easybuilders/easybuild/issues/790https://github.com/easybuilders/easybuild-easyconfigs/pull/15206 了解更多详情。

因此,如果您现在再试一次,它应该可以工作,因为您将从 PyPI(或任何最新版本)中提取 EasyBuild v4.5.5

【讨论】:

    猜你喜欢
    • 2021-07-14
    • 2019-11-16
    • 2021-03-06
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 2019-09-10
    相关资源
    最近更新 更多