theskumar / theskumar/python-dotenv
AssertionError when attempting to locate dotenv file
Nadie ha tomado este issue todavía.
- Lenguaje dominante
- Python
- Estrellas
- 8.9k
- Forks
- 581
- Métricas de merge de PR
- Sin PR fusionados en 30 d
Descripción
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
Guía de contribución
Primeros pasos
- Lee el issue completo y luego la guía de contribución del proyecto.
- Comenta en el issue que vas a ocuparte — evita que dos personas hagan lo mismo.
- Haz un fork del repositorio y trabaja en una rama.
- Abre un pull request que haga referencia al número del issue.
Línea de trabajo
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.
Escrito por el modelo de indexación a partir del texto del issue.
Evaluación
- Stack tecnológico
- python
- Área
- backend
- Tipo de issue
- Error
- Dificultad
- 3/5
- Tiempo estimado
- 1-2 días
- Estado de actividad
- Estancado
- Claridad
- Bastante claro
- Aptitud para principiantes
- 38/100