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

Fails to install 3006.1 from Git on Alma 8 #1927

Open
dmurphy18 opened this issue May 11, 2023 · 1 comment
Open

Fails to install 3006.1 from Git on Alma 8 #1927

dmurphy18 opened this issue May 11, 2023 · 1 comment
Assignees

Comments

@dmurphy18
Copy link
Contributor

Description of Issue/Question

bootstrap install from git with v3006.1 fails due to annotations in looseversion dunder init.

Setup

Using latest bootstrap 2023.04.26, having failures on Alma 8 which is using Python 3.6 as default python

Steps to Reproduce Issue

./bootstrap-salt.sh git v3006.1

Versions and Systems

./bootstrap-salt.sh -- Version 2023.04.26
[root@Unknown tmp]# cat /etc/redhat-release
AlmaLinux release 8.7 (Stone Smilodon)

Up to date Alma 8.7 as of 2023-05-11
Problem log

/usr/lib/python3.6/site-packages/pip/commands/install.py:204: UserWarning: Disabling all use of wheels due to the use of --build-options / --global-options / --install-options.
  cmdoptions.check_install_build_global(options)
WARNING: Running pip install with root privileges is generally not a good idea. Try `pip3.6 install --user` instead.
Processing ./deps/salt-3006.1-py3-none-any.whl
Installing collected packages: salt
Successfully installed salt-3006.1
 *  INFO: Checking if Salt can be imported using python3
Traceback (most recent call last):
  File "<string>", line 4, in <module>
  File "/usr/lib/python3.6/site-packages/salt/__init__.py", line 140, in <module>
    import salt._logging  # isort:skip
  File "/usr/lib/python3.6/site-packages/salt/_logging/__init__.py", line 12, in <module>
    from salt._logging.impl import (
  File "/usr/lib/python3.6/site-packages/salt/_logging/impl.py", line 28, in <module>
    from salt._logging.handlers import DeferredStreamHandler  # isort:skip
  File "/usr/lib/python3.6/site-packages/salt/_logging/handlers.py", line 16, in <module>
    from salt.utils.versions import warn_until_date
  File "/usr/lib/python3.6/site-packages/salt/utils/versions.py", line 18, in <module>
    import looseversion
  File "/usr/lib/python3.6/site-packages/looseversion/__init__.py", line 19
    from __future__ import annotations
    ^
SyntaxError: future feature annotations is not defined
 * ERROR: Failed to run install_almalinux_git()!!!

This may be a case of cannot use bootstrap install on systems with less than Python 3.7, in which case need to note issue on Install Guild.

@dmurphy18
Copy link
Contributor Author

No problems with Centos 9

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

No branches or pull requests

2 participants