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

ValueError: no types given, on startup #420

Open
kwinkunks opened this issue Mar 1, 2023 · 1 comment
Open

ValueError: no types given, on startup #420

kwinkunks opened this issue Mar 1, 2023 · 1 comment
Labels
bug Something isn't working

Comments

@kwinkunks
Copy link
Member

Immediately after starting the app on a template-generated poly example, both on my local machine and on an Azure RGS node, I get the following non-fatal errors:

ERROR:webviz_app:Exception on /_dash-update-component [POST]
Traceback (most recent call last):
  File "/prog/komodo/2023.02.06-py38-rhel7/root/lib/python3.8/site-packages/flask/app.py", line 2525, in wsgi_app
    response = self.full_dispatch_request()
  File "/prog/komodo/2023.02.06-py38-rhel7/root/lib/python3.8/site-packages/flask/app.py", line 1822, in full_dispatch_request
    rv = self.handle_user_exception(e)
  File "/prog/komodo/2023.02.06-py38-rhel7/root/lib/python3.8/site-packages/flask/app.py", line 1820, in full_dispatch_request
    rv = self.dispatch_request()
  File "/prog/komodo/2023.02.06-py38-rhel7/root/lib/python3.8/site-packages/flask/app.py", line 1796, in dispatch_request
    return self.ensure_sync(self.view_functions[rule.endpoint])(**view_args)
  File "/prog/komodo/2023.02.06-py38-rhel7/root/lib/python3.8/site-packages/dash/dash.py", line 1274, in dispatch
    ctx.run(
  File "/prog/komodo/2023.02.06-py38-rhel7/root/lib/python3.8/site-packages/dash/_callback.py", line 440, in add_context
    output_value = func(*func_args, **func_kwargs)  # %% callback invoked %%
  File "/prog/komodo/2023.02.06-py38-rhel7/root/lib/python3.8/site-packages/webviz_ert/controllers/multi_response_controller.py", line 193, in update_graph
    response_plots = [
  File "/prog/komodo/2023.02.06-py38-rhel7/root/lib/python3.8/site-packages/webviz_ert/controllers/multi_response_controller.py", line 194, in <listcomp>
    _generate_plot(ensemble, assets.get_color(index=index))
  File "/prog/komodo/2023.02.06-py38-rhel7/root/lib/python3.8/site-packages/webviz_ert/controllers/multi_response_controller.py", line 180, in _generate_plot
    plot = _create_response_plot(
  File "/prog/komodo/2023.02.06-py38-rhel7/root/lib/python3.8/site-packages/webviz_ert/controllers/multi_response_controller.py", line 122, in _create_response_plot
    realizations = _get_realizations_statistics_plots(
  File "/prog/komodo/2023.02.06-py38-rhel7/root/lib/python3.8/site-packages/webviz_ert/controllers/multi_response_controller.py", line 60, in _get_realizations_statistics_plots
    p10 = data.quantile(0.1, axis=1)
  File "/prog/komodo/2023.02.06-py38-rhel7/root/lib64/python3.8/site-packages/pandas/core/frame.py", line 11296, in quantile
    res_df = self.quantile(  # type: ignore[call-overload]
  File "/prog/komodo/2023.02.06-py38-rhel7/root/lib64/python3.8/site-packages/pandas/core/frame.py", line 11328, in quantile
    cdtype = find_common_type(list(self.dtypes))
  File "/prog/komodo/2023.02.06-py38-rhel7/root/lib64/python3.8/site-packages/pandas/core/dtypes/cast.py", line 1608, in find_common_type
    raise ValueError("no types given")
ValueError: no types given

To reproduce:

  • ssh -X s034-rgs0002.s034.oc.equinor.com
  • source /prog/komodo/2023.02.06-py38-rhel7/enable
  • komodoenv --no-update --root /prog/komodo kenv
  • source kenv/enable
  • pip install py
  • Check out ert, main branch
  • cd tests/performance_tests
  • python performance_utils.py # Returns a tmp location
  • ert vis /tmp/<-tmp-location->/poly/poly.ert

Expected behavior
The app should start without warnings.

Desktop (please complete the following information):

  • OS: Linux (local machine and on Azure)
  • Browser: Firefox
@kwinkunks kwinkunks added the bug Something isn't working label Mar 1, 2023
@andreas-el
Copy link

When running this locally on my mac (and on my rhel8 workstation), storage folder does not seem to be generated.
So when starting webviz-ert;

(dev-ert) ➜  ert git:(main) ✗ python tests/performance_tests/performance_utils.py
/var/folders/qg/h39sdwm11wl6j0c9_dwj9jyr0000gp/T/tmpep4p15ut
(dev-ert) ➜  ert git:(main) ✗ ert vis /var/folders/qg/h39sdwm11wl6j0c9_dwj9jyr0000gp/T/tmpep4p15ut/poly/poly.ert
Exception in thread Thread-1:
Traceback (most recent call last):
  File "/usr/local/Cellar/[email protected]/3.11.8/Frameworks/Python.framework/Versions/3.11/lib/python3.11/threading.py", line 1045, in _bootstrap_inner
    self.run()
  File "/Users/ANDRLI/Project/ert/src/ert/services/_base_service.py", line 146, in run
    self._set_conn_info(conn_info)
  File "/Users/ANDRLI/Project/ert/src/ert/services/_base_service.py", line 342, in set_conn_info
    with open(path, "w", encoding="utf-8") as f:
         ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
FileNotFoundError: [Errno 2] No such file or directory: '/var/folders/qg/h39sdwm11wl6j0c9_dwj9jyr0000gp/T/tmpep4p15ut/poly/storage/storage_server.json'

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
Status: No status
Development

No branches or pull requests

2 participants