Skip to content

Long python interpreter paths break validate-shema.py.in #2491

@SteVwonder

Description

@SteVwonder

validate-schema.py.in starts with #!@PYTHON@. If the full path to the python interpreter that flux is configured with is >127 characters, it fails to exec (thanks to kernel limits).

→ head -n1 ./src/modules/job-ingest/validators/validate-schema.py                                                                                                                                                                                                │···········
#!/home/herbein1/Repositories/spack/opt/spack/linux-ubuntu18.04-ivybridge/gcc-7.4.0/python-2.7.16-v4r2orsb2vj4zvawlln3npwe4vzntf3r/bin/python 
→ ./src/modules/job-ingest/validators/validate-schema.py                                                                                                                                                                                                     
zsh: ./src/modules/job-ingest/validators/validate-schema.py: bad interpreter: /home/herbein1/Repositories/spack/opt/spack/linux-ubuntu18.04-ivybridge/gcc-7.4.0/python-2.7.16-v4r2orsb2vj4zvawlln3npwe4vzntf: no such file or directory

Switching the shebang to #!/usr/bin/env flux-python should fix this particular problem, but it may cause a regression to the problem seen in #2434.

In it's current state, this file means we cannot run spack install --test=root flux-core for versions 0.12.0, 0.13.0, and master.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions