mirror of
https://github.com/ankitects/anki.git
synced 2026-11-30 10:24:33 -06:00
closes #5064 Should let you quickly import to mintlify from the repos that use the existing format. a small problem that `DOCS_RELATIVE_LINK_REPLACEMENTS` needs to be set manually for links between related translations but other than that should be good. I've run it on `en/addons` `en/faqs` `en/manual` and on `ar/manual` `ar/faqs`. We might need to be careful to not overwrite any changes that have been merged in this repo if there are any. I've set it to copy only files where it can find them in the existing mintlify docs because this allows us to more easily keep the site structure. It does mean that there are some pages which aren't copied and I'm going to have to look into that at some point. But it should be good enough to look through and to import any remaining changes left in the existing repos. Example usage: ``` python tools/docs-converter.py [Source repo] [Target tab] [Target language code] ``` ``` python tools/docs-converter.py ../anki-manual manual en python tools/docs-converter.py ../anki-faqs faqs ar ``` --------- Co-authored-by: Abdo <abdo@abdnh.net> Co-authored-by: Fernando Lins <1887601+fernandolins@users.noreply.github.com>
46 lines
1.3 KiB
Plaintext
46 lines
1.3 KiB
Plaintext
---
|
|
title: "Running from Python"
|
|
---
|
|
|
|
If you experience startup problems or crashes with the packaged builds of Anki
|
|
that you are unable to resolve, you can try running directly via Python as a
|
|
last resort.
|
|
|
|
The instructions below are provided for Windows users, as these problems seem
|
|
most prevalent on Windows, but a similar approach can be taken on other
|
|
platforms too.
|
|
|
|
1. Install [https://www.python.org/ftp/python/3.9.13/python-3.9.13-amd64.exe](https://www.python.org/ftp/python/3.9.13/python-3.9.13-amd64.exe). Customize
|
|
the install location, and choose `c:\python`
|
|
2. Open the Start menu, and open a Command Prompt.
|
|
3. Type in the following and hit enter:
|
|
|
|
```
|
|
\python\python -m venv \anki-venv
|
|
```
|
|
|
|
4. And then the following, which will take a while:
|
|
|
|
```
|
|
\anki-venv\scripts\pip install aqt orjson pyqt6-webengine
|
|
```
|
|
|
|
5. Finally:
|
|
|
|
```
|
|
\anki-venv\scripts\anki
|
|
```
|
|
|
|
If that solves your problem, you can start Anki again in the future by repeating
|
|
steps 2 and 5.
|
|
|
|
If you still experience problems, you can try changing the Qt version:
|
|
|
|
```
|
|
\anki-venv\scripts\pip install pyqt5==5.15 pyqtwebengine==5.15.0
|
|
```
|
|
|
|
If that does not help either, and you have already followed all the steps on
|
|
[when problems occur](/manual/troubleshooting), then you may unfortunately be
|
|
out of luck.
|