boolean error

34 views
Skip to first unread message

Samuel Little

unread,
May 15, 2025, 9:43:45 AM5/15/25
to Dedalus Users
Hi everyone,

A colleague of mine is picking up dedalus and it getting this error when running a script. The code we use is a bit old and it only runs o dedalus v2 so far, which is what they have installed. Does anyone know a fix?

(dedalus2) megan@Meggo:/mnt/c/Users/megan/OneDrive/Desktop$ python NSE.py 
[Meggo:35916] mca_base_component_repository_open: unable to open mca_btl_openib: librdmacm.so.1: cannot open shared object file: No such file or directory (ignored)
Traceback (most recent call last):
  File "/mnt/c/Users/megan/OneDrive/Desktop/NSE.py", line 37, in <module>
    from dedalus import public as de
  File "/home/megan/miniconda3/envs/dedalus2/lib/python3.12/site-packages/dedalus/public.py", line 14, in <module>
    from .core.problems import InitialValueProblem, IVP
  File "/home/megan/miniconda3/envs/dedalus2/lib/python3.12/site-packages/dedalus/core/problems.py", line 15, in <module>
    from . import solvers
  File "/home/megan/miniconda3/envs/dedalus2/lib/python3.12/site-packages/dedalus/core/solvers.py", line 19, in <module>
    from .evaluator import Evaluator
  File "/home/megan/miniconda3/envs/dedalus2/lib/python3.12/site-packages/dedalus/core/evaluator.py", line 27, in <module>
    FILEHANDLER_PARALLEL_DEFAULT = config['analysis'].getboolean('FILEHANDLER_PARALLEL_DEFAULT')
                                   ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/home/megan/miniconda3/envs/dedalus2/lib/python3.12/configparser.py", line 1273, in get
    return _impl(self._name, option, raw=raw, vars=vars,
           ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/home/megan/miniconda3/envs/dedalus2/lib/python3.12/configparser.py", line 806, in getboolean
    return self._get_conv(section, option, self._convert_to_boolean,
           ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/home/megan/miniconda3/envs/dedalus2/lib/python3.12/configparser.py", line 786, in _get_conv
    return self._get(section, conv, option, raw=raw, vars=vars,
           ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/home/megan/miniconda3/envs/dedalus2/lib/python3.12/configparser.py", line 781, in _get
    return conv(self.get(section, option, **kwargs))
           ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/home/megan/miniconda3/envs/dedalus2/lib/python3.12/configparser.py", line 1146, in _convert_to_boolean
    raise ValueError('Not a boolean: %s' % value)
ValueError: Not a boolean: virtual
(dedalus2) megan@Meggo:/mnt/c/Users/megan/OneDrive/Desktop$ 

Ben Brown

unread,
May 15, 2025, 5:43:13 PM5/15/25
to dedalu...@googlegroups.com
Samuel,
     To me it looks like something is incorrectly set in their dedalus.cfg file.

In particular, in the "analysis" section of that file, it looks like the value of FILEHANDLER_PARALLEL_DEFAULT is set incorrectly.  I believe that it needs to be a boolean, and it looks like they have a different value.
--Ben

--
You received this message because you are subscribed to the Google Groups "Dedalus Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to dedalus-user...@googlegroups.com.
To view this discussion visit https://groups.google.com/d/msgid/dedalus-users/0a286e01-aa9e-496b-a5f1-d686364e95fbn%40googlegroups.com.
Reply all
Reply to author
Forward
0 new messages