DeepQt icon indicating copy to clipboard operation
DeepQt copied to clipboard

Api Key Error - Flatpak Version

Open komoricodrutz opened this issue 1 year ago • 7 comments

Hi again After fixing the dependency issue, I tried to enter the Api Key. Getting the error that This account is not allowed to access the API. As it is a Pro Ultimate account, with the option of generating an API key, it is a bit odd: image

Thanks!

komoricodrutz avatar Jan 08 '25 15:01 komoricodrutz

About your previous issue, I totally missed that this was about deepqt, not panel cleaner, my bad. Yes, I indeed haven't updated this one in a long time, due to me working on a version 2 that overhauls the whole thing. Because of that, I have no plans to update this legacy version, but I think I can still help you out. The issue is likely due to an old version of the deepl python module, definitely not anything in my code. Try installing deepqt with pip and see if it works. Note the version pip used (visible with pip list) and let me know if that fixed it. If it did, I can still update the flatpak (along with a new version of the sdk).

VoxelCubes avatar Jan 08 '25 20:01 VoxelCubes

I've updated the runtime now, as well as the python dependencies. Give it a try and see if the flatpak works after updating.

VoxelCubes avatar Jan 09 '25 01:01 VoxelCubes

Sorry, I was not checking my mesages. Busy moving... :-) No worries. As a matter of fact, I did try to install it via pip after the first flatpak issue. I was getting some error at start (I admit, I was too lazy to document it) and then saw the more "readable" error in the flatpak version and managed to fix it as described in that initial issue. The flatpak version is downloading as I'm writing this, so I'll give it a try then get back to you.

LE: I just tested the 1.1.7 flatpak version. The same API error appears. I will give it another try with pip when I have some time.

LLE: I tried it with pip Unfortunately I am getting the xcb error (now that I saw it again, it was the same. I also tried a few fixes I managed to quickly search

Installation
myuserid@MyComputer:~$ pip install deepqt
Defaulting to user installation because normal site-packages is not writeable
Collecting deepqt
  Downloading deepqt-1.1.7-py3-none-any.whl (97 kB)
     ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 97.3/97.3 KB 947.2 kB/s eta 0:00:00
Collecting minify-html
  Downloading minify_html-0.15.0-cp310-cp310-manylinux_2_17_x86_64.manylinux2014_x86_64.whl (2.4 MB)
     ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 2.4/2.4 MB 2.5 MB/s eta 0:00:00
Collecting pyexcel
  Downloading pyexcel-0.7.1-py2.py3-none-any.whl (88 kB)
     ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 88.7/88.7 KB 2.8 MB/s eta 0:00:00
Collecting logzero
  Downloading logzero-1.7.0-py2.py3-none-any.whl (16 kB)
Requirement already satisfied: beautifulsoup4 in /usr/lib/python3/dist-packages (from deepqt) (4.10.0)
Collecting deepl
  Downloading deepl-1.21.0-py3-none-any.whl (38 kB)
Collecting pyexcel-xls
  Downloading pyexcel_xls-0.7.0-py2.py3-none-any.whl (11 kB)
Collecting pyexcel-odsr
  Downloading pyexcel_odsr-0.6.0-py2.py3-none-any.whl (11 kB)
Collecting PySide6
  Downloading PySide6-6.8.1.1-cp39-abi3-manylinux_2_28_x86_64.whl (532 kB)
     ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 532.7/532.7 KB 2.8 MB/s eta 0:00:00
Collecting pyexcel-xlsx
  Downloading pyexcel_xlsx-0.6.0-py2.py3-none-any.whl (9.6 kB)
Collecting pyexcel-htmlr
  Downloading pyexcel_htmlr-0.6.0-py2.py3-none-any.whl (8.1 kB)
Requirement already satisfied: xdg in /usr/lib/python3/dist-packages (from deepqt) (5)
Requirement already satisfied: lxml in /usr/lib/python3/dist-packages (from deepqt) (4.8.0)
Requirement already satisfied: requests<3,>=2 in /usr/lib/python3/dist-packages (from deepl->deepqt) (2.25.1)
Collecting lml>=0.0.4
  Downloading lml-0.1.0-py2.py3-none-any.whl (10 kB)
Collecting pyexcel-io>=0.6.2
  Downloading pyexcel_io-0.6.7-py2.py3-none-any.whl (44 kB)
     ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 44.5/44.5 KB 1.7 MB/s eta 0:00:00
Collecting texttable>=0.8.2
  Downloading texttable-1.7.0-py2.py3-none-any.whl (10 kB)
Requirement already satisfied: html5lib in /usr/lib/python3/dist-packages (from pyexcel-htmlr->deepqt) (1.1)
Collecting xlwt
  Downloading xlwt-1.3.0-py2.py3-none-any.whl (99 kB)
     ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 100.0/100.0 KB 1.6 MB/s eta 0:00:00
Requirement already satisfied: xlrd in /usr/lib/python3/dist-packages (from pyexcel-xls->deepqt) (1.2.0)
Collecting openpyxl>=2.6.1
  Downloading openpyxl-3.1.5-py2.py3-none-any.whl (250 kB)
     ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 250.9/250.9 KB 2.4 MB/s eta 0:00:00
Collecting PySide6-Addons==6.8.1.1
  Downloading PySide6_Addons-6.8.1.1-cp39-abi3-manylinux_2_28_x86_64.whl (160.3 MB)
     ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 160.3/160.3 MB 3.7 MB/s eta 0:00:00
Collecting shiboken6==6.8.1.1
  Downloading shiboken6-6.8.1.1-cp39-abi3-manylinux_2_28_x86_64.whl (203 kB)
     ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 203.1/203.1 KB 2.0 MB/s eta 0:00:00
Collecting PySide6-Essentials==6.8.1.1
  Downloading PySide6_Essentials-6.8.1.1-cp39-abi3-manylinux_2_28_x86_64.whl (95.3 MB)
     ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 95.3/95.3 MB 4.6 MB/s eta 0:00:00
Collecting et-xmlfile
  Downloading et_xmlfile-2.0.0-py3-none-any.whl (18 kB)
Installing collected packages: xlwt, texttable, minify-html, logzero, lml, shiboken6, pyexcel-io, et-xmlfile, deepl, PySide6-Essentials, pyexcel-xls, pyexcel-odsr, pyexcel-htmlr, pyexcel, openpyxl, PySide6-Addons, pyexcel-xlsx, PySide6, deepqt
Successfully installed PySide6-6.8.1.1 PySide6-Addons-6.8.1.1 PySide6-Essentials-6.8.1.1 deepl-1.21.0 deepqt-1.1.7 et-xmlfile-2.0.0 lml-0.1.0 logzero-1.7.0 minify-html-0.15.0 openpyxl-3.1.5 pyexcel-0.7.1 pyexcel-htmlr-0.6.0 pyexcel-io-0.6.7 pyexcel-odsr-0.6.0 pyexcel-xls-0.7.0 pyexcel-xlsx-0.6.0 shiboken6-6.8.1.1 texttable-1.7.0 xlwt-1.3.0
First run
myuserid@MyComputer:~$ deepqt
[I 250116 16:25:08 main:53] ---- Starting up ----
[I 250116 16:25:08 main:54] Program: DeepQt 1.1.7
[I 250116 16:25:08 main:55] Log file is /home/myuserid/.cache/deepqt/deepqt.log
qt.qpa.plugin: From 6.5.0, xcb-cursor0 or libxcb-cursor0 is needed to load the Qt xcb platform plugin.
qt.qpa.plugin: Could not load the Qt platform plugin "xcb" in "" even though it was found.
This application failed to start because no Qt platform plugin could be initialized. Reinstalling the application may fix this problem.

Available platform plugins are: eglfs, linuxfb, minimal, minimalegl, offscreen, vkkhrdisplay, vnc, wayland-egl, wayland, xcb.

Aborted (core dumped)
Other attempts (sorry, don't know python at all, I just tried something common-sense
myuserid@MyComputer:~$ pip install xcb
Defaulting to user installation because normal site-packages is not writeable
ERROR: Could not find a version that satisfies the requirement xcb (from versions: none)
ERROR: No matching distribution found for xcb
myuserid@MyComputer:~$ ^C
myuserid@MyComputer:~$ pip uninstall opencv-python
WARNING: Skipping opencv-python as it is not installed.
myuserid@MyComputer:~$ pip install opencv-python-headless
Defaulting to user installation because normal site-packages is not writeable
Collecting opencv-python-headless
  Downloading opencv_python_headless-4.11.0.86-cp37-abi3-manylinux_2_17_x86_64.manylinux2014_x86_64.whl (50.0 MB)
     ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 50.0/50.0 MB 3.5 MB/s eta 0:00:00
Requirement already satisfied: numpy>=1.17.0 in /usr/lib/python3/dist-packages (from opencv-python-headless) (1.21.5)
Installing collected packages: opencv-python-headless
Successfully installed opencv-python-headless-4.11.0.86
Second attempt
myuserid@MyComputer:~$ deepqt
[I 250116 16:28:15 main:53] ---- Starting up ----
[I 250116 16:28:15 main:54] Program: DeepQt 1.1.7
[I 250116 16:28:15 main:55] Log file is /home/myuserid/.cache/deepqt/deepqt.log
qt.qpa.plugin: From 6.5.0, xcb-cursor0 or libxcb-cursor0 is needed to load the Qt xcb platform plugin.
qt.qpa.plugin: Could not load the Qt platform plugin "xcb" in "" even though it was found.
This application failed to start because no Qt platform plugin could be initialized. Reinstalling the application may fix this problem.

Available platform plugins are: eglfs, linuxfb, minimal, minimalegl, offscreen, vkkhrdisplay, vnc, wayland-egl, wayland, xcb.

Aborted (core dumped)

Other failed attempts at installing dependencies
myuserid@MyComputer:~$ pip install xcb-cursor0
Defaulting to user installation because normal site-packages is not writeable
ERROR: Could not find a version that satisfies the requirement xcb-cursor0 (from versions: none)
ERROR: No matching distribution found for xcb-cursor0
myuserid@MyComputer:~$ pip install libxcb-cursor0
Defaulting to user installation because normal site-packages is not writeable
ERROR: Could not find a version that satisfies the requirement libxcb-cursor0 (from versions: none)
ERROR: No matching distribution found for libxcb-cursor0
myuserid@MyComputer:~$ 

Then I found this here: https://github.com/NVlabs/instant-ngp/discussions/300

This gave me apparently a bit of progress:
myuserid@MyComputer:~$ export QT_QPA_PLATFORM=offscreen
myuserid@MyComputer:~$ deepqt
[I 250116 16:34:48 main:53] ---- Starting up ----
[I 250116 16:34:48 main:54] Program: DeepQt 1.1.7
[I 250116 16:34:48 main:55] Log file is /home/myuserid/.cache/deepqt/deepqt.log
[I 250116 16:34:48 driver_mainwindow:863] Epub cache folder does not exist. Nothing to do.
[D 250116 16:34:48 driver_mainwindow:728] Updating input buttons
[I 250116 16:34:48 driver_mainwindow:53] Multithreading with maximum 8 threads
[W 250116 16:34:48 config:189] Config file "/home/myuserid/.config/deepqtrc" not found. Creating default config file.
[D 250116 16:34:48 config:47] Saved config
[D 250116 16:34:48 driver_mainwindow:59] Loaded config: {'lang_from': '', 'lang_to': '', 'use_fixed_output_path': False, 'fixed_output_path': '', 'glossary_path': '', 'use_glossary': True, 'use_quote_protection': True, 'api_key': '', 'is_pro_version': False, 'tl_max_chunks': 20, 'tl_min_chunk_size': 5000, 'tl_preserve_formatting': True, 'tl_mock': False, 'dump_on_abort': True, 'epub_nuke_kobo': True, 'epub_nuke_ruby': True, 'epub_nuke_indents': True, 'epub_crush': False, 'epub_make_text_horizontal': True, 'epub_ignore_empty_html': True, 'avg_time_per_mille': 0.33}
[D 250116 16:34:48 driver_mainwindow:164] Loading config to UI.
[W 250116 16:34:48 driver_mainwindow:341] No API key set
[W 250116 16:34:48 driver_mainwindow:378] Glossary file not found: .
This plugin does not support propagateSizeHints()

At this point, it seems to be stuck. Cannot exit it with ctrl+C. And I can find a deepqt process running, but no window is generated. Therefore I killed it.

The contents from the mentioned log file:
[I 250116 16:25:08 main:53] ---- Starting up ----
[I 250116 16:25:08 main:54] Program: DeepQt 1.1.7
[I 250116 16:25:08 main:55] Log file is /home/myuserid/.cache/deepqt/deepqt.log
[I 250116 16:28:15 main:53] ---- Starting up ----
[I 250116 16:28:15 main:54] Program: DeepQt 1.1.7
[I 250116 16:28:15 main:55] Log file is /home/myuserid/.cache/deepqt/deepqt.log
[I 250116 16:34:48 main:53] ---- Starting up ----
[I 250116 16:34:48 main:54] Program: DeepQt 1.1.7
[I 250116 16:34:48 main:55] Log file is /home/myuserid/.cache/deepqt/deepqt.log
[I 250116 16:34:48 driver_mainwindow:863] Epub cache folder does not exist. Nothing to do.
[D 250116 16:34:48 driver_mainwindow:728] Updating input buttons
[I 250116 16:34:48 driver_mainwindow:53] Multithreading with maximum 8 threads
[W 250116 16:34:48 config:189] Config file "/home/myuserid/.config/deepqtrc" not found. Creating default config file.
[D 250116 16:34:48 config:47] Saved config
[D 250116 16:34:48 driver_mainwindow:59] Loaded config: {'lang_from': '', 'lang_to': '', 'use_fixed_output_path': False, 'fixed_output_path': '', 'glossary_path': '', 'use_glossary': True, 'use_quote_protection': True, 'api_key': '', 'is_pro_version': False, 'tl_max_chunks': 20, 'tl_min_chunk_size': 5000, 'tl_preserve_formatting': True, 'tl_mock': False, 'dump_on_abort': True, 'epub_nuke_kobo': True, 'epub_nuke_ruby': True, 'epub_nuke_indents': True, 'epub_crush': False, 'epub_make_text_horizontal': True, 'epub_ignore_empty_html': True, 'avg_time_per_mille': 0.33}
[D 250116 16:34:48 driver_mainwindow:164] Loading config to UI.
[W 250116 16:34:48 driver_mainwindow:341] No API key set
[W 250116 16:34:48 driver_mainwindow:378] Glossary file not found: .

pip list output:
myuserid@MyComputer:~$ pip list
Package                  Version
------------------------ ----------------
appdirs                  1.4.4
apt-clone                0.2.1
apturl                   0.5.2
async-timeout            4.0.1
attrs                    21.2.0
Automat                  20.2.0
bcrypt                   3.2.0
beautifulsoup4           4.10.0
beniget                  0.4.1
blinker                  1.4
Brlapi                   0.8.3
Brotli                   1.0.9
certifi                  2020.6.20
chardet                  4.0.0
click                    8.0.3
colorama                 0.4.4
command-not-found        0.3
configobj                5.0.6
constantly               15.1.0
cryptography             3.4.8
ctranslate2              4.5.0
cupshelpers              1.0
cycler                   0.11.0
dbus-python              1.2.18
decorator                4.4.2
deepl                    1.21.0
deepqt                   1.1.7
defer                    1.0.6
distro                   1.7.0
distro-info              1.1+ubuntu0.2
et_xmlfile               2.0.0
evdev                    1.4.0
eyeD3                    0.8.10
filelock                 3.6.0
fonttools                4.29.1
fs                       2.4.12
fsspec                   2024.12.0
gast                     0.5.2
grpcio                   1.30.2
html5lib                 1.1
httplib2                 0.20.2
hyperlink                21.0.0
idna                     3.3
ifaddr                   0.1.7
IMDbPY                   2021.4.18
importlib-metadata       4.6.4
incremental              21.3.0
jeepney                  0.7.1
Jinja2                   3.1.5
joblib                   1.4.2
kazam                    1.4.5
keyring                  23.5.0
kiwisolver               1.3.2
language-selector        0.1
launchpadlib             1.10.16
lazr.restfulclient       0.14.4
lazr.uri                 1.0.6
libvirt-python           8.0.0
lml                      0.1.0
logzero                  1.7.0
louis                    3.20.0
lxml                     4.8.0
lz4                      3.1.3+dfsg
macaroonbakery           1.3.1
Mako                     1.1.3
MarkupSafe               2.0.1
matplotlib               3.5.1
minify_html              0.15.0
more-itertools           8.10.0
mpmath                   1.3.0
mutagen                  1.45.1
natsort                  8.0.2
nemo-emblems             6.0.1
netaddr                  0.8.0
netifaces                0.11.0
networkx                 3.4.2
numpy                    1.21.5
nvidia-cublas-cu12       12.4.5.8
nvidia-cuda-cupti-cu12   12.4.127
nvidia-cuda-nvrtc-cu12   12.4.127
nvidia-cuda-runtime-cu12 12.4.127
nvidia-cudnn-cu12        9.1.0.70
nvidia-cufft-cu12        11.2.1.3
nvidia-curand-cu12       10.3.5.147
nvidia-cusolver-cu12     11.6.1.9
nvidia-cusparse-cu12     12.3.1.170
nvidia-nccl-cu12         2.21.5
nvidia-nvjitlink-cu12    12.4.127
nvidia-nvtx-cu12         12.4.127
oauthlib                 3.2.0
onboard                  1.4.1
open-fprintd             0.1
opencv-python-headless   4.11.0.86
openpyxl                 3.1.5
packaging                21.3
PAM                      0.4.2
pexpect                  4.8.0
Pillow                   9.0.1
pip                      22.0.2
Pivy                     0.6.5
ply                      3.11
protobuf                 3.12.4
psutil                   5.9.0
ptyprocess               0.7.0
pyasn1                   0.4.8
pyasn1-modules           0.2.1
pycairo                  1.20.1
pycryptodomex            3.11.0
pycups                   2.0.1
pycurl                   7.44.1
pyelftools               0.27
pyexcel                  0.7.1
pyexcel-htmlr            0.6.0
pyexcel-io               0.6.7
pyexcel-odsr             0.6.0
pyexcel-xls              0.7.0
pyexcel-xlsx             0.6.0
PyGObject                3.42.1
PyHamcrest               2.0.2
PyICU                    2.8.1
pyinotify                0.9.6
PyJWT                    2.3.0
pymacaroons              0.13.0
PyNaCl                   1.5.0
pyOpenSSL                21.0.0
pyparsing                2.4.7
pyparted                 3.11.7
PyQt5                    5.15.6
PyQt5-sip                12.9.1
pyRFC3339                1.1
PySide6                  6.8.1.1
PySide6_Addons           6.8.1.1
PySide6_Essentials       6.8.1.1
python-apt               2.4.0+ubuntu4
python-dateutil          2.8.1
python-debian            0.1.43+ubuntu1.1
python-gnupg             0.4.8
python-magic             0.4.24
python-validity          0.13
python-xlib              0.29
pythran                  0.10.0
pytz                     2022.1
pyudev                   0.22.0
pyusb                    1.2.1.post1
pyxattr                  0.7.2
pyxdg                    0.27
PyYAML                   5.4.1
qrcode                   7.3.1
regex                    2024.11.6
reportlab                3.6.8
requests                 2.25.1
requests-file            1.5.1
s-tui                    1.1.3
sacremoses               0.0.53
scipy                    1.8.0
scour                    0.38.2
SecretStorage            3.3.1
sentencepiece            0.2.0
service-identity         18.1.0
setproctitle             1.2.2
setuptools               59.6.0
shiboken6                6.8.1.1
six                      1.16.0
snappergui               0.1
soupsieve                2.3.1
stanza                   1.1.1
sympy                    1.13.1
systemd-python           234
texttable                1.7.0
tinycss2                 1.1.1
tldextract               3.1.2
torch                    2.5.1
tqdm                     4.67.1
triton                   3.1.0
Twisted                  22.1.0
typing_extensions        4.12.2
ubuntu-drivers-common    0.0.0
ubuntu-pro-client        8001
ufoLib2                  0.13.1
ufw                      0.36.1
unicodedata2             14.0.0
Unidecode                1.3.3
urllib3                  1.26.5
urwid                    2.1.2
vboxapi                  1.0
wadllib                  1.3.6
webencodings             0.5.1
websockets               9.1
wheel                    0.37.1
wxPython                 4.0.7
xdg                      5
xkit                     0.0.0
xlrd                     1.2.0
xlwt                     1.3.0
yt-dlp                   2022.4.8
zipp                     1.0.0
zope.interface           5.4.0
myuserid@MyComputer:~$ 

Linux Mint 21.3 is the OS where I'm facing it

komoricodrutz avatar Jan 16 '25 13:01 komoricodrutz

Well, the flatpak now uses the updated deepl package so I doubt installing in pip will improve things, unfortunately. This is an error on deepl's behalf, since I don't do any verification on my end, those error messages are straight from deepl.

Try using the deepl api as described here https://github.com/DeepLcom/deepl-python?tab=readme-ov-file#usage

If that fails, raise the issue in that repo to deepl. Otherwise we've at least narrowed down that it is something on my end after all.

VoxelCubes avatar Jan 16 '25 14:01 VoxelCubes

Well, the flatpak now uses the updated deepl package so I doubt installing in pip will improve things, unfortunately. This is an error on deepl's behalf, since I don't do any verification on my end, those error messages are straight from deepl.

Try using the deepl api as described here https://github.com/DeepLcom/deepl-python?tab=readme-ov-file#usage

If that fails, raise the issue in that repo to deepl. Otherwise we've at least narrowed down that it is something on my end after all.

In the link you mentioned, it says that we should use the key from a config file. Is that the issue, perhaps? As mentioned, I know diddly-squat about python... I updated the previous comment while you were already answering...

komoricodrutz avatar Jan 16 '25 14:01 komoricodrutz

Another attempt, with installing python 3.11 (3.10 was being used before) and installing deepqt again:

Traceback (most recent call last):
  File "/home/myuserid/.local/bin/deepqt", line 5, in <module>
    from deepqt.main import main
  File "/home/myuserid/.local/lib/python3.11/site-packages/deepqt/main.py", line 11, in <module>
    from deepqt.driver_mainwindow import MainWindow
  File "/home/myuserid/.local/lib/python3.11/site-packages/deepqt/driver_mainwindow.py", line 13, in <module>
    import deepqt.api_interface as ai
  File "/home/myuserid/.local/lib/python3.11/site-packages/deepqt/api_interface.py", line 14, in <module>
    import deepqt.structures as st
  File "/home/myuserid/.local/lib/python3.11/site-packages/deepqt/structures.py", line 13, in <module>
    from deepqt import xml_parser
  File "/home/myuserid/.local/lib/python3.11/site-packages/deepqt/xml_parser.py", line 10, in <module>
    from lxml import etree
ImportError: cannot import name 'etree' from 'lxml' (/usr/lib/python3/dist-packages/lxml/__init__.py)

But I am thinking this is already another issue... Not the one with the api key

komoricodrutz avatar Jan 16 '25 15:01 komoricodrutz

Oh man, seems like you're having some installation issues. I take it you haven't been using a virtual environment, right? Seems like ubuntu (and mint haven't overriden that) still lets you pip right into the shared package dir, which makes a big ol mess when incompatible packages get together.

What you ought to do is use the flatpak, or set up a virtual environment like so: https://www.freecodecamp.org/news/how-to-setup-virtual-environments-in-python/

This will isolate that instance of pip from your system, and also make cleanup simpler when you want to get rid of it. Just make sure to create it once, then activate it each time. Shell scripts can make that easier. But the flatpak is probably comfier to begin with, there is no advantage to using pip here, so long as I keep the flatpak updated.

In the link you mentioned, it says that we should use the key from a config file. Is that the issue, perhaps?

Nah, they're just telling people not to hard-code api keys and then commit that to the git repo, for all the world to see and use. Plenty of retards have fallen victim to just that, to the point that github will reach out to deepl to deactivate the key if they detect you pushed it to a public repo.

All you need to do, is to run this example snippet from them:

import deepl

auth_key = "f63c02c5-f056-..."  # Replace with your key
deepl_client = deepl.DeepLClient(auth_key)

result = deepl_client.translate_text("Hello, world!", target_lang="FR")
print(result.text)  # "Bonjour, le monde !"

If that doesn't work, the culprit is deepl themselves.

VoxelCubes avatar Jan 16 '25 19:01 VoxelCubes