SyntaxError codecarbon/core/api_client.py line 117
Nobody has claimed this yet.
- Dominant language
- Python
- Stars
- 1.9k
- Forks
- 323
- Avg merge
- 1d 12h
- Merged PRs (30d)
- 12
Description
- CodeCarbon version: 2.7.4
Description
after installing the last version of codecarbon my script is running into issues due to a syntax error in api_client.py file, line 117:
if organization := self.check_organization_exists(organization_name):
To be able to run my script I just replaced ":" by "=". I am unsure why it worked in previous runs, now it is complaining about it. But, yeah, the syntax is wrong.
Contributor guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Research direction
Open codecarbon/core/api_client.py at line 117 and reproduce the reported syntax error using the supported Python environment. Check that the file parses successfully and verify that the API client still works after the syntax issue is corrected.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- python
- Domain
- api
- Issue type
- Bug
- Difficulty
- 1/5
- Estimated time
- Under an hour
- Activity status
- Stale
- Clarity
- Clearly specified
- Newbie friendliness
- 45/100