Hi,
My first post here, hope to receive some help.
I have tried various ways to get fenics to run on an ubuntu system. (conda, apt, apt-get). While I was partially successful, I failed to get complex mode to work (I think).
So I decided that the most foolproof way to proceed is to use the docker image, since there are clear instructions how to switch complex mode on and since everything else should be set up correctly.
Sadly, jupyter-lab seems broken in the docker image(s). I have tried both stable and nightly docker images as well as v0.6.0.
I can start the container, navigate to jupyter but as soon as I try to create a new notebook or console, the server crashes. The last lines of the console output is below.
I have run jupyter in docker containers many times before and have not encountered this problem so far. I very much hope that its OK I ask this here althought it might be connected to jupyter issues.
Thank you very much for any pointers!
(I have edited and shortened the console output to remove the links. As a new user here, i am not allowed to post more than 2 links.)
[E 2023-03-11 14:27:12.697 ServerApp] Uncaught exception GET /api/nbconvert?1678544832543 (172.17.0.1)
HTTPServerRequest(protocol='http', host='[REDACTED]', method='GET', uri='/api/nbconvert?1678544832543', version='HTTP/1.1', remote_ip='172.17.0.1')
Traceback (most recent call last):
File "/usr/local/lib/python3.10/dist-packages/tornado/web.py", line 1713, in _execute
result = await result
File "/usr/local/lib/python3.10/dist-packages/jupyter_server/services/nbconvert/handlers.py", line 40, in get
exporters = await run_sync(base.get_export_names)
File "/usr/local/lib/python3.10/dist-packages/anyio/to_thread.py", line 31, in run_sync
return await get_asynclib().run_sync_in_worker_thread(
File "/usr/local/lib/python3.10/dist-packages/anyio/_backends/_asyncio.py", line 918, in run_sync_in_worker_thread
worker.start()
File "/usr/lib/python3.10/threading.py", line 935, in start
_start_new_thread(self._bootstrap, ())
RuntimeError: can't start new thread
[W 2023-03-11 14:27:12.697 ServerApp] wrote error: 'Unhandled error'
Traceback (most recent call last):
File "/usr/local/lib/python3.10/dist-packages/tornado/web.py", line 1713, in _execute
result = await result
File "/usr/local/lib/python3.10/dist-packages/jupyter_server/services/nbconvert/handlers.py", line 40, in get
exporters = await run_sync(base.get_export_names)
File "/usr/local/lib/python3.10/dist-packages/anyio/to_thread.py", line 31, in run_sync
return await get_asynclib().run_sync_in_worker_thread(
File "/usr/local/lib/python3.10/dist-packages/anyio/_backends/_asyncio.py", line 918, in run_sync_in_worker_thread
worker.start()
File "/usr/lib/python3.10/threading.py", line 935, in start
_start_new_thread(self._bootstrap, ())
RuntimeError: can't start new thread
[E 2023-03-11 14:27:12.698 ServerApp] {
"Host": "[REDACTED]",
"Accept": "*/*",
"Referer": "[REDACTED]",
"User-Agent": "Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/97.0.4692.71 Safari/537.36"
}
[E 2023-03-11 14:27:12.698 ServerApp] 500 GET /api/nbconvert?1678544832543 (1e6c2fddfc4244f1bcbd2f78545e6d0b@172.17.0.1) 16.67ms referer=[REDACTED]
[I 2023-03-11 14:27:17.594 ServerApp] Creating new notebook in
[I 2023-03-11 14:27:17.655 ServerApp] Saving Untitled.ipynb
[I 2023-03-11 14:27:17.673 ServerApp] Writing notebook-signing key to /root/.local/share/jupyter/notebook_secret
Operation not permitted (src/thread.cpp:269)```