manisandro / gImageReader

A Gtk/Qt front-end to tesseract-ocr.
GNU General Public License v3.0
1.63k stars 190 forks source link

Failed to fetch list of available languages: Proxy connection refused #483

Closed MagicalDrizzle closed 3 years ago

MagicalDrizzle commented 3 years ago

I have created a rule for the program in my firewall, resetting my internet settings and run it without firewall, but it failed to check every single time.

manisandro commented 3 years ago

This is not so much about a firewall, but about a proxy server in your network. gimagereader-qt5 on Windows will attempt to use the system proxy if possible [1], on other platforms you'll probably need to set the HTTP_PROXY environment variable.

[1] https://github.com/manisandro/gImageReader/blob/master/qt/src/MainWindow.cc#L126

translit commented 3 years ago

@manisandro wrote:

gimagereader-qt5 on Windows will attempt to use the system proxy if possible

Does this apply to gimagereader-gtk as well?

I'm asking because my QT5 fetches the list, whereas GTK doesn't. The error message doesn't mention a proxy, though.

Windows 10 · GTK 3.3.1 (cdffc47) · QT5 3.3.1 (cdffc4)

manisandro commented 3 years ago

AFAIK gtk/glib will not read system proxy settings on Windows, it will just honour the http_proxy env var.