theskumar / theskumar/python-dotenv
AssertionError when attempting to locate dotenv file
Nessuno ha ancora preso questa issue.
- Lingua principale
- Python
- Stelle
- 8.9k
- Fork
- 581
- Metriche di merge delle PR
- Nessuna PR unita negli ultimi 30g
Descrizione
Hello,
I updated to the latest python-dotenv version (1.0.1) this morning and am now starting to see the following Assertion Errors:
Traceback (most recent call last):
File "<frozen runpy>", line 198, in _run_module_as_main
File "<frozen runpy>", line 88, in _run_code
<>
File "/usr/local/lib/python3.11/site-packages/dotenv/main.py", line 305, in find_dotenv
assert frame.f_back is not None
^^^^^^^^^^^^^^^^^^^^^^^^
AssertionError
The code that generated the above looks like the following:
if path := find_dotenv(raise_error_if_not_found=False):
load_dotenv()
Please let me know if there are any other logs or data I can provide to help the debugging/investigation process
Guida per i contributori
Apri la guida per i contributori
Come iniziare
- Leggi tutta la issue e poi la guida ai contributi del progetto.
- Commenta sulla issue per dire che te ne occupi tu — evita che due persone facciano lo stesso lavoro.
- Fai un fork del repository e lavora su un branch.
- Apri una pull request che faccia riferimento al numero della issue.
Direzione di ricerca
Start with dotenv/main.py at find_dotenv, especially the assertion at line 305, and reproduce the shown call on Python 3.11 with python-dotenv 1.0.1. Done means locating the cause of the AssertionError and verifying that the reported invocation handles the missing dotenv-file case without raising it.
Scritto dal modello di indicizzazione a partire dal testo della issue.
Valutazione
- Stack tecnologico
- python
- Ambito
- backend
- Tipo di issue
- Bug
- Difficoltà
- 3/5
- Tempo stimato
- 1-2 giorni
- Stato di attività
- Ferma
- Chiarezza
- Abbastanza chiara
- Idoneità per principianti
- 38/100