Ubuntu: How do I run a python script with Wine?



Question:

I'm using Calibre to manage my ebooks and I'm trying to install a plugin that will allow me to manage library books that I get through Adobe Digital Editions via Wine. I've got everything installed, but I need to run an additional script to tie it all together. I get to one step in the instructions that says "you'll need to run the adobekey.pyw script using the python installation in your Wine system."

So how do I run a script using the python installation in Wine?

This is my first time using Wine, so please make your answers as basic as possible.


Solution:1

Here's the steps provided by the Calibre Ineptepub plugin's Readme

DRM tool available here: http://apprenticealf.wordpress.com/2012/09/10/drm-removal-tools-for-ebooks/

Linux and Adobe Digital Editions ePubs

Here are the instructions for using the tools with ePub books and Adobe Digital Editions on Linux under Wine. (Thank you mclien and Fadel!)

  1. download the most recent version of wine from winehq.org (1.3.29 in my case)

  2. properly install Wine (see the Wine site for details)

  3. python 2.7 should already be installed on your system but you may need the following additional python package

    apt-get install python-tk  
  4. all programms need to be installed as normal user. The .exe files are installed using ‘wine ’ but .msi files must be installed using ‘wine start ’ we need:

    a) Adobe Digital Edition 1.7.2(from: http://kb2.adobe.com/cps/403/kb403051.html) (there is a “can’t install ADE” site, where the setup.exe hides)

    b) ActivePython-2.7.2.5-win32-x86.msi (from: http://www.activestate.com/activepython/downloads)

    c) Win32OpenSSL_Light-0_9_8r.exe (from: http://www.slproweb.com/)

    d) pycrypto-2.3.win32-py2.7.msi (from: http://www.voidspace.org.uk/python/modules.shtml)

  5. now get and unpack the very latest tools_vX.X (from Apprentice Alf) in the users drive_c of wine (~/.wine/drive_c/)

  6. start ADE with: wine digitaleditions.exe or from the Unity Dash search "Adobe Digital Editions"

  7. register this instance of ADE with your adobeID and close it, open terminal and change to the tools_vX.X dir:

    cd ~/.wine/drive_c/tools_vX.X/Other_Tools/  
  8. create the adeptkey.der with: wine python ineptkey.py (only need once!) (key will be here: ~/.wine/drive_c/tools_vX.X/Other_Tools/adeptkey.der)

  9. Use ADE running under Wine to dowload all of your purchased ePub ebooks

  10. install the ineptepub and ineptpdf plugins from the tools as discribed in the readmes.

  11. copy the adeptkey.der into the config dir of calibre (~/.config/calibre in debian/ubuntu). Your ADE books imported to calibre will automatically be freed from DRM.


Note:If u also have question or solution just comment us below or mail us on toontricks1994@gmail.com
Previous
Next Post »