orange3 icon indicating copy to clipboard operation
orange3 copied to clipboard

Add-ons indefinite time

Open rizkidewanto opened this issue 3 years ago • 11 comments

The add-ons took an indefinite time to finish image

I'm using

  • OS : Windows 10
  • Orange 3.31
  • I installed it as usual. Double click the setup, next it until finish.

rizkidewanto avatar Jan 20 '22 07:01 rizkidewanto

Occasionally happens to me too, but pressing Cancel and redoing has solved the issue so far. Congested Interweb tubes, I guess.

kaimikael avatar Jan 20 '22 09:01 kaimikael

Sadly no luck here. Trying lower version too, same result.

rizkidewanto avatar Jan 20 '22 09:01 rizkidewanto

Does the "Datasets" widget (which downloads data sets from the network) work? Can you use it to open a dataset?

markotoplak avatar Jan 20 '22 10:01 markotoplak

Yes. The datasets widget works well. Only the addons don't.

rizkidewanto avatar Jan 20 '22 10:01 rizkidewanto

@rizkidewanto, I have rewired the servers a bit. Could you try again? Thanks.

markotoplak avatar Jan 21 '22 10:01 markotoplak

Still same image

rizkidewanto avatar Jan 21 '22 10:01 rizkidewanto

Works fine at my end. No weird firewall settings involved?

kaimikael avatar Jan 21 '22 10:01 kaimikael

I even tried to turn off my firewall. Same result. image

rizkidewanto avatar Jan 21 '22 11:01 rizkidewanto

@rizkidewanto, thanks for helping us debug this. Before I asked you to try again i removed one superfluous redirect happening while processing these requests. I hope that would fix it. Now I am out of ideas.

I do not understand why do the Datasets work for your while add-ons do not. Could you perhaps open the Python Script widget in Orange and run the following script:

import requests

print("Add-ons with timeout")
print(len(requests.Session().get("https://orange.biolab.si/addons/list", timeout=5).json()))

print("Add-ons way")
print(len(requests.Session().get("https://orange.biolab.si/addons/list").json()))

print("Data sets way")
req = requests.Session()
a = requests.adapters.HTTPAdapter(max_retries=2)
req.mount('https://', a)
print(len(req.get("https://orange.biolab.si/addons/list", timeout=5).json()))

print("Data sets - no retries")
req = requests.Session()
print(len(req.get("https://orange.biolab.si/addons/list", timeout=5).json()))

Please paste whatever output you get.

markotoplak avatar Jan 21 '22 11:01 markotoplak

image

rizkidewanto avatar Jan 21 '22 12:01 rizkidewanto

Could you try again with the latest version? We made some changes to making requests in the last two months. It might have fixed your problem. Please report if it is now any better.

markotoplak avatar Jan 13 '23 09:01 markotoplak