1

我正在尝试按照本教程安装和配置 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'

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

4

2 回答 2

2

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

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

我没有尝试手动设置路径

于 2021-10-05T06:13:32.320 回答
0

我在 Miniconda 环境中使用 Python3.8 时遇到了同样的问题。当我禁用 conda 时:

conda deactivate 

然后我可以用我的原生 Python2.7 运行“globusconnectpersonal -start”。我不知道是因为客户端需要 Python2 还是 conda 有干扰,但他为我解决了问题。

于 2021-06-09T16:36:13.417 回答