Skip to content

some difficulties using the DeDRM standalone stuff #653

@cameron-simpson

Description

@cameron-simpson

I've been running this successfully outside Calibre for some years. This is the module in my cs.ebooks package which hooks into the DeDRM stuff:
https://github.com/cameron-simpson/css/blob/ebooks/lib/python/cs/ebooks/dedrm.py#L228
The interesting bit is the DeDRMWrapper class.

Some of the elaborateness is because I'm deliberately not modifying any DeDRM code.

Currently it works against a source checkout of the git repo (or did as of DeDRM 7.2.1), and I'm updating it to also be able to find the DeDRM_plugin.zip in the local Calibre install and run off that, and things have started breaking (possibly due to me foolishly updating from 7.2.1, but I need to work with current stuff anyway at some point).

Currently I've got a stopper in standalone/__init__.py which contains this code:
https://github.com/noDRM/DeDRM_tools/blame/3373d938749117989dfd0a42cc947bf338d3ffda/DeDRM_plugin/standalone/__init__.py#L75

This imports from standalone/__init__.py itself, because it pushes the standalone directory onto the front of sys.path. Needless to say, the import of these symbols fails.

I can pursue this with a monkey patch (ugh!), but do you want to pursue fixes at your end?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions