epwing2kindle icon indicating copy to clipboard operation
epwing2kindle copied to clipboard

yomi2tab problem

Open EmperorLicht opened this issue 3 years ago • 2 comments

Describe the bug I wanted to convert my existing jmdict_german dictionary to a Kindle compatible file. But I just get syntax errors. IDK why this is happening. Additional, even if it would work, I wasn't really able to find a kindlegen setup or which version I need at least and Amazon doesn't offer it as a download any more.

To ReproduceD Steps to reproduce the behavior:

  1. Run py -3.11.2 yomi2tab.py -o mydict.tab "C:\Users\jbble\AppData\Local\Programs\Python\Python311\yomi_output" on python
  2. See error.

Expected behavior I thought it would convert my JSON files into Tab files so that I can forward with the whole process.

Screenshots image image

Desktop (please complete the following information):

  • OS: Windows 11
  • Python version 3.11.2

Additional context /

EmperorLicht avatar Apr 02 '23 00:04 EmperorLicht

Thank you for providing the details about the issue you're experiencing. It appears that the "py -3" command is being executed from within the Python interpreter rather than the Windows command prompt. To resolve this, please follow these steps:

  1. Open a Windows command prompt by pressing Win+R, typing "cmd" into the text field, and clicking "Run."
  2. Use the "cd" command to navigate to the folder containing your files.
  3. Run the script by entering the following command: py -3 yomi2tab.py -o mydict.tab "C:\Users\jbble\AppData\Local\Programs\Python\Python311\yomi_output" (the -3 part might not be needed depending on how you installed python)

For a more detailed explanation, please refer to this guide: https://www.wikihow.com/Use-Windows-Command-Prompt-to-Run-a-Python-File

Regarding the kindlegen issue, it seems that Amazon has replaced it with Kindle Previewer. I recommend using Kindle Previewer instead, and I will update the repository with this information when time permits. You can download Kindle Previewer here: https://www.amazon.com/Kindle-Previewer/b?node=21381691011

olety avatar Apr 04 '23 04:04 olety

Thank you very much for your comprehensive answer. Unfortunately, some other errors occurred in PowerShell and cmd as I tried in both. It says that pandas is missing, but it's already installed according to anaconda. Also, I looked in the Wikihow and wanted to ask if I should do step 3 “Adding Python to the PATH List” or if this is not necessary. image image image

EmperorLicht avatar Apr 05 '23 00:04 EmperorLicht