Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add-on download Orange #6785

Closed
FatimaAlKhatib opened this issue Apr 22, 2024 · 3 comments
Closed

Add-on download Orange #6785

FatimaAlKhatib opened this issue Apr 22, 2024 · 3 comments

Comments

@FatimaAlKhatib
Copy link

I have this issue
image
and here are the details "Traceback (most recent call last):
File "C:\Users\Fatima\AppData\Local\Programs\Orange\lib\concurrent\futures\thread.py", line 58, in run
result = self.fn(*self.args, **self.kwargs)
File "C:\Users\Fatima\AppData\Local\Programs\Orange\lib\site-packages\orangecanvas\application\addons.py", line 510, in
lambda config=config: (config, list_available_versions(config)),
File "C:\Users\Fatima\AppData\Local\Programs\Orange\lib\site-packages\orangecanvas\application\utils\addons.py", line 377, in list_available_versions
response = session.get(PYPI_API_JSON.format(name=p))
File "C:\Users\Fatima\AppData\Local\Programs\Orange\lib\site-packages\requests_cache\session.py", line 102, in get
return self.request('GET', url, params=params, **kwargs)
File "C:\Users\Fatima\AppData\Local\Programs\Orange\lib\site-packages\requests_cache\session.py", line 158, in request
return super().request(method, url, *args, headers=headers, **kwargs) # type: ignore
File "C:\Users\Fatima\AppData\Local\Programs\Orange\lib\site-packages\requests\sessions.py", line 589, in request
resp = self.send(prep, **send_kwargs)
File "C:\Users\Fatima\AppData\Local\Programs\Orange\lib\site-packages\requests_cache\session.py", line 194, in send
actions.update_from_cached_response(cached_response, self.cache.create_key, **kwargs)
File "C:\Users\Fatima\AppData\Local\Programs\Orange\lib\site-packages\requests_cache\policy\actions.py", line 184, in update_from_cached_response
usable_response = self.is_usable(cached_response)
File "C:\Users\Fatima\AppData\Local\Programs\Orange\lib\site-packages\requests_cache\policy\actions.py", line 152, in is_usable
or (cached_response.is_expired and self._stale_while_revalidate is True)
File "C:\Users\Fatima\AppData\Local\Programs\Orange\lib\site-packages\requests_cache\models\response.py", line 149, in is_expired
return self.expires is not None and datetime.utcnow() >= self.expires
TypeError: can't compare offset-naive and offset-aware datetimes
" Your kind support is highly appreciated

@FatimaAlKhatib
Copy link
Author

please note that I'm not using a Proxy or connected to VPN

@Bardo-Konrad
Copy link

Bardo-Konrad commented Apr 22, 2024

Try the conda version, it's up to date. Or change return self.expires is not None and datetime.utcnow() >= self.expires in C:\Users\Fatima\AppData\Local\Programs\Orange\lib\site-packages\requests_cache\models\response.py to return False.

@janezd
Copy link
Contributor

janezd commented May 10, 2024

Closed due to inactivity.

@janezd janezd closed this as completed May 10, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants