Code Monkey home page Code Monkey logo

litestar-attrs-partial-test's Introduction

litestar-attrs-partial-test's People

Contributors

redjax avatar

Watchers

 avatar

litestar-attrs-partial-test's Issues

App fails to run due to TypeError on UserController, unexpected keyword argument 'owner'

INFO:     Will watch for changes in these directories: ['$HOME/git/python/litestar/litestar-attrs_pr-test/litestar_attrs_pr_test']
INFO:     Uvicorn running on http://0.0.0.0:8120 (Press CTRL+C to quit)
INFO:     Started reloader process [463829] using StatReload
Process SpawnProcess-1:
Traceback (most recent call last):
  File "/usr/lib/python3.10/multiprocessing/process.py", line 314, in _bootstrap
    self.run()
  File "/usr/lib/python3.10/multiprocessing/process.py", line 108, in run
    self._target(*self._args, **self._kwargs)
  File "$HOME/git/python/litestar/litestar-attrs_pr-test/.venv/lib/python3.10/site-packages/uvicorn/_subprocess.py", line 76, in subprocess_started
    target(sockets=sockets)
  File "$HOME/git/python/litestar/litestar-attrs_pr-test/.venv/lib/python3.10/site-packages/uvicorn/server.py", line 59, in run
    return asyncio.run(self.serve(sockets=sockets))
  File "/usr/lib/python3.10/asyncio/runners.py", line 44, in run
    return loop.run_until_complete(main)
  File "/usr/lib/python3.10/asyncio/base_events.py", line 646, in run_until_complete
    return future.result()
  File "$HOME/git/python/litestar/litestar-attrs_pr-test/.venv/lib/python3.10/site-packages/uvicorn/server.py", line 66, in serve
    config.load()
  File "$HOME/git/python/litestar/litestar-attrs_pr-test/.venv/lib/python3.10/site-packages/uvicorn/config.py", line 471, in load
    self.loaded_app = import_from_string(self.app)
  File "$HOME/git/python/litestar/litestar-attrs_pr-test/.venv/lib/python3.10/site-packages/uvicorn/importer.py", line 21, in import_from_string
    module = importlib.import_module(module_str)
  File "/usr/lib/python3.10/importlib/__init__.py", line 126, in import_module
    return _bootstrap._gcd_import(name[level:], package, level)
  File "<frozen importlib._bootstrap>", line 1050, in _gcd_import
  File "<frozen importlib._bootstrap>", line 1027, in _find_and_load
  File "<frozen importlib._bootstrap>", line 1006, in _find_and_load_unlocked
  File "<frozen importlib._bootstrap>", line 688, in _load_unlocked
  File "<frozen importlib._bootstrap_external>", line 883, in exec_module
  File "<frozen importlib._bootstrap>", line 241, in _call_with_frames_removed
  File "$HOME/git/python/litestar/litestar-attrs_pr-test/litestar_attrs_pr_test/main.py", line 5, in <module>
    app = Litestar(route_handlers=[UserController])
  File "$HOME/git/python/litestar/litestar-attrs_pr-test/.venv/lib/python3.10/site-packages/litestar/app.py", line 436, in __init__
    self.register(route_handler)
  File "$HOME/git/python/litestar/litestar-attrs_pr-test/.venv/lib/python3.10/site-packages/litestar/app.py", line 525, in register
    routes = super().register(value=value)
  File "$HOME/git/python/litestar/litestar-attrs_pr-test/.venv/lib/python3.10/site-packages/litestar/router.py", line 191, in register
    validated_value = self._validate_registration_value(value)
  File "$HOME/git/python/litestar/litestar-attrs_pr-test/.venv/lib/python3.10/site-packages/litestar/router.py", line 290, in _validate_registration_value
    return value(owner=self)
TypeError: UserController.__init__() got an unexpected keyword argument 'owner'

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.