#Ankiconnect and yomitan refuses to connect for unknown reason.

7 messages · Page 1 of 1 (latest)

junior kindle
#

3 lines of code caused me 3 hours of suffering.

fossil bloomBOT
#

<@&1252261403667071056> Ankiconnect and yomitan refuses to connect for unknown reason.

junior kindle
#

Aquafina the goat that keeps on giving.

#

If you encounter this issue after the update you need to edit the init.py file.

#

You to need to change

`required_anki_version = (23, 10, 0)
anki_version = tuple(int(segment) for segment in aqt.appVersion.split("."))

if anki_version < required_anki_version:
raise Exception(f"Minimum Anki version supported: {required_anki_version[0]}.{required_anki_version[1]}.{required_anki_version[2]}")
`

#

To
`
anki_version = tuple(int(segment) for segment in aqt.appVersion.split("."))

if anki_version < (24, 6, 3):
raise Exception("Minimum Anki version supported: 24.6.3")`

#

And or Change the port in the config file from 8765 to any other available port. 9999 worked for me.