vdbergh

Results 434 comments of vdbergh

> > Ok. I wanted to exclude that the config file was somehow corrupted. > > Unfortunately the only way to make progress seems to be to use an instrumented...

[worker.py.zip](https://github.com/user-attachments/files/18237881/worker.py.zip) If you want to, you can replace `worker.py` with the above zipped instrumented `worker.py` and post the output here. It adds three test prints. Hopefully this will clarify at...

Yes. So despite the powershell command giving the right answer, the worker still detects the amount of memory incorrectly. We will have to dig a bit deeper.

I suspect these lines are the culprit ``` with os.popen(cmd) as proc: mem_str = str(proc.readlines()) mem = int(re.search(r"\d+", mem_str).group()) ``` I think the regular expression does not parse the output...

> `68305674240` That's strange. Does it really only print this? Nothing more?

Ok. There is still a possibility that somehow the command gives something different when executed by the worker. I will make a new version of worker.py with some extra test...

Ok here is a new instrumented version [worker.py.zip](https://github.com/user-attachments/files/18244946/worker.py.zip) On my system it prints ```text ______ _ _ _ _ _ | ___(_) | | | | | | | |...

So it is a windows configuration issue. I found this... https://learn.microsoft.com/en-us/powershell/module/microsoft.powershell.core/about/about_execution_policies?view=powershell-7.4 I have no idea how Windows knows that the worker has been downloaded from the internet. I assume you...

I have now created comprehensive documentation for `vtjson`. See https://www.cantate.be/vtjson/ (canonical reference) or https://vtjson.readthedocs.io (if you don't mind some ads).

The classes are used both for type checking and for validation. `TypedDict` is a standard python `typing` type for typed dictionaries. ``` class Foo(TypedDict): baz: int baz2: str ``` is...