# Fcitx5 not working on Anki 2.1.66 (qt6)

**URL:** <https://forums.ankiweb.net/t/fcitx5-not-working-on-anki-2-1-66-qt6/34874>\
**Category:** Help\
**Created:** [September 23, 2023, 8:38am UTC](https://forums.ankiweb.net/t/fcitx5-not-working-on-anki-2-1-66-qt6/34874 "2023-09-23T08:38:50Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![tsa](https://avatars.discourse-cdn.com/v4/letter/t/c68b51/32.png) [@tsa](https://forums.ankiweb.net/u/tsa)\
**Post date:** [September 23, 2023, 8:38am UTC](https://forums.ankiweb.net/t/fcitx5-not-working-on-anki-2-1-66-qt6/34874/1 "2023-09-23T08:38:50Z")

</div>

I’m running Anki 2.1.66 (qt6) and my IME (fcitx5) is not working within Anki.

fcitx works on my system with qt5 applications (e.g. [qolibri](https://github.com/mvf/qolibri)). (switching to Anki with qt5 does not seem to be an option because when running the qt5 version of Anki part of the UI just freezes after startup and is not usable)

Details of my setup:

- Debian 12
- Python 3.11.2
- running Anki within a pipenv virtual environment

```auto
➜ pipenv graph
aqt==2.1.66
  - anki [required: ==2.1.66, installed: 2.1.66]
    - beautifulsoup4 [required: Any, installed: 4.12.2]
      - soupsieve [required: >1.2, installed: 2.5]
    - decorator [required: Any, installed: 5.1.1]
    - distro [required: Any, installed: 1.8.0]
    - markdown [required: Any, installed: 3.4.4]
    - orjson [required: Any, installed: 3.9.7]
    - protobuf [required: >=4.21, installed: 4.24.3]
    - requests [required: Any, installed: 2.31.0]
      - certifi [required: >=2017.4.17, installed: 2023.7.22]
      - charset-normalizer [required: >=2,<4, installed: 3.2.0]
      - idna [required: >=2.5,<4, installed: 3.4]
      - urllib3 [required: >=1.21.1,<3, installed: 2.0.5]
  - beautifulsoup4 [required: Any, installed: 4.12.2]
    - soupsieve [required: >1.2, installed: 2.5]
  - flask [required: Any, installed: 2.3.3]
    - blinker [required: >=1.6.2, installed: 1.6.2]
    - click [required: >=8.1.3, installed: 8.1.7]
    - itsdangerous [required: >=2.1.2, installed: 2.1.2]
    - Jinja2 [required: >=3.1.2, installed: 3.1.2]
      - MarkupSafe [required: >=2.0, installed: 2.1.3]
    - Werkzeug [required: >=2.3.7, installed: 2.3.7]
      - MarkupSafe [required: >=2.1.1, installed: 2.1.3]
  - flask-cors [required: Any, installed: 4.0.0]
    - Flask [required: >=0.9, installed: 2.3.3]
      - blinker [required: >=1.6.2, installed: 1.6.2]
      - click [required: >=8.1.3, installed: 8.1.7]
      - itsdangerous [required: >=2.1.2, installed: 2.1.2]
      - Jinja2 [required: >=3.1.2, installed: 3.1.2]
        - MarkupSafe [required: >=2.0, installed: 2.1.3]
      - Werkzeug [required: >=2.3.7, installed: 2.3.7]
        - MarkupSafe [required: >=2.1.1, installed: 2.1.3]
  - jsonschema [required: Any, installed: 4.19.1]
    - attrs [required: >=22.2.0, installed: 23.1.0]
    - jsonschema-specifications [required: >=2023.03.6, installed: 2023.7.1]
      - referencing [required: >=0.28.0, installed: 0.30.2]
        - attrs [required: >=22.2.0, installed: 23.1.0]
        - rpds-py [required: >=0.7.0, installed: 0.10.3]
    - referencing [required: >=0.28.4, installed: 0.30.2]
      - attrs [required: >=22.2.0, installed: 23.1.0]
      - rpds-py [required: >=0.7.0, installed: 0.10.3]
    - rpds-py [required: >=0.7.1, installed: 0.10.3]
  - requests [required: Any, installed: 2.31.0]
    - certifi [required: >=2017.4.17, installed: 2023.7.22]
    - charset-normalizer [required: >=2,<4, installed: 3.2.0]
    - idna [required: >=2.5,<4, installed: 3.4]
    - urllib3 [required: >=1.21.1,<3, installed: 2.0.5]
  - send2trash [required: Any, installed: 1.8.2]
  - waitress [required: >=2.0.0, installed: 2.1.2]
PyQt6-WebEngine==6.5.0
  - PyQt6 [required: >=6.2.0, installed: 6.5.2]
    - PyQt6-Qt6 [required: >=6.5.0, installed: 6.5.2]
    - PyQt6-sip [required: >=13.4,<14, installed: 13.5.2]
  - PyQt6-sip [required: >=13.4,<14, installed: 13.5.2]
  - PyQt6-WebEngine-Qt6 [required: >=6.5.0, installed: 6.5.2]
pyrsistent==0.19.3
PySocks==1.7.1
six==1.16.0

```

- necessary packages should be installed

```auto
➜ dpkg -s fcitx5 | grep Status
Status: install ok installed
➜ dpkg -s libfcitx5-qt6-1 | grep Status
Status: install ok installed
➜ dpkg -s libfcitx5-qt6-dev | grep Status
Status: install ok installed

```

- environment variables are set

```auto
➜ echo $GTK_IM_MODULE $QT_IM_MODULE $XMODIFIERS
fcitx fcitx @im=fcitx

```

---

<div class="post-metadata">

**Author:** ![abdo](https://sea2.discourse-cdn.com/flex002/user_avatar/forums.ankiweb.net/abdo/32/654_2.png) [@abdo](https://forums.ankiweb.net/u/abdo)\
**Post date:** [September 23, 2023, 7:20pm UTC](https://forums.ankiweb.net/t/fcitx5-not-working-on-anki-2-1-66-qt6/34874/2 "2023-09-23T19:20:12Z")

</div>

The manual suggests running Anki from the Python wheels:  
[https://docs.ankiweb.net/platform/linux/input-methods.html?highlight=Fcitx#fcitx](https://docs.ankiweb.net/platform/linux/input-methods.html?highlight=Fcitx#fcitx)

---

<div class="post-metadata">

**Author:** ![dae](https://sea2.discourse-cdn.com/flex002/user_avatar/forums.ankiweb.net/dae/32/65_2.png) [@dae](https://forums.ankiweb.net/u/dae)\
**Post date:** [September 24, 2023, 7:10am UTC](https://forums.ankiweb.net/t/fcitx5-not-working-on-anki-2-1-66-qt6/34874/3 "2023-09-24T07:10:47Z")

</div>

Are the PyQt packages from PyPi or from your distro? You may need the latter to get it to work with fcitx.

---

<div class="post-metadata">

**Author:** ![system](https://us1.discourse-cdn.com/flex002/uploads/anki2/original/1X/8f1279ababc5879d54e4838989f606cfe55af8c7.jpeg) [@system](https://forums.ankiweb.net/u/system)\
**Post date:** [October 24, 2023, 7:11am UTC](https://forums.ankiweb.net/t/fcitx5-not-working-on-anki-2-1-66-qt6/34874/4 "2023-10-24T07:11:18Z")

</div>

Closed on October 24, 2023, 7:11am UTC

This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.
