mlco2 / mlco2/codecarbon

Unable to run - FiefAuthNotAuthenticatedError error

Open
#755 1 comment 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

documentation
Dominant language
Python
Stars
1.9k
Forks
323
Avg merge
1d 12h
Merged PRs (30d)
12

Description

  • CodeCarbon version: 2.8.2
  • Python version: 3.12.7
  • Operating System: Ubuntu 22
Description

I've installed the package, and after I'm prompted to enter the API (following the video on the docs, I enter localhost:8000) and the configuration simply errors out with

:raises: `fief_client.FiefAccessTokenExpired` if the access token is expired and ╭────────────────────────────────── locals ──────────────────────────────────╮                       │
│   147 │   │   """                                                                              │ refresh = True                                                             │                       │
│   148 │   │   if self._tokens is None:                                                         │    self = <fief_client.integrations.cli.FiefAuth object at 0x7fb504a51d30> │                       │
│ ❱ 149 │   │   │   raise FiefAuthNotAuthenticatedError()                                        ╰────────────────────────────────────────────────────────────────────────────╯                       │
│   150 │   │                                                                                                                                                                                         │
│   151 │   │   access_token = self._tokens["access_token"]                                                                                                                                           │
│   152 │   │   try:                                                                                                                                                                                  │
╰─────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────╯
FiefAuthNotAuthenticatedError

The documentation on the README is out of date since init no longer exists.

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Start with the README setup instructions and compare them with the current installation and configuration flow that produces FiefAuthNotAuthenticatedError after entering localhost:8000. Check whether the documented initialization step still exists and identify the current runnable sequence; done means the README no longer directs users through an outdated flow.

Written by the indexing model from the issue text.

Assessment

Tech stack
python
Domain
authentication, cli, documentation
Issue type
Documentation
Difficulty
3/5
Estimated time
1-2 days
Activity status
Stale
Clarity
Needs clarification
Newbie friendliness
25/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.