Skip to content

sometimes fail to generate files #2909

@sebbu2

Description

@sebbu2

Describe the bug

╭─────────────────────────────────────────────────────────── Traceback (most recent call last) ────────────────────────────────────────────────────────────╮
│ C:\Users\sebbu\AppData\Local\Python\pythoncore-3.14-64\Lib\site-packages\lncrawl\commands\crawl.py:164 in crawl                                          │
│                                                                                                                                                          │
│   161 │   │   formats.insert(0, OutputFormat.epub)                                                                                                       │
│   162 │   for fmt in set(formats) & ctx.binder.available_formats:                                                                                        │
│   163 │   │   with console.status(f"Generating {fmt}..."):                                                                                               │
│ ❱ 164 │   │   │   artifact = ctx.binder.make_artifact(                                                                                                   │
│   165 │   │   │   │   novel.id,                                                                                                                          │
│   166 │   │   │   │   novel.title,                                                                                                                       │
│   167 │   │   │   │   format=fmt,                                                                                                                        │
│                                                                                                                                                          │
│ C:\Users\sebbu\AppData\Local\Python\pythoncore-3.14-64\Lib\site-packages\lncrawl\services\binder\service.py:88 in make_artifact                          │
│                                                                                                                                                          │
│   85 │   │   try:                                                                                                                                        │
│   86 │   │   │   shutil.rmtree(working_dir, True)                                                                                                        │
│   87 │   │   │   working_dir.mkdir(parents=True)                                                                                                         │
│ ❱ 88 │   │   │   make(working_dir, signal=signal, artifact=artifact, epub=epub)                                                                          │
│   89 │   │   │   file = ctx.files.resolve(artifact.output_file)                                                                                          │
│   90 │   │   │   if file.is_file():                                                                                                                      │
│   91 │   │   │   │   artifact.file_size = file.stat().st_size                                                                                            │
│                                                                                                                                                          │
│ C:\Users\sebbu\AppData\Local\Python\pythoncore-3.14-64\Lib\site-packages\lncrawl\services\binder\calibre.py:67 in convert_epub                           │
│                                                                                                                                                          │
│    64 ) -> None:                                                                                                                                         │
│    65 │   out_file = ctx.files.resolve(artifact.output_file)                                                                                             │
│    66 │   if not epub:                                                                                                                                   │
│ ❱  67 │   │   raise ServerErrors.no_epub_file                                                                                                            │
│    68 │                                                                                                                                                  │
│    69 │   tmp_file = working_dir / out_file.name                                                                                                         │
│    70 │   novel = ctx.novels.get(artifact.novel_id)                                                                                                      │
╰──────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────╯
ServerError: Error(500): No EPub file found

Let us know

App source: PIP
App version: 4.1.1
Your OS: Windows

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions