Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add usrlocal mount to Celery node #988

Conversation

sanjaysrikakulam
Copy link
Member

Without this mount point, Python in the galaxy's venv cannot be used on celery node to start celery services and will raise the following error

Could not find platform independent libraries <prefix>
Could not find platform dependent libraries <exec_prefix>
Python path configuration:
  PYTHONHOME = (not set)
  PYTHONPATH = 'server/lib'
  program name = '/opt/galaxy/venv/bin/python'
  isolated = 0
  environment = 1
  user site = 1
  safe_path = 0
  import site = 1
  is in build tree = 0
  stdlib dir = '/usr/local/tools/_conda/envs/[email protected]/lib/python3.11'
  sys._base_executable = '/usr/local/tools/_conda/envs/[email protected]/bin/python'
  sys.base_prefix = '/usr/local/tools/_conda/envs/[email protected]'
  sys.base_exec_prefix = '/usr/local/tools/_conda/envs/[email protected]'
  sys.platlibdir = 'lib'
  sys.executable = '/opt/galaxy/venv/bin/python'
  sys.prefix = '/usr/local/tools/_conda/envs/[email protected]'
  sys.exec_prefix = '/usr/local/tools/_conda/envs/[email protected]'
  sys.path = [
    '/opt/galaxy/server/lib',
    '/usr/local/tools/_conda/envs/[email protected]/lib/python311.zip',
    '/usr/local/tools/_conda/envs/[email protected]/lib/python3.11',
    '/usr/local/tools/_conda/envs/[email protected]/lib/python3.11/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 0x00007f485ba3e740 (most recent call first):
  <no Python frame>

@bgruening manually mounted this in the past during the migration to Python 3.11 and Galaxy 23.1.

Without this Python in the galaxy's venv will not work on celery node
Copy link
Contributor

@mira-miracoli mira-miracoli left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

thanks for finding this!

@mira-miracoli mira-miracoli merged commit a43fab1 into usegalaxy-eu:master Nov 13, 2023
2 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants