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

SyntaxError: invalid syntax (line 53) - After OS Update from Ubuntu 18.04 to Ubuntu 20.04 #3

Open
picoroma opened this issue Nov 22, 2023 · 2 comments

Comments

@picoroma
Copy link

File "/usr/lib/nagios/plugins/check_cloudwatch_metric.py", line 53
return self.get_client().Metric(f'{self.prefix}/{self.namespace}', self.name)
^
SyntaxError: invalid syntax

@elias5000
Copy link
Owner

that's very little information. can you please give some context? like python version and command line parameters?
can you please try the latest version of the script? the line in your error message is in line 55 in the current version.

@picoroma
Copy link
Author

picoroma commented Nov 24, 2023

I solved.
Applied these 2 steps.

  1. Using python3 (instead of python 2 - inthe the script)
  2. Installing boto3 (for python3)

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