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

Bug: Fatal error in miniconda (reticulate) and R 4.3.1 #63

Open
fultoncoe opened this issue Oct 5, 2023 · 3 comments
Open

Bug: Fatal error in miniconda (reticulate) and R 4.3.1 #63

fultoncoe opened this issue Oct 5, 2023 · 3 comments

Comments

@fultoncoe
Copy link

The Tableau hyper API has been great for automating our server by using both python and R together.
rstudio/reticulate#1487

However, recently we have had issues with the latest verision of the hyper api crashing when we use the latest version of R and reticulate. Reticulate versions appropriate to R 4.2.2 or earlier seem to work (version control in R like https://packagemanager.posit.co/cran/ snapsots to load the version of packages prior to December 22, 2023)

I have isolated the cause to be something related to the import of sqtype function (from the sqltype.py) file": https://tableau.github.io/hyper-db/lang_docs/py/_modules/tableauhyperapi/sqltype.html

I wanted to inform you of the error and find out some details to help further find the cause. However, I did have a few questions first to start out.....

@fultoncoe fultoncoe changed the title Bug: Fatal error in miniconda (reticulate) and R 4.3.0 Bug: Fatal error in miniconda (reticulate) and R 4.3.1 Oct 5, 2023
@fultoncoe
Copy link
Author

fultoncoe commented Oct 5, 2023

@vogelsgesang so her are my questions

# The function causing errors in R:
from tableauhyperapi import SqlType
  1. Has there been any recent issues with hyper api crashing? I notice I was the first person to bring up an issue thread, so I wanted to double check.
  2. To import the tableauhyperapi, does one need a licensed version of Tableau Desktop? Or will the hyper api package throw an error if Tableau Desktop is not installed?
    I am asking this mostly for the sake of reproducibility for other computer programmers. To see if the bug is caused by different versions of Tableau 2023 or not. My hunch is no... simply importing in the package does not trigger anything.

P.S. Also important point, while this error is fatal is not an urgent issue as simply rolling back to previous versions of reticulate is possible. In fact, ping me if someone needs directions on how to use prior version of reticulate as new r users might not know about package or library managment in R.

@vogelsgesang
Copy link
Collaborator

vogelsgesang commented Oct 5, 2023

Thanks for reporting this! I unfortunately have zero experience with R or reticulate.

Do I understand you correctly as:

  • Using Hyper API v0.0.17782 from R v4.2.2 works as expected
  • Using Hyper API v0.0.17782 from R v4.3.1 does not work
  • We don't know if R v4.2.3 works. We don't know if v4.3.0 works

@vogelsgesang
Copy link
Collaborator

Has there been any recent issues with hyper api crashing? I notice I was the first person to bring up an issue thread, so I wanted to double check

I am not aware of any recent reports

To import the tableauhyperapi, does one need a licensed version of Tableau Desktop? Or will the hyper api package throw an error if Tableau Desktop is not installed?

No, you don't need a Tableau license. The Hyper API can be installed completely independently of any other Tableau produts

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants