mais icon indicating copy to clipboard operation
mais copied to clipboard

fix `_set_config_variables` is not defined

Open aspeddro opened this issue 1 year ago • 0 comments

Introduzido em https://github.com/basedosdados/mais/pull/1712. A função foi removida

Reproduzindo:

cd /tmp
mkdir bd-beta-21
cd bd-beta-21
python -m venv .venv
source .venv/bin/activate
python -m pip install "basedosdados[upload]==2.0.0b21"
python --version                                      
Python 3.9.17
touch test.py

test.py:

import basedosdados as bd

df = bd.read_sql(
    "select * from `basedosdados-dev.br_inep_saeb_staging.dicionario`",
    billing_project_id="basedosdados-dev",
)

print(df)

python test.py

Traceback (most recent call last):
  File "/tmp/bd-beta-21/test.py", line 3, in <module>
    df = bd.read_sql(
  File "/tmp/bd-beta-21/.venv/lib/python3.9/site-packages/basedosdados/download/download.py", line 57, in read_sql
    billing_project_id, from_file = _set_config_variables(
NameError: name '_set_config_variables' is not defined

aspeddro avatar Jul 29 '24 14:07 aspeddro