We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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鈥檒l occasionally send you account related emails.
Already on GitHub? Sign in to your account
LightningList
(as reported by @aniketmaurya)
Following error is raised:
[flow] 2022-09-11T08:14:06.981Z INFO: Traceback (most recent call last): [flow] 2022-09-11T08:14:06.981Z File "/content/venv/lib/python3.8/site-packages/lightning_launcher/launcher.py", line 206, in run_lightning_flow [flow] 2022-09-11T08:14:06.981Z app._run() [flow] 2022-09-11T08:14:06.981Z File "/content/venv/lib/python3.8/site-packages/lightning_app/core/app.py", line 427, in _run [flow] 2022-09-11T08:14:06.981Z done = self.run_once() [flow] 2022-09-11T08:14:06.981Z File "/content/venv/lib/python3.8/site-packages/lightning_app/core/app.py", line 376, in run_once [flow] 2022-09-11T08:14:06.981Z self.root.run() [flow] 2022-09-11T08:14:06.981Z File "app.py", line 41, in run [flow] 2022-09-11T08:14:06.981Z model_serve.run() [flow] 2022-09-11T08:14:06.981Z File "/content/venv/lib/python3.8/site-packages/lightning_app/runners/backends/backend.py", line 59, in _dynamic_run_wrapper [flow] 2022-09-11T08:14:06.981Z self.create_work(app, work) [flow] 2022-09-11T08:14:06.981Z File "/content/venv/lib/python3.8/site-packages/lightning_launcher/lightning_backend.py", line 147, in create_work [flow] 2022-09-11T08:14:06.981Z app.work_queues[work.name].put(work) [flow] 2022-09-11T08:14:06.981Z File "/content/venv/lib/python3.8/site-packages/lightning_app/core/queues.py", line 224, in put [flow] 2022-09-11T08:14:06.981Z value = pickle.dumps(item) [flow] 2022-09-11T08:14:06.981Z TypeError: cannot pickle '_thread.RLock' object
import lightning as L from lightning_app.structures import List class CounterWork(L.LightningWork): def __init__(self): super().__init__() self.counter = 0 def run(self): self.counter += 1 print(self.counter) class RootFlow(L.LightningFlow): def __init__(self): super().__init__() self.list = List(*[CounterWork(), CounterWork()]) self.work = CounterWork() def run(self): for work in self.list: work.run() app = L.LightningApp(RootFlow())
Should work.
lightning, version 0.5.7
cc: @tchaton @ethanwharris
cc @tchaton @rohitgr7
The text was updated successfully, but these errors were encountered:
@tchaton, any update so far? 馃惏
Sorry, something went wrong.
tchaton
No branches or pull requests
馃悰 Bug
(as reported by @aniketmaurya)
Following error is raised:
To Reproduce
Expected behavior
Should work.
Environment
lightning, version 0.5.7
Additional context
cc: @tchaton @ethanwharris
cc @tchaton @rohitgr7
The text was updated successfully, but these errors were encountered: