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

yomi2tab problem #6

Open
EmperorLicht opened this issue Apr 2, 2023 · 2 comments
Open

yomi2tab problem #6

EmperorLicht opened this issue Apr 2, 2023 · 2 comments
Assignees
Labels
enhancement New feature or request execution-issue The program is not being executed properly

Comments

@EmperorLicht
Copy link

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
/

@olety
Copy link
Owner

olety commented Apr 4, 2023

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 olety self-assigned this Apr 4, 2023
@olety olety added question Further information is requested enhancement New feature or request execution-issue The program is not being executed properly and removed question Further information is requested labels Apr 4, 2023
@EmperorLicht
Copy link
Author

EmperorLicht commented Apr 5, 2023

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request execution-issue The program is not being executed properly
Projects
None yet
Development

No branches or pull requests

2 participants