OpusTools icon indicating copy to clipboard operation
OpusTools copied to clipboard

Cannot download resource due to `DH_KEY_TOO_SMALL`

Open cgbahk opened this issue 1 year ago • 0 comments

I tried to use opus_get

Tried the most simple command from README:

$ opus_get --directory RF --source en --target sv

Downloading 3 file(s) with the total size of 121 KB. Continue? (y/n) y
Unable to retrieve the data.

When debugged, error comes like this. https://github.com/Helsinki-NLP/OpusTools/blob/8eef88cdb9df3e3e01d406beb87335b57805943c/opustools_pkg/opustools/opus_get.py#L166-L168

>>> e
URLError(SSLError(1, '[SSL: DH_KEY_TOO_SMALL] dh key too small (_ssl.c:1007)'))

I guess it is due to old policy of data server..?

Reported environment (if it helps):

  • Ubuntu 22.04
  • python 3.10.12
  • opustools pip version: 1.6.1

cgbahk avatar Feb 13 '24 05:02 cgbahk