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

AttributeError: '__signature__' attribute of 'XCounter' is class-only #47

Open
adjivas opened this issue Aug 9, 2022 · 0 comments
Open

Comments

@adjivas
Copy link

adjivas commented Aug 9, 2022

Hello,

I try to apply the reactor readme.
I written this example, I try to use a component.
Unfortunately, I get the error AttributeError: '__signature__' attribute of 'XCounter' is class-only.

Do can you inform myself of what I forget?

This is my full traceback logs:

  File "/usr/local/lib/python3.10/site-packages/asgiref/sync.py", line 472, in thread_handler
    raise exc_info[1]
  File "/usr/local/lib/python3.10/site-packages/django/core/handlers/exception.py", line 42, in inner
    response = await get_response(request)
  File "/usr/local/lib/python3.10/site-packages/django/core/handlers/base.py", line 253, in _get_response_async
    response = await wrapped_callback(
  File "/usr/local/lib/python3.10/site-packages/asgiref/sync.py", line 435, in __call__
    ret = await asyncio.wait_for(future, timeout=None)
  File "/usr/local/lib/python3.10/asyncio/tasks.py", line 408, in wait_for
    return await fut
  File "/usr/local/lib/python3.10/concurrent/futures/thread.py", line 58, in run
    result = self.fn(*self.args, **self.kwargs)
  File "/usr/local/lib/python3.10/site-packages/asgiref/sync.py", line 476, in thread_handler
    return func(*args, **kwargs)
  File "/app/navi2/views.py", line 21, in counter
    return render(request, 'counter.html', context={"title": "index"})
  File "/usr/local/lib/python3.10/site-packages/django/shortcuts.py", line 24, in render
    content = loader.render_to_string(template_name, context, request, using=using)
  File "/usr/local/lib/python3.10/site-packages/django/template/loader.py", line 62, in render_to_string
    return template.render(context, request)
  File "/usr/local/lib/python3.10/site-packages/django/template/backends/django.py", line 62, in render
    return self.template.render(context)
  File "/usr/local/lib/python3.10/site-packages/django/template/base.py", line 175, in render
    return self._render(context)
  File "/usr/local/lib/python3.10/site-packages/django/template/base.py", line 167, in _render
    return self.nodelist.render(context)
  File "/usr/local/lib/python3.10/site-packages/django/template/base.py", line 1005, in render
    return SafeString("".join([node.render_annotated(context) for node in self]))
  File "/usr/local/lib/python3.10/site-packages/django/template/base.py", line 1005, in <listcomp>
    return SafeString("".join([node.render_annotated(context) for node in self]))
  File "/usr/local/lib/python3.10/site-packages/django/template/base.py", line 966, in render_annotated
    return self.render(context)
  File "/usr/local/lib/python3.10/site-packages/django/template/library.py", line 237, in render
    output = self.func(*resolved_args, **resolved_kwargs)
  File "/app/src/djangoreactor/reactor/templatetags/reactor.py", line 54, in component
    return component.render(repo) or ""
  File "/app/src/djangoreactor/reactor/component.py", line 338, in render
    return self.reactor.render(self, repo)
  File "/app/src/djangoreactor/reactor/component.py", line 140, in render
    context = self._get_context(component, repo)
  File "/app/src/djangoreactor/reactor/component.py", line 171, in _get_context
    {
  File "/app/src/djangoreactor/reactor/component.py", line 172, in <dictcomp>
    attr: getattr(component, attr)
  File "pydantic/utils.py", line 614, in pydantic.utils.ClassAttribute.__get__
AttributeError: '__signature__' attribute of 'XCounter' is class-only

Thank's by advance

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant