Repository navigation
Description
❌ This issue is not open for contribution. Visit Contributing guidelines to learn about the contributing process and how to find suitable issues.
Target branch: ricecooker v0.8.0
uv Python version: cpython-3.13.13-linux-x86_64-gnu
Current behavior
After following the installation docs and adding ricecooker to pyproject.toml I end up with this:
$ uv run ./linecook.py --help
/home/philh/code/kolibri/sushi-chefs/sushi-chef-tfl/.venv/lib64/python3.13/site-packages/PyPDF2/generic.py:353: SyntaxWarning: invalid escape sequence '\c'
tok = b_("\c")
Traceback (most recent call last):
File "/home/philh/code/kolibri/sushi-chefs/sushi-chef-tfl/./linecook.py", line 4, in <module>
from ricecooker.chefs import LineCook
File "/home/philh/code/kolibri/sushi-chefs/sushi-chef-tfl/.venv/lib64/python3.13/site-packages/ricecooker/chefs.py", line 14, in <module>
from .classes import files
File "/home/philh/code/kolibri/sushi-chefs/sushi-chef-tfl/.venv/lib64/python3.13/site-packages/ricecooker/classes/files.py", line 20, in <module>
from ricecooker.utils.pipeline import FilePipeline
File "/home/philh/code/kolibri/sushi-chefs/sushi-chef-tfl/.venv/lib64/python3.13/site-packages/ricecooker/utils/pipeline/__init__.py", line 7, in <module>
from .convert import ConversionStageHandler
File "/home/philh/code/kolibri/sushi-chefs/sushi-chef-tfl/.venv/lib64/python3.13/site-packages/ricecooker/utils/pipeline/convert.py", line 40, in <module>
from ricecooker.utils.subtitles import build_subtitle_converter_from_file
File "/home/philh/code/kolibri/sushi-chefs/sushi-chef-tfl/.venv/lib64/python3.13/site-packages/ricecooker/utils/subtitles.py", line 4, in <module>
from pycaption import CaptionReadError
File "/home/philh/code/kolibri/sushi-chefs/sushi-chef-tfl/.venv/lib64/python3.13/site-packages/pycaption/__init__.py", line 2, in <module>
from .base import (
CaptionConverter, CaptionNode, Caption, CaptionList, CaptionSet)
File "/home/philh/code/kolibri/sushi-chefs/sushi-chef-tfl/.venv/lib64/python3.13/site-packages/pycaption/base.py", line 3, in <module>
from past.utils import old_div
File "/home/philh/code/kolibri/sushi-chefs/sushi-chef-tfl/.venv/lib64/python3.13/site-packages/past/__init__.py", line 88, in <module>
from past.translation import install_hooks as autotranslate
File "/home/philh/code/kolibri/sushi-chefs/sushi-chef-tfl/.venv/lib64/python3.13/site-packages/past/translation/__init__.py", line 35, in <module>
import imp
ModuleNotFoundError: No module named 'imp'
Possible cause / temporary fix
I'm not much of a python developer, so I'm sure there's a better solution (possibly involving le-pycaption). But from what I've found there seems to be an open issue on python future (where it imports imp) that effects later python versions :
CharmersTraining/python-future#246
After adding pycaption>=2.1.1 to pyproject.toml and running a uv sync ricecooker works fine:
$ uv run ./linecook.py --help
Unable to load pyppeteer, using phantomjs for JS loading.
usage: linecook.py [-h] [--token TOKEN] [-u] [--debug] [-v] [--warn] [--quiet] [--compress] [--thumbnails] [--download-attempts DOWNLOAD_ATTEMPTS]
[--resume]
[--step {INIT,CONSTRUCT_CHANNEL,CREATE_TREE,DOWNLOAD_FILES,GET_FILE_DIFF,START_UPLOAD,UPLOADING_FILES,UPLOAD_CHANNEL,PUBLISH_CHANNEL,DONE,LAST}]
[--prompt] [--deploy] [--publish] [--sample SIZE] [--reset] [--stage] --channeldir CHANNELDIR [--channelinfo CHANNELINFO]
[--contentinfo CONTENTINFO] [--exercisesinfo EXERCISESINFO] [--questionsinfo QUESTIONSINFO] [--generate]
[--importstudioid IMPORTSTUDIOID]
[command]
Upload the folder hierarchy to the content workshop.
positional arguments:
command Desired action: dryrun or uploadchannel (default).
options:
-h, --help show this help message and exit
--token TOKEN Studio API Access Token (specify wither the token value or the path of a file that contains the token).
-u, --update Force file re-download (skip .ricecookerfilecache/).
--debug Print extra debugging infomation.
-v, --verbose Verbose mode (default).
--warn Print errors and warnings.
--quiet Print only errors.
--compress Compress videos using ffmpeg -crf=32 -b:a 32k mono.
--thumbnails Automatically generate thumbnails for content nodes.
--download-attempts DOWNLOAD_ATTEMPTS
Maximum number of times to retry downloading files.
--resume Resume chef session from a specified step.
--step {INIT,CONSTRUCT_CHANNEL,CREATE_TREE,DOWNLOAD_FILES,GET_FILE_DIFF,START_UPLOAD,UPLOADING_FILES,UPLOAD_CHANNEL,PUBLISH_CHANNEL,DONE,LAST}
Step to resume progress from (use with the --resume).
--prompt Prompt user to open the channel after the chef run.
--deploy Immediately deploy changes to channel's main tree. This operation will overwrite the previous channel content. Use only during
development.
--publish Publish newly uploaded version of the channel.
--sample SIZE Upload a sample of SIZE nodes from the channel.
--reset (deprecated) Restarting the chef run is the default.
--stage (deprecated) Stage updated content for review. Uploading a staging tree is now the default behavior. Use --deploy to upload to the
main tree.
--channeldir CHANNELDIR
The directory that corresponds to the root of the channel.
--channelinfo CHANNELINFO
Filename for the channel metadata (assumed to be sibling of channeldir)
--contentinfo CONTENTINFO
Filename for content metadata (assumed to be sibling of channeldir)
--exercisesinfo EXERCISESINFO
Filename for execises metadata (assumed to be sibling of channeldir)
--questionsinfo QUESTIONSINFO
Filename for execise questions metadata (assumed to be sibling of channeldir)
--generate Generate metadata files from directory stucture.
--importstudioid IMPORTSTUDIOID
Generate CSV metadata from a specified studio_id (e.g. studio_id of main_tree for some channel)
Later versions of pycaption seem to clash with beautifulsoup4 dependencies in ricecooker.
AI usage
None, just search.

Activity
learning-equality-bot commentedon Nov 11, 2026
🔍 Thanks for opening this issue! @rtibblesbot will check it against the code and comment with its findings.
What happens next:
community-issue-reviewlabel stays on until the review comment is posted.A maintainer decides what happens next. This check does not close the issue.
rtibblesbot commentedon Nov 11, 2026
Verdict: claim does not hold
Evidence:
pyproject.toml:41(le-pycaption>=2.2.0a1),uv.lock:529(future1.0.0),git show v0.8.0:setup.py(nofuturepin);import pycaptionrun on Python 3.13 withle-pycaption==2.2.0a1and eachfutureversionThe report says ricecooker v0.8.0 fails to import on Python 3.13 because the
futurepackage thatle-pycaptiondepends on runsimport imp.What the code and the packages actually do:
setup.py) normainpinsfuture.le-pycaption2.2.0a1 requiresfuturewith no version bound, so a fresh install resolvesfuture1.0.0, which is also the version inmain'suv.lock.future1.0.0,past/__init__.pyno longer importspast.translation, andimport impis behind a version guard.import pycaptionandfrom pycaption import CaptionReadErrorboth succeed on Python 3.13.12.future==0.18.3the same import fails on 3.13 withModuleNotFoundError: No module named 'imp'. The traceback in the report (past/__init__.py:88importingpast.translation,import impatpast/translation/__init__.py:35) comes from afuturerelease older than 1.0.0.maintests Python 3.10–3.14 (.github/workflows/pythontest.yml:43).The failure therefore comes from an environment that resolved
futureolder than 1.0.0, not from a constraint ricecooker sets. To check, runuv pip show futurein that project.uv add "future>=1.0.0"fixes it without swapping inpycaption. Bothpycaptionandle-pycaptioninstall the samepycaptionimport package, so addingpycaption>=2.1.1replaces the module that ricecooker depends on.The
PyPDF2SyntaxWarningcomes from v0.8.0'spypdf2==1.26.0pin.mainreplaced that pin withpypdf==6.20.1(db50d9c).Recommended close:
not_planned. A maintainer can ask for it in a reply mentioning @rtibblesbot.Written by rtibblesbot, an LLM-based coding agent.
kill9zombie commentedon Nov 11, 2026
Aha, in my older environment I have this:
I must have set it up initially with an older version of something.
When I setup a fresh environment:
The new environment does use
future==1.0.0.Is there an option to update the installation docs a little to help people that don't use Python very often?
bjester commentedon Nov 11, 2026
@kill9zombie Yeah I think it'd be okay to add something to the docs. You could open a PR your change and reference this issue if you want