Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[BUG] Cannot convert Chinese when EPUB to PDF #319

Closed
1 task done
Hanzo-Huang opened this issue Sep 12, 2024 · 3 comments
Closed
1 task done

[BUG] Cannot convert Chinese when EPUB to PDF #319

Hanzo-Huang opened this issue Sep 12, 2024 · 3 comments

Comments

@Hanzo-Huang
Copy link

Is there an existing issue for this?

  • I have searched the existing issues

Current Behavior

ebook-convert book.epub book.pdf

Expected Behavior

No response

Steps To Reproduce

Chinese books convert to PDF from EPUB.
CLI convert.

Environment

- OS:Ubuntu 22.04
- How docker service was installed: 1panel

CPU architecture

x86-64

Docker creation

networks:
    1panel-network:
        external: true
services:
    calibre-web:
        container_name: ${CONTAINER_NAME}
        deploy:
            resources:
                limits:
                    cpus: ${CPUS}
                    memory: ${MEMORY_LIMIT}
        environment:
            - PUID=1000
            - PGID=1000
            - TZ=${TIME_ZONE}
            - DOCKER_MODS=linuxserver/mods:universal-calibre
            - OAUTHLIB_RELAX_TOKEN_SCOPE=1
        image: linuxserver/calibre-web:0.6.21-ls241
        labels:
            createdBy: Apps
        networks:
            - 1panel-network
        ports:
            - ${HOST_IP}:${PANEL_APP_PORT_HTTP}:8083
        restart: always
        volumes:
            - ./data/config:/config
            - ./data/books:/books

Container logs

No error log.
@Hanzo-Huang Hanzo-Huang changed the title [BUG] Cannot convert Chinese when EPUB to PDF #314 [BUG] Cannot convert Chinese when EPUB to PDF Sep 12, 2024
@Hanzo-Huang
Copy link
Author

I think the problem is the language environment of Chinese. Because it work on all my other machine, like ubuntu, Windows, MacOS. If it cloud add Chinese environment, and have a try? Thanks

@realDayaa
Copy link

For me, converting using the web interface doesn't work in general, not matter the format or book.
When I use ebook-convert in the container using docker exec, it works as expected.

Logs:
[2024-09-20 07:54:45,646] INFO {cps.editbooks:322} converting: book id: 125 from: EPUB to: PDF
[2024-09-20 07:54:45,651] DEBUG {cps.services.worker:91} Add Task for user: ***** - Convert Book 125
[2024-09-20 07:54:45,653] INFO {cps.tasks.convert:161} Book id 125 - target format of .pdf does not exist. Moving forward with convert.
[2024-09-20 07:54:46,716] DEBUG {cps.tasks.convert:308} No write access to /root/.config/calibre using a temporary dir instead
[2024-09-20 07:54:46,716] DEBUG {cps.tasks.convert:308} Extra arguments not understood: /usr/bin
[2024-09-20 07:54:46,788] INFO {cps.tasks.convert:208} ebook converter failed with error while converting book
[2024-09-20 07:54:46,788] ERROR {cps.tasks.convert:212} .PDF format not found on disk

@drizuid
Copy link
Member

drizuid commented Oct 4, 2024

I suggest seeking support from the developer of the application to determine if this is a problem in the app.

@drizuid drizuid closed this as not planned Won't fix, can't repro, duplicate, stale Oct 15, 2024
@LinuxServer-CI LinuxServer-CI moved this from Issues to Done in Issue & PR Tracker Oct 15, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
Development

No branches or pull requests

3 participants