S
Solara•5mo ago
conic

production flag throws error

I run into some error where running --production solara run demo_main.py --production
python

Exception in thread Thread-1 (_track):
Traceback (most recent call last):
File "/home/ubuntu/.pyenv/versions/3.11.5/lib/python3.11/threading.py", line 1038, in _bootstrap_inner
self.run()
File "/home/ubuntu/.cache/pypoetry/virtualenvs/my-project-jKnIrI3z-py3.11/lib/python3.11/site-packages/solara/server/patch.py", line 258, in Thread_debug_run
if self.current_context:
^^^^^^^^^^^^^^^^^^^^
AttributeError: 'Thread' object has no attribute 'current_context'
python

Exception in thread Thread-1 (_track):
Traceback (most recent call last):
File "/home/ubuntu/.pyenv/versions/3.11.5/lib/python3.11/threading.py", line 1038, in _bootstrap_inner
self.run()
File "/home/ubuntu/.cache/pypoetry/virtualenvs/my-project-jKnIrI3z-py3.11/lib/python3.11/site-packages/solara/server/patch.py", line 258, in Thread_debug_run
if self.current_context:
^^^^^^^^^^^^^^^^^^^^
AttributeError: 'Thread' object has no attribute 'current_context'
doing a regular solara run demo_main.py seems to work, but production seems to crash everything.
3 Replies
cr33pyguy
cr33pyguy•5mo ago
What version of Solara are you using? I don't see this on 1.25.1, but I remember seeing a similar error in a previous version
conic
conic•5mo ago
1.25.0 😂 Ill upgrade to see if this issue persists.