Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Erro em UseMethod("op_can_download") no R #1470

Open
juliasoima opened this issue Dec 1, 2022 · 7 comments
Open

Erro em UseMethod("op_can_download") no R #1470

juliasoima opened this issue Dec 1, 2022 · 7 comments
Labels
bug Something isn't working infra New CLI version or infra related issues R

Comments

@juliasoima
Copy link

Descrição
Estou tentando acessar os dados do inmet segundo o passo a passo do site. No entanto quando eu rodo a linha df <- bd_collect(query)
aparece a seguinte mensagem:

query <- bdplyr("br_inmet_bdmep.estacao")
Successfully connected to table basedosdados.br_inmet_bdmep.estacao.
df <- bd_collect(query)
Error in UseMethod("op_can_download") :
no applicable method for 'op_can_download' applied to an object of class "NULL"

@juliasoima juliasoima added the bug Something isn't working label Dec 1, 2022
@rdahis rdahis added the infra New CLI version or infra related issues label Dec 1, 2022
@rdahis rdahis added this to the [infra] Suporte milestone Dec 1, 2022
@gustavoalcantara
Copy link
Contributor

gustavoalcantara commented Dec 1, 2022

Oi juliasoima. Por favor, descreva o erro com rlang::last_error() e copia aqui o que tá vindo no console.

@juliasoima
Copy link
Author

.
Successfully connected to table basedosdados.br_inmet_bdmep.estacao.
Warning message:
uses an old dbplyr interface
ℹ Please install a newer version of the package or contact the maintainer
This warning is displayed once every 8 hours.

df <- bd_collect(query)
Error in UseMethod("op_can_download") :
no applicable method for 'op_can_download' applied to an object of class "NULL"
rlang::last_error()
Error: Can't show last error because no error was recorded yet

@gustavoalcantara
Copy link
Contributor

. Successfully connected to table basedosdados.br_inmet_bdmep.estacao. Warning message: uses an old dbplyr interface ℹ Please install a newer version of the package or contact the maintainer This warning is displayed once every 8 hours.

df <- bd_collect(query)
Error in UseMethod("op_can_download") :
no applicable method for 'op_can_download' applied to an object of class "NULL"
rlang::last_error()
Error: Can't show last error because no error was recorded yet

dá um downgrade do seu bdplyr, por favor. A documentação está aqui: https://basedosdados.github.io/mais/api_reference_r/

Se continuar o erro, por favor, envie o que vem no console com a função rlang::last_error()

@juliasoima
Copy link
Author

Meu bdplyr já está na versão 2.1.1, conforme é requisitado

utils::packageVersion("dbplyr")
[1] ‘2.2.1’

Defina o seu projeto no Google Cloud

set_billing_id("")
Project keys set successfully

Para carregar o dado direto no R

query <- bdplyr("br_inmet_bdmep.estacao")
Successfully connected to table basedosdados.br_inmet_bdmep.estacao.
df <- bd_collect(query)
Error in UseMethod("op_can_download") :
no applicable method for 'op_can_download' applied to an object of class "NULL"

@juliasoima
Copy link
Author

mas nao vem nada do last error

df <- bd_collect(query)
Error in UseMethod("op_can_download") :
no applicable method for 'op_can_download' applied to an object of class "NULL"
rlang::last_error()
Error: Can't show last error because no error was recorded yet

@gustavoalcantara
Copy link
Contributor

tenta df<-basedosdados::read_sql("SELECT * FROM basedosdados.br_inmet_bdmep.estacao")

@gustavoalcantara
Copy link
Contributor

qualquer coisa, a gente tb tá no discord. Dá um pulo lá na segunda-feira pela manhã que consigo te ajudar. Meu user lá é o mesmo nome daqui.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working infra New CLI version or infra related issues R
Projects
None yet
Development

No branches or pull requests

9 participants