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

Problem while trying to install Addons in Orange #3118

Closed
HarishDawath opened this issue Jul 5, 2018 · 10 comments
Closed

Problem while trying to install Addons in Orange #3118

HarishDawath opened this issue Jul 5, 2018 · 10 comments
Assignees

Comments

@HarishDawath
Copy link

Yes Add-ons after completion retrieval its showing error "Cloud not retrieve package list"
Orange version

Version 3.14

Expected behavior

It should show available packages to get install into my system

Actual behavior

Not able to retrieve the packages

Steps to reproduce the behavior

Goto-->Options--->Add-ons

Additional info (worksheets, data, screenshots, ...)

Yes
image

@ajdapretnar
Copy link
Contributor

@markotoplak Is this a proxy thing?

@markotoplak
Copy link
Member

@HarishDawath, how is your internet connection working? Are you perhaps using proxies or a VPN?

If you need a proxy server and it was not automatically detected, go to Orange's settings (on windows under Options) and enter a proxy server manually.

@saschalalala
Copy link

I had the same problem yesterday. For me, updating all packages via conda helped. Perhaps, you have to update your Orange installation?

@janezd
Copy link
Contributor

janezd commented Jan 24, 2019

Closed because of inactivity.

@janezd janezd closed this as completed Jan 24, 2019
@imroner
Copy link

imroner commented May 5, 2020

I have sam error
error install addon orange3

@TakouaGUIGA
Copy link

TakouaGUIGA commented May 7, 2020

This comment was edited by @markotoplak on 20210402

A proxies hack

Instead of trying to use the following hack, try to set proxies in the settings windows. -- @markotoplak

Orange Data mining --> lib --> site packages -->requests --> adapters.py

1. open the script adapters.py and search for the line where the function “send” is defined :

def send(self, request, stream=False, timeout=None, verify=True, cert=None, proxies=None):

2. add this line: proxies = None just before conn = self.get_connection(request.url, proxies)
like this :
try:
proxies = None
conn = self.get_connection(request.url, proxies)
3. Save

Fixing cachecontrol/msgpacks incompatibilities

There used to be an incompatibility with cachecontrol/msgpack libraries. The bottom should not be useful anymore. If you get problems, try to update cachecontrol or msgpack. If that does not fix them, please report a new bug. -- @markotoplak

Now let’s open another file:
Orange Data mining --> lib --> site packages -->cache control -->serialize.py

in the bottom of the script :

1. find the function _loads_V4 :
def _loads_v4(self, request, data):
try:
#cached = msgpack.loads(data, encoding="utf-8") ( comment this line ) ~~
~~ and change it with this line :

cached = msgpack.loads(data)

2. Save

Permission problems

If you installed Orange for all users, you should install add-ons as an Administrator. It is probably best to install Orange just for that particular user though. If you do not have administrator access but need an add-on, you can try the following. It might work in some cases. -- @markotoplak

In settings (options-->settings-->Add-ons-->pip install arguments) write this : --user and restart Orange.

@sdfungayi
Copy link

@TakouaGUIGA I tried the suggestion but I am getting the error
Orange

The error details are:
Traceback (most recent call last):
File "C:\Program Files\Orange\lib\site-packages\urllib3\connection.py", line 160, in _new_conn
(self._dns_host, self.port), self.timeout, **extra_kw
File "C:\Program Files\Orange\lib\site-packages\urllib3\util\connection.py", line 84, in create_connection
raise err
File "C:\Program Files\Orange\lib\site-packages\urllib3\util\connection.py", line 74, in create_connection
sock.connect(sa)
OSError: [WinError 10013] An attempt was made to access a socket in a way forbidden by its access permissions

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
File "C:\Program Files\Orange\lib\site-packages\urllib3\connectionpool.py", line 677, in urlopen
chunked=chunked,
File "C:\Program Files\Orange\lib\site-packages\urllib3\connectionpool.py", line 381, in _make_request
self._validate_conn(conn)
File "C:\Program Files\Orange\lib\site-packages\urllib3\connectionpool.py", line 978, in _validate_conn
conn.connect()
File "C:\Program Files\Orange\lib\site-packages\urllib3\connection.py", line 309, in connect
conn = self._new_conn()
File "C:\Program Files\Orange\lib\site-packages\urllib3\connection.py", line 172, in _new_conn
self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x00000128CE4EEC08>: Failed to establish a new connection: [WinError 10013] An attempt was made to access a socket in a way forbidden by its access permissions

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
File "C:\Program Files\Orange\lib\site-packages\requests\adapters.py", line 450, in send
timeout=1000
File "C:\Program Files\Orange\lib\site-packages\urllib3\connectionpool.py", line 727, in urlopen
method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
File "C:\Program Files\Orange\lib\site-packages\urllib3\util\retry.py", line 446, in increment
raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='orange.biolab.si', port=443): Max retries exceeded with url: /addons/list (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x00000128CE4EEC08>: Failed to establish a new connection: [WinError 10013] An attempt was made to access a socket in a way forbidden by its access permissions'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
File "C:\Program Files\Orange\lib\concurrent\futures\thread.py", line 57, in run
result = self.fn(*self.args, **self.kwargs)
File "C:\Program Files\Orange\lib\site-packages\orangecanvas\application\addons.py", line 688, in
lambda config=config: (config, list_available_versions(config)),
File "C:\Program Files\Orange\lib\site-packages\orangecanvas\application\addons.py", line 1260, in list_available_versions
defaults = config.addon_defaults_list()
File "C:\Program Files\Orange\lib\site-packages\Orange\canvas\config.py", line 158, in addon_defaults_list
return session.get(OFFICIAL_ADDON_LIST).json()
File "C:\Program Files\Orange\lib\site-packages\requests\sessions.py", line 543, in get
return self.request('GET', url, **kwargs)
File "C:\Program Files\Orange\lib\site-packages\requests\sessions.py", line 530, in request
resp = self.send(prep, **send_kwargs)
File "C:\Program Files\Orange\lib\site-packages\requests\sessions.py", line 643, in send
r = adapter.send(request, **kwargs)
File "C:\Program Files\Orange\lib\site-packages\requests\adapters.py", line 517, in send
raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='orange.biolab.si', port=443): Max retries exceeded with url: /addons/list (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x00000128CE4EEC08>: Failed to establish a new connection: [WinError 10013] An attempt was made to access a socket in a way forbidden by its access permissions'))

@irgolic
Copy link
Member

irgolic commented Mar 24, 2021

It seems that this issue is getting search hits.

@ales-erjavec
Copy link
Contributor

OSError: [WinError 10013] An attempt was made to access a socket in a way forbidden by its access permissions

This might be caused by firewall and/or anti virus software.

@sdfungayi Do you have them? Try selectively disabling them to see if they are causing this.

@sdfungayi
Copy link

SOLVED
The issue was with my firewall.
The problem persisted when I turned off my firewall. So I turned it back on and specifically opened for C:\program files\orange\python.exe, C:\program files\orange\pythonw.exe and C:\programdata\miniconda3\python.exe

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

10 participants