Skip to content

Conversation

@okurz
Copy link
Member

@okurz okurz commented Sep 8, 2025

This is my attempt related to #67 (comment) to fix the python3.6 build.

Right now this fails with

Run actions/[email protected]
/usr/bin/docker exec  5133eb473d09635d90b10b0a1a3c2ea3c1156a123ba8371e21331bf710dfbacf sh -c "cat /etc/*release | grep ^ID"
Installed versions
  Version 3.6 was not found in the local cache
  Error: The version '3.6' with architecture 'x64' was not found for this operating system.
  The list of all available versions can be found here: https://raw.githubusercontent.com/actions/python-versions/main/versions-manifest.json

I assume setup-python doesn't support an openSUSE Leap base but I am not sure what it means exactly. Help appreciated.

EDIT: I guess I can skip setup-python on 3.6 and instead patch the image to provide dependencies myself. Now fails in https://github.com/os-autoinst/openQA-python-client/actions/runs/17551512131/job/49844883023?pr=73#step:7:43 not being able to find install.requires. Should we change the working directory in the image?

@okurz okurz force-pushed the fix/python36 branch 4 times, most recently from 90102a5 to e358ade Compare September 8, 2025 13:02
@d3flex
Copy link

d3flex commented Sep 8, 2025

@okurz
Copy link
Member Author

okurz commented Sep 9, 2025

@okurz okurz force-pushed the fix/python36 branch 3 times, most recently from b9beb5c to 5dccb6a Compare September 9, 2025 09:12
@okurz
Copy link
Member Author

okurz commented Sep 9, 2025

No, still failing. Also trying to make the path to install.requires absolute does not help:

ERROR: Command errored out with exit status 1:
     command: /__w/openQA-python-client/openQA-python-client/.tox/py36/bin/python /__w/openQA-python-client/openQA-python-client/.tox/py36/lib/python3.6/site-packages/pip/_vendor/pep517/in_process/_in_process.py get_requires_for_build_wheel /tmp/tmp8nyn_7b9
         cwd: /tmp/pip-req-build-lslcam81
    Complete output (16 lines):
    Traceback (most recent call last):
      File "/__w/openQA-python-client/openQA-python-client/.tox/py36/lib/python3.6/site-packages/pip/_vendor/pep517/in_process/_in_process.py", line 363, in <module>
        main()
      File "/__w/openQA-python-client/openQA-python-client/.tox/py36/lib/python3.6/site-packages/pip/_vendor/pep517/in_process/_in_process.py", line 345, in main
        json_out['return_val'] = hook(**hook_input['kwargs'])
      File "/__w/openQA-python-client/openQA-python-client/.tox/py36/lib/python3.6/site-packages/pip/_vendor/pep517/in_process/_in_process.py", line 130, in get_requires_for_build_wheel
        return hook(config_settings)
      File "/tmp/pip-build-env-neg_q5us/overlay/lib/python3.6/site-packages/setuptools/build_meta.py", line 163, in get_requires_for_build_wheel
        config_settings, requirements=['wheel'])
      File "/tmp/pip-build-env-neg_q5us/overlay/lib/python3.6/site-packages/setuptools/build_meta.py", line 143, in _get_build_requires
        self.run_setup()
      File "/tmp/pip-build-env-neg_q5us/overlay/lib/python3.6/site-packages/setuptools/build_meta.py", line 158, in run_setup
        exec(compile(code, __file__, 'exec'), locals())
      File "setup.py", line 39, in <module>
        install_requires=open(path.join(HERE, 'install.requires')).read().splitlines(),
    FileNotFoundError: [Errno 2] No such file or directory: '/tmp/pip-req-build-lslcam81/install.requires'

@AdamWill
Copy link
Contributor

AdamWill commented Sep 9, 2025

Thanks a lot for working on this, but don't kill yourself if it's not critical for you, @okurz . It's a nice-to-have not critical for me. If it's too much effort we can just go ahead and disable Python 3.6 and say we tried, maybe file a low-priority ticket that it'd be nice to add it back if anyone can figure it out.

@okurz
Copy link
Member Author

okurz commented Sep 9, 2025

Thanks a lot for working on this, but don't kill yourself if it's not critical for you, @okurz . It's a nice-to-have not critical for me. If it's too much effort we can just go ahead and disable Python 3.6 and say we tried, maybe file a low-priority ticket that it'd be nice to add it back if anyone can figure it out.

I guess it's fine if we just disable python 3.6 and handle any issues downstream as necessary. For a project as mature and slow-moving as openQA-python-client I guess compatibility issues will be unlikely

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.

3 participants