为什么 Globus Connect Personal 不工作?
Why is Globus Connect Personal not working?
我正在尝试为 Linux 安装和配置 Globus Connect Personal(我有 CentOS 8),遵循 this tutorial。但是,当我尝试通过 运行 ./globusconnectpersonal -start
设置个人 Globus 连接时,出现此错误
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'
有人知道这是什么意思吗?
当我在 Miniconda 环境中使用 Python3.8 时,我 运行 遇到了同样的问题。当我禁用 conda 时:
conda deactivate
然后我可以 运行 使用我的母语 Python2.7“globusconnectpersonal -start”。我不知道是因为客户需要 Python2 还是 conda 干扰了,但他为我解决了问题。
我认为需要有PYTHONHOME和PYTHONPATH。我创建了一个 conda environment,里面只有 python 的正确版本。然后我在conda环境里面运行./globusconnectpersonal.
使用 conda 环境也适用于非 GUI 形式的 globus。
我没试过setting the paths manually。
我正在尝试为 Linux 安装和配置 Globus Connect Personal(我有 CentOS 8),遵循 this tutorial。但是,当我尝试通过 运行 ./globusconnectpersonal -start
设置个人 Globus 连接时,出现此错误
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'
有人知道这是什么意思吗?
当我在 Miniconda 环境中使用 Python3.8 时,我 运行 遇到了同样的问题。当我禁用 conda 时:
conda deactivate
然后我可以 运行 使用我的母语 Python2.7“globusconnectpersonal -start”。我不知道是因为客户需要 Python2 还是 conda 干扰了,但他为我解决了问题。
我认为需要有PYTHONHOME和PYTHONPATH。我创建了一个 conda environment,里面只有 python 的正确版本。然后我在conda环境里面运行./globusconnectpersonal.
使用 conda 环境也适用于非 GUI 形式的 globus。
我没试过setting the paths manually。