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

Error when trying example 03 #40

Open
sfermigier opened this issue Oct 25, 2023 · 0 comments
Open

Error when trying example 03 #40

sfermigier opened this issue Oct 25, 2023 · 0 comments

Comments

@sfermigier
Copy link

When I try to run example 03, using honcho start (assuming it's the right thing to do), I get:

18:51:33 store_web.1         | <_MainThread(MainThread, started 4299900288)>
18:51:33 store_web.1         | Traceback (most recent call last):
18:51:33 store_web.1         |   File "/Users/fermigier/.virtualenvs/py311/bin/flask", line 8, in <module>
18:51:33 store_web.1         |     sys.exit(main())
18:51:33 store_web.1         |              ^^^^^^
18:51:33 store_web.1         |   File "/Users/fermigier/envs/py311/lib/python3.11/site-packages/flask/cli.py", line 1064, in main
18:51:33 store_web.1         |     cli.main()
18:51:33 store_web.1         |   File "/Users/fermigier/envs/py311/lib/python3.11/site-packages/click/core.py", line 1078, in main
18:51:33 store_web.1         |     rv = self.invoke(ctx)
18:51:33 store_web.1         |          ^^^^^^^^^^^^^^^^
18:51:33 store_web.1         |   File "/Users/fermigier/envs/py311/lib/python3.11/site-packages/click/core.py", line 1688, in invoke
18:51:33 store_web.1         |     return _process_result(sub_ctx.command.invoke(sub_ctx))
18:51:33 store_web.1         |                            ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
18:51:33 store_web.1         |   File "/Users/fermigier/envs/py311/lib/python3.11/site-packages/click/core.py", line 1434, in invoke
18:51:33 store_web.1         |     return ctx.invoke(self.callback, **ctx.params)
18:51:33 store_web.1         |            ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
18:51:33 store_web.1         |   File "/Users/fermigier/envs/py311/lib/python3.11/site-packages/click/core.py", line 783, in invoke
18:51:33 store_web.1         |     return __callback(*args, **kwargs)
18:51:33 store_web.1         |            ^^^^^^^^^^^^^^^^^^^^^^^^^^^
18:51:33 store_web.1         |   File "/Users/fermigier/envs/py311/lib/python3.11/site-packages/click/decorators.py", line 92, in new_func
18:51:33 store_web.1         |     return ctx.invoke(f, obj, *args, **kwargs)
18:51:33 store_web.1         |            ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
18:51:33 store_web.1         |   File "/Users/fermigier/envs/py311/lib/python3.11/site-packages/click/core.py", line 783, in invoke
18:51:33 store_web.1         |     return __callback(*args, **kwargs)
18:51:33 store_web.1         |            ^^^^^^^^^^^^^^^^^^^^^^^^^^^
18:51:33 store_web.1         |   File "/Users/fermigier/envs/py311/lib/python3.11/site-packages/flask/cli.py", line 912, in run_command
18:51:33 store_web.1         |     raise e from None
18:51:33 store_web.1         |   File "/Users/fermigier/envs/py311/lib/python3.11/site-packages/flask/cli.py", line 898, in run_command
18:51:33 store_web.1         |     app = info.load_app()
18:51:33 store_web.1         |           ^^^^^^^^^^^^^^^
18:51:33 store_web.1         |   File "/Users/fermigier/envs/py311/lib/python3.11/site-packages/flask/cli.py", line 309, in load_app
18:51:33 store_web.1         |     app = locate_app(import_name, name)
18:51:33 store_web.1         |           ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
18:51:33 store_web.1         |   File "/Users/fermigier/envs/py311/lib/python3.11/site-packages/flask/cli.py", line 219, in locate_app
18:51:33 store_web.1         |     __import__(module_name)
18:51:33 store_web.1         |   File "/Volumes/T7-EXT/ghq/github.com/adamcharnock/lightbus/lightbus_examples/ex03_worked_example/store/web.py", line 10, in <module>
18:51:33 store_web.1         |     from lightbus_examples.ex03_worked_example.store.bus import bus
18:51:33 store_web.1         |   File "/Volumes/T7-EXT/ghq/github.com/adamcharnock/lightbus/lightbus_examples/ex03_worked_example/store/bus.py", line 17, in <module>
18:51:33 store_web.1         |     bus.client.register_api(StoreApi())
18:51:33 store_web.1         |     ^^^^^^^^^^^^^^^^^^^^^^^
18:51:33 store_web.1         |   File "/Volumes/T7-EXT/ghq/github.com/adamcharnock/lightbus/lightbus/creation.py", line 315, in __getattr__
18:51:33 store_web.1         |     return getattr(self.proxied_client, item)
18:51:33 store_web.1         |            ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
18:51:33 store_web.1         | AttributeError: 'NoneType' object has no attribute 'register_api'
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