running nb2workflow fails on python 3.12
Closed this issue · 4 comments
nbadapter.py uses papermill module which seem to fail on python 3.12:
from nb2workflow.service import main
Traceback (most recent call last):
File "", line 1, in
File "/opt/conda/lib/python3.12/site-packages/nb2workflow/service.py", line 13, in
from nb2workflow import ontology, publish, schedule
File "/opt/conda/lib/python3.12/site-packages/nb2workflow/ontology.py", line 6, in
import nb2workflow.nbadapter as nbadapter
File "/opt/conda/lib/python3.12/site-packages/nb2workflow/nbadapter.py", line 21, in
import papermill as pm
File "/opt/conda/lib/python3.12/site-packages/papermill/init.py", line 3, in
from .exceptions import PapermillException, PapermillExecutionError
File "/opt/conda/lib/python3.12/site-packages/papermill/exceptions.py", line 3, in
from ansiwrap import strip_color
File "/opt/conda/lib/python3.12/site-packages/ansiwrap/init.py", line 1, in
from .core import *
File "/opt/conda/lib/python3.12/site-packages/ansiwrap/core.py", line 6, in
import imp
ModuleNotFoundError: No module named 'imp'
The same code works without errors on python 3.11.6
For the time being, I think we need to restrict the python version (we need to restrict it for nb2workflow package itself and also to ensure it's restricted in conda-based containers created by deploy.py). (I wonder why not every build is failing, though)
There is a problem installing pyarrow (which come as dependency) with pip apache/arrow#37880 (there is no prebuilt wheel available)
Even with pyarrow preinstalled with conda, I still reproduce the exception from above in a manually created environment.
So let's wait until all dependencies are adapted to 3.12
@volodymyrss your opinion?
So let's wait until all dependencies are adapted to 3.12 @volodymyrss your opinion?
yes sure
It's still not resolved without #115 (as it will fail in the container based on conda environment, like crbeam)
As soon as I check it live, I will request the review