Open banool opened 1 month ago
I get this output from running bundle_calibre_plugin.sh
:
$ ./bundle_calibre_plugin.sh
~/github/acsm-calibre-plugin/calibre-plugin-tmp ~/github/acsm-calibre-plugin
~/github/acsm-calibre-plugin/calibre-plugin-tmp/keyextract ~/github/acsm-calibre-plugin/calibre-plugin-tmp ~/github/acsm-calibre-plugin
i686-w64-mingw32-gcc main.c -Os -o decrypt_win32.exe -lcrypt32 -lwsock32
make: i686-w64-mingw32-gcc: No such file or directory
make: *** [decrypt_win32.exe] Error 1
base64: invalid argument decrypt_win32.exe
Usage: base64 [-Ddh] [-b num] [-i in_file] [-o out_file]
-b, --break break encoded string into num character lines
-Dd, --decode decodes input
-h, --help display this message
-i, --input input file (default: "-" for stdin)
-o, --output output file (default: "-" for stdout)
base64: invalid argument decrypt_win64.exe
Usage: base64 [-Ddh] [-b num] [-i in_file] [-o out_file]
-b, --break break encoded string into num character lines
-Dd, --decode decodes input
-h, --help display this message
-i, --input input file (default: "-" for stdin)
-o, --output output file (default: "-" for stdout)
rm: decrypt_win32.exe: No such file or directory
rm: decrypt_win64.exe: No such file or directory
~/github/acsm-calibre-plugin/calibre-plugin-tmp ~/github/acsm-calibre-plugin
rm: __pycache__: No such file or directory
rm: *.pyc: No such file or directory
./bundle_calibre_plugin.sh: line 62: shopt: globstar: invalid shell option name
Injecting Python2 compat code ...
./bundle_calibre_plugin.sh: line 14: **/*.py.tmp: No such file or directory
mv: rename **/*.py.tmp to **/*.py: No such file or directory
updating: LICENSE (deflated 66%)
updating: README.md (deflated 60%)
updating: __calibre_compat_code.py (deflated 47%)
updating: __init__.py (deflated 71%)
updating: acsm_logo_2.png (deflated 2%)
updating: asn1crypto.zip (stored 0%)
updating: config.py (deflated 82%)
updating: cpuid.py (deflated 70%)
updating: customRSA.py (deflated 63%)
updating: exportPluginAuthToWindowsADE.py (deflated 67%)
updating: fulfill.py (deflated 66%)
updating: getEncryptionKeyLinux.py (deflated 63%)
updating: getEncryptionKeyWindows.py (deflated 68%)
updating: get_key_from_Adobe.py (deflated 60%)
updating: gui_main.py (deflated 65%)
updating: gui_main_wrapper.py (deflated 53%)
updating: keyextract/ (stored 0%)
updating: keyextract/Makefile (deflated 59%)
updating: keyextract/main.c (deflated 65%)
updating: keyextractDecryptor.py (deflated 49%)
updating: libadobe.py (deflated 68%)
updating: libadobeAccount.py (deflated 80%)
updating: libadobeFulfill.py (deflated 79%)
updating: libadobeImportAccount.py (deflated 72%)
updating: libpdf.py (deflated 71%)
updating: module_id.txt (stored 0%)
updating: oscrypto.zip (stored 0%)
updating: plugin-import-name-deacsm.txt (stored 0%)
updating: prefs.py (deflated 70%)
updating: register_ADE_account.py (deflated 61%)
updating: singleinstance_helper.py (deflated 62%)
~/github/acsm-calibre-plugin
Lots of errors, though I suspect some are expected since this is meant to be portable across multiple OSes.
Okay installing DeDRM first made was what I needed to do to make this work. Unfortunately it doesn't work, if I import an acsm file it stays an acsm file, but that's separate to this issue.
For this issue it'd be nice if there was a more comprehensive README + better error messages.
Installing DeDRM is not needed for this plugin to function in general. I suspect a Calibre restart or computer restart might have solved this particular problem.
During the bundling, it fails to compile the keyextract code since you don't have the proper compiler installed, but that should't stop the plugin from functioning since it's only needed on Linux anyways, not on Windows or MacOS.
If the plugin fails to turn ACSM files into EPUBs, there's another error so you'll need to run Calibre in debug mode and check the logs again (or post them here).
I know the error handling for the plugin isn't always the greatest, most of the issues come from the fact that the plugin needs to load 3rd-party python plugins (which almost no other Calibre plugin does) and that doesn't always work properly.
Bug description
Same repro steps as in: https://github.com/Leseratte10/acsm-calibre-plugin/issues/72. Seems like https://github.com/Leseratte10/acsm-calibre-plugin/pull/88 perhaps didn't fix it for MacOS. I'm using the default
sed
.I cloned the repo from master (commit 27bd9531c44f9896e4ade81c768c12e393e51e9a).
I get this error:
Operating system
MacOS
Which version of Calibre are you running?
7.12.0
Which version of the ACSM Input plugin are you running?
From commit 27bd9531c44f9896e4ade81c768c12e393e51e9a
Import type
No response
Further information
No response