Skip to content

no method parse.variables for types [Module, dict] #53

@keturn

Description

@keturn

I get this sometimes:

Exception in thread Thread-204:
Traceback (most recent call last):
  File "/home/ubuntu/.local/share/uv/python/cpython-3.11.11-linux-x86_64-gnu/lib/python3.11/threading.py", line 1045, in _bootstrap_inner
    self.run()
  File "/home/ubuntu/.local/share/uv/python/cpython-3.11.11-linux-x86_64-gnu/lib/python3.11/threading.py", line 1401, in run
    self.function(*self.args, **self.kwargs)
  File "/home/ubuntu/venv/lib/python3.11/site-packages/jurigged/live.py", line 128, in _refresh
    self.watcher.refresh(self.filename)
  File "/home/ubuntu/venv/lib/python3.11/site-packages/jurigged/live.py", line 101, in refresh
    cf = self.registry.get(path)
         ^^^^^^^^^^^^^^^^^^^^^^^
  File "/home/ubuntu/venv/lib/python3.11/site-packages/jurigged/register.py", line 75, in get
    cf = CodeFile(
         ^^^^^^^^^
  File "/home/ubuntu/venv/lib/python3.11/site-packages/jurigged/codetools.py", line 1083, in __init__
    variables(tree, varinfo)
  File "<ovld:1a543377897238e6>", line 4, in variables
  File "/home/ubuntu/venv/lib/python3.11/site-packages/ovld/typemap.py", line 384, in __missing__
    self.resolve(obj_t_tup)
  File "/home/ubuntu/venv/lib/python3.11/site-packages/ovld/typemap.py", line 324, in resolve
    raise self.key_error(obj_t_tup, ())
TypeError: No method in <Ovld jurigged.parse.variables> for argument types [Module, dict]

we do have some dynamically-loaded module shenanigans going on, I'm not sure if that's related. I don't have an inkling of how that would give things unexpected types.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions