Skip to content

README instructions gives crash #485

@berland

Description

@berland

Trying out the instructions in the README yields the crash:

Adding the argument poly.ert makes the error go away, which the README refers to as needed if you use the classic Ert storage solution.

../ert/test-data/ert/poly_example$  ert vis
Traceback (most recent call last):
  File "/usr/lib/python3.12/logging/config.py", line 581, in configure
    handler = self.configure_handler(handlers[name])
              ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/usr/lib/python3.12/logging/config.py", line 848, in configure_handler
    result = factory(**kwargs)
             ^^^^^^^^^^^^^^^^^
  File "/home/berland/projects/ert/src/ert/logging/__init__.py", line 42, in __init__
    config_file_path = pathlib.Path(kwargs.pop("ert_config"))
                       ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/usr/lib/python3.12/pathlib.py", line 1164, in __init__
    super().__init__(*args)
  File "/usr/lib/python3.12/pathlib.py", line 373, in __init__
    raise TypeError(
TypeError: argument should be a str or an os.PathLike object where __fspath__ returns a str, not 'NoneType'

The above exception was the direct cause of the following exception:

Traceback (most recent call last):
  File "/home/berland/venv/mar25/bin/ert", line 8, in <module>
    sys.exit(main())
             ^^^^^^
  File "/usr/lib/python3.12/contextlib.py", line 81, in inner
    return func(*args, **kwds)
           ^^^^^^^^^^^^^^^^^^^
  File "/home/berland/projects/ert/src/ert/__main__.py", line 597, in main
    logging.config.dictConfig(config_dict)
  File "/usr/lib/python3.12/logging/config.py", line 914, in dictConfig
    dictConfigClass(config).configure()
  File "/usr/lib/python3.12/logging/config.py", line 588, in configure
    raise ValueError('Unable to configure handler '
ValueError: Unable to configure handler 'file'

Python 3.12, ubuntu-24.04

Metadata

Metadata

Assignees

Labels

No labels
No labels

Type

No type

Projects

Status

In progress

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions