Globus can't find python - linux + conda

243 views
Skip to first unread message

A

unread,
Jun 9, 2021, 5:09:15 PM6/9/21
to Discuss
Hello,

when I run ./globusconnectpersonal -start -debug

I get 
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 32635 exited, rc=1
Traceback (most recent call last):
  File "./gc-ctrl.py", line 371, in <module>
    start(debug=True)
  File "./gc-ctrl.py", line 191, in start
    send2clients(fds[2:], mesg.encode('utf-8'))
AttributeError: 'bytes' object has no attribute 'encode'

After I tried to set PYTHONHOME and PYTHONPATH, I get:
Python path configuration:
  PYTHONHOME = '/home/username/miniconda3/bin/python'
  PYTHONPATH = '/home/username/miniconda3/'
  program name = '/home/username/miniconda3/bin/python3'
  isolated = 0
  environment = 1
  user site = 1
  import site = 1
  sys._base_executable = '/home/username/miniconda3/bin/python3'
  sys.base_prefix = '/home/username/miniconda3/bin/python'
  sys.base_exec_prefix = '/home/username/miniconda3/bin/python'
  sys.executable = '/home/username/miniconda3/bin/python3'
  sys.prefix = '/home/username/miniconda3/bin/python'
  sys.exec_prefix = '/home/username/miniconda3/bin/python'
  sys.path = [
    '/home/username/miniconda3/',
    '/home/username/miniconda3/bin/python/lib/python38.zip',
    '/home/username/miniconda3/bin/python/lib/python3.8',
    '/home/username/miniconda3/bin/python/lib/python3.8/lib-dynload',
  ]
Fatal Python error: init_fs_encoding: failed to get the Python codec of the filesystem encoding
Python runtime state: core initialized
ModuleNotFoundError: No module named 'encodings'

Current thread 0x00007f7dfb303740 (most recent call first):
<no Python frame>

Could you please help me fix this?

Thanks.

Dan Powers

unread,
Jun 11, 2021, 5:40:40 PM6/11/21
to Discuss, anshuman...@gmail.com
Hi,

It looks like you're using a version of Anaconda. We only test the Globus Connect Personal (GCP) software with the standard system python for our supported distributions. It is known that using python versions other than the standard system python (such as Anaconda) can cause the GCP software to fail. To resolve this issue, you'll want to configure your environment to use the standard system python - at least for the GCP software. If you should require further support on this matter, you'll want to open a ticket with us at sup...@globus.org.

-Dan Powers
Reply all
Reply to author
Forward
0 new messages