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

as_data_frame failed when no datatable is installed #15861

Closed
wendycwong opened this issue Oct 23, 2023 · 1 comment · Fixed by #15862
Closed

as_data_frame failed when no datatable is installed #15861

wendycwong opened this issue Oct 23, 2023 · 1 comment · Fixed by #15862
Assignees
Labels
Milestone

Comments

@wendycwong
Copy link
Contributor

support ticket: https://h2osupport.freshdesk.com/a/tickets/106684

The following error appears to happen on h2o 3.44.0.1 and 3.42.0.4

        elif not(can_use_datatable()):
              warnings("multi_thread mode can only be used when you have datatable "
                         "installed.")

E TypeError: 'module' object is not callable

I am using python 3.11.5

@wendycwong wendycwong added the bug label Oct 23, 2023
@wendycwong wendycwong self-assigned this Oct 23, 2023
@wendycwong
Copy link
Contributor Author

the problem here is that if I use warnings("blah-blah"), the code will actually crash. Hence, I have replaced it with warnings.warn("blah-blah") instead.

@wendycwong wendycwong added this to the 3.44.0.2 milestone Oct 23, 2023
@wendycwong wendycwong linked a pull request Oct 25, 2023 that will close this issue
wendycwong pushed a commit that referenced this issue Oct 30, 2023
* fixed warning message causing code to crash.
* shorten test to just make sure it has the correct warning message.
* put install datatable in finally in case test failed.

Co-authored-by: Marek Novotný <[email protected]>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant