Skip to content

DXE-6210 Fix artifacts on new pythons#29

Open
wzagrajcz wants to merge 1 commit intoakamai:masterfrom
wzagrajcz:bugfix/DXE-6210-fix-artifacts
Open

DXE-6210 Fix artifacts on new pythons#29
wzagrajcz wants to merge 1 commit intoakamai:masterfrom
wzagrajcz:bugfix/DXE-6210-fix-artifacts

Conversation

@wzagrajcz
Copy link
Copy Markdown

There appear a problem in newer (3.12+) version of Python in usage of cli-firewall package as it was noticed in recent akamai-docker images:

docker run --rm -w / akamai/shell:v2.33.4 sh -c 'akamai firewall -h'
                ___    __                         _
               /   |  / /______ _____ ___  ____ _(_)
              / /| | / //_/ __ `/ __ `__ \/ __ `/ /
             / ___ |/ ,< / /_/ / / / / / / /_/ / /
            /_/  |_/_/|_|\__,_/_/ /_/ /_/\__,_/_/
===============================================================
=  Welcome to the Akamai Docker Image                         =
===============================================================
=  Project page:                                              =
=  https://github.com/akamai/akamai-docker                    =
===============================================================
/cli/.akamai-cli/venv/cli-firewall/lib/python3.12/site-packages/prettytable.py:74: SyntaxWarning: invalid escape sequence '\['
  _re = re.compile("\033\[[0-9;]*m")
/cli/.akamai-cli/venv/cli-firewall/lib/python3.12/site-packages/prettytable.py:800: SyntaxWarning: invalid escape sequence '\{'
  self.vertical_char = random.choice("~!@#$%^&*()_+|-=\{}[];':\",./;<>?")
/cli/.akamai-cli/venv/cli-firewall/lib/python3.12/site-packages/prettytable.py:801: SyntaxWarning: invalid escape sequence '\{'
  self.horizontal_char = random.choice("~!@#$%^&*()_+|-=\{}[];':\",./;<>?")
/cli/.akamai-cli/venv/cli-firewall/lib/python3.12/site-packages/prettytable.py:802: SyntaxWarning: invalid escape sequence '\{'
  self.junction_char = random.choice("~!@#$%^&*()_+|-=\{}[];':\",./;<>?")
Usage: firewall [OPTIONS] COMMAND [ARGS]...  Akamai CLI for Firewall RulesOptions:
  --edgerc TEXT       Location of the credentials file [$AKAMAI_EDGERC]
  --section TEXT      Section of the credentials file [$AKAMAI_EDGERC_SECTION]
  --account-key TEXT  Account Key
  --version           Show the version and exit.
  -h, --help          Show this message and exit.Commands:
  help                Show help information
  list-cidrs          List the CIDRs for current subscription or a specific...
  list-services       List all firewall rules services available
  list-subscriptions  List current subscriptions
  subscribe           Subscribe to a firewall rules service
  unsubscribe         Unsubscribe from a firewall rules service 

Suggesting to bump prettytable dependency. One important notice: based on the changelog it will drop support for version 3.9, which reached end-of-life in 2025-10.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Development

Successfully merging this pull request may close these issues.

1 participant