首页 > 解决方案 > 为什么 Globus Connect Personal 不工作?

问题描述

我正在尝试按照本教程安装和配置 Globus Connect Personal for Linux(我有一个 CentOS 8) 。但是,当我尝试通过运行设置 Globus 连接个人时,./globusconnectpersonal -start我收到此错误

Could not find platform independent libraries <prefix>
Could not find platform dependent libraries <exec_prefix>
Consider setting $PYTHONHOME to <prefix>[:<exec_prefix>]
Python path configuration:
  PYTHONHOME = (not set)
  PYTHONPATH = (not set)
  program name = 'gc.py'
  isolated = 0
  environment = 1
  user site = 1
  import site = 1
  sys._base_executable = ''
  sys.base_prefix = '/tmp/build/80754af9/python_1599203911753/_h_env_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placeho'
  sys.base_exec_prefix = '/tmp/build/80754af9/python_1599203911753/_h_env_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placeho'
  sys.executable = ''
  sys.prefix = '/tmp/build/80754af9/python_1599203911753/_h_env_placehold_
Subprocess pid 1722896 exited, rc=1
Traceback (most recent call last):
  File "./gc-ctrl.py", line 369, in <module>
    start(debug=False)
  File "./gc-ctrl.py", line 191, in start
    send2clients(fds[2:], mesg.encode('utf-8'))
AttributeError: 'bytes' object has no attribute 'encode'

有人知道这意味着什么吗?

标签: httpglobus-toolkit

解决方案


我认为需要有 PYTHONHOME 和 PYTHONPATH。我创建了一个conda 环境,其中只有正确版本的 python。然后我在 conda 环境中运行 ./globusconnectpersonal 。

使用 conda 环境也适用于非 GUI 形式的 globus。

我没有尝试手动设置路径


推荐阅读