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

internal error after specifying model #2

Open
jbellis opened this issue Sep 22, 2024 · 0 comments
Open

internal error after specifying model #2

jbellis opened this issue Sep 22, 2024 · 0 comments

Comments

@jbellis
Copy link

jbellis commented Sep 22, 2024

Traceback (most recent call last):
  File "/home/jonathan/miniforge3/envs/code-assistant/lib/python3.10/site-packages/uvicorn/protocols/http/httptools_impl.py", line 401, in run_asgi
    result = await app(  # type: ignore[func-returns-value]
  File "/home/jonathan/miniforge3/envs/code-assistant/lib/python3.10/site-packages/uvicorn/middleware/proxy_headers.py", line 70, in __call__
    return await self.app(scope, receive, send)
  File "/home/jonathan/miniforge3/envs/code-assistant/lib/python3.10/site-packages/starlette/applications.py", line 113, in __call__
    await self.middleware_stack(scope, receive, send)
  File "/home/jonathan/miniforge3/envs/code-assistant/lib/python3.10/site-packages/starlette/middleware/errors.py", line 187, in __call__
    raise exc
  File "/home/jonathan/miniforge3/envs/code-assistant/lib/python3.10/site-packages/starlette/middleware/errors.py", line 165, in __call__
    await self.app(scope, receive, _send)
  File "/home/jonathan/miniforge3/envs/code-assistant/lib/python3.10/site-packages/starlette/middleware/sessions.py", line 85, in __call__
    await self.app(scope, receive, send_wrapper)
  File "/home/jonathan/miniforge3/envs/code-assistant/lib/python3.10/site-packages/starlette/middleware/exceptions.py", line 62, in __call__
    await wrap_app_handling_exceptions(self.app, conn)(scope, receive, send)
  File "/home/jonathan/miniforge3/envs/code-assistant/lib/python3.10/site-packages/starlette/_exception_handler.py", line 62, in wrapped_app
    raise exc
  File "/home/jonathan/miniforge3/envs/code-assistant/lib/python3.10/site-packages/starlette/_exception_handler.py", line 51, in wrapped_app
    await app(scope, receive, sender)
  File "/home/jonathan/miniforge3/envs/code-assistant/lib/python3.10/site-packages/starlette/routing.py", line 715, in __call__
    await self.middleware_stack(scope, receive, send)
  File "/home/jonathan/miniforge3/envs/code-assistant/lib/python3.10/site-packages/starlette/routing.py", line 735, in app
    await route.handle(scope, receive, send)
  File "/home/jonathan/miniforge3/envs/code-assistant/lib/python3.10/site-packages/starlette/routing.py", line 288, in handle
    await self.app(scope, receive, send)
  File "/home/jonathan/miniforge3/envs/code-assistant/lib/python3.10/site-packages/starlette/routing.py", line 76, in app
    await wrap_app_handling_exceptions(app, request)(scope, receive, send)
  File "/home/jonathan/miniforge3/envs/code-assistant/lib/python3.10/site-packages/starlette/_exception_handler.py", line 62, in wrapped_app
    raise exc
  File "/home/jonathan/miniforge3/envs/code-assistant/lib/python3.10/site-packages/starlette/_exception_handler.py", line 51, in wrapped_app
    await app(scope, receive, sender)
  File "/home/jonathan/miniforge3/envs/code-assistant/lib/python3.10/site-packages/starlette/routing.py", line 73, in app
    response = await f(request)
  File "/home/jonathan/miniforge3/envs/code-assistant/lib/python3.10/site-packages/fasthtml/core.py", line 427, in _endp
    if not resp: resp = await _wrap_call(self.f, req, self.sig.parameters)
  File "/home/jonathan/miniforge3/envs/code-assistant/lib/python3.10/site-packages/fasthtml/core.py", line 408, in _wrap_call
    return await _handle(f, wreq)
  File "/home/jonathan/miniforge3/envs/code-assistant/lib/python3.10/site-packages/fasthtml/core.py", line 215, in _handle
    return (await f(*args, **kwargs)) if is_async_callable(f) else await run_in_threadpool(f, *args, **kwargs)
  File "/home/jonathan/miniforge3/envs/code-assistant/lib/python3.10/site-packages/code_assistant/routes/home.py", line 20, in page
    programs = request.app.state.manager.programs
  File "/home/jonathan/miniforge3/envs/code-assistant/lib/python3.10/site-packages/code_assistant/main.py", line 63, in manager
    self._manager = self.initialize_manager()
  File "/home/jonathan/miniforge3/envs/code-assistant/lib/python3.10/site-packages/code_assistant/main.py", line 67, in initialize_manager
    return ManagerFactory(app)
  File "/home/jonathan/miniforge3/envs/code-assistant/lib/python3.10/site-packages/code_assistant/assistants.py", line 82, in __init__
    self.setup_programs()
  File "/home/jonathan/miniforge3/envs/code-assistant/lib/python3.10/site-packages/code_assistant/assistants.py", line 131, in setup_programs
    raise e
  File "/home/jonathan/miniforge3/envs/code-assistant/lib/python3.10/site-packages/code_assistant/assistants.py", line 118, in setup_programs
    self.programs.append(
  File "/home/jonathan/miniforge3/envs/code-assistant/lib/python3.10/site-packages/code_assistant/assistants.py", line 42, in append
    super().append(item)
AttributeError: 'super' object has no attribute 'append'
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