forbidden error using pytube on pythonanywhere - pythonanywhere

I have a similar issue to that which is highlited at https://www.pythonanywhere.com/forums/topic/2688/
the only difference is that I am using flask, and the module I am using is pytube. I trust that you shall help, the error message displayed is:
Traceback (most recent call last):
File "/home/*username*/.virtualenvs/*project*/local/lib/python2.7/site-packages/flask/app.py", line 1817, in wsgi_app
response = self.full_dispatch_request()
File "/home/*username*/.virtualenvs/*project*/local/lib/python2.7/site-packages/flask/app.py", line 1477, in full_dispatch_request
rv = self.handle_user_exception(e)
File "/home/*username*/.virtualenvs/*project*/local/lib/python2.7/site-packages/flask/app.py", line 1381, in handle_user_exception
reraise(exc_type, exc_value, tb)
File "/home/*username*/.virtualenvs/*project*/local/lib/python2.7/site-packages/flask/app.py", line 1475, in full_dispatch_request
rv = self.dispatch_request()
File "/home/*username*/.virtualenvs/*project*/local/lib/python2.7/site-packages/flask/app.py", line 1461, in dispatch_request
return self.view_functionsrule.endpoint
File "/home/*username*/<project>/app.py", line 49, in upload
ytube = YouTube(url)
File "/home/*username*/.virtualenvs/*project*/local/lib/python2.7/site-packages/pytube/api.py", line 66, in init
self.from_url(url)
File "/home/*username*/.virtualenvs/*project*/local/lib/python2.7/site-packages/pytube/api.py", line 158, in from_url
video_data = self.get_video_data()
File "/home/*username*/.virtualenvs/*project*/local/lib/python2.7/site-packages/pytube/api.py", line 254, in get_video_data
response = urlopen(self.url)
File "/usr/lib/python2.7/urllib2.py", line 127, in urlopen
return _opener.open(url, data, timeout)
File "/usr/lib/python2.7/urllib2.py", line 404, in open
response = self._open(req, data)
File "/usr/lib/python2.7/urllib2.py", line 422, in _open
'_open', req)
File "/usr/lib/python2.7/urllib2.py", line 382, in _call_chain
result = func(*args)
File "/usr/lib/python2.7/urllib2.py", line 1222, in https_open
return self.do_open(httplib.HTTPSConnection, req)
File "/usr/lib/python2.7/urllib2.py", line 1184, in do_open
raise URLError(err) URLError: <urlopen error Tunnel connection failed: 403 Forbidden>

Youtube doesn't allow downloading videos through their API, so all of the scripts that download youtube videos scrape the www site, and we don't allow scraping from free accounts.
more info here: http://help.pythonanywhere.com/pages/403ForbiddenError

Related

Error when using find/find_one pymongo methods when on an apache2 server (mongodb atlas)

when using find/find_one pymongo methods when on an apache2 server i get the following error :
No <class 'cryptography.x509.extensions.TLSFeature'> extension was found
when using pymongo on an apache2 server to connect and insert or delete in my mongodb collections it works just fine, but when i try to pull something out of the database (using find or find_one methods) i get an error, please note that this error only occurs while running the apache2 server, because when i connected and used find methods in a locally run python script it gave me the information without any errors.
if it is of any relevance, the web framework i am using is flask.
Edit : As for what is producing the error i dont know for sure, so here are the logs.
Traceback (most recent call last):
File "/usr/local/lib/python3.10/dist-packages/flask/app.py", line 2525, in wsgi_app
response = self.full_dispatch_request()
File "/usr/local/lib/python3.10/dist-packages/flask/app.py", line 1822, in full_dispatch_request
rv = self.handle_user_exception(e)
File "/usr/local/lib/python3.10/dist-packages/flask/app.py", line 1820, in full_dispatch_request
rv = self.dispatch_request()
File "/usr/local/lib/python3.10/dist-packages/flask/app.py", line 1796, in dispatch_request
return self.ensure_sync(self.view_functions[rule.endpoint])(**view_args)
File "/var/www/html/srv21/SRVApp.py", line 17, in downloadpage
ThreadID = ThreadID.next()
File "/usr/local/lib/python3.10/dist-packages/pymongo/cursor.py", line 1248, in next
if len(self.__data) or self._refresh():
File "/usr/local/lib/python3.10/dist-packages/pymongo/cursor.py", line 1165, in _refresh
self.__send_message(q)
File "/usr/local/lib/python3.10/dist-packages/pymongo/cursor.py", line 1052, in __send_message
response = client._run_operation(
File "/usr/local/lib/python3.10/dist-packages/pymongo/_csot.py", line 105, in csot_wrapper
return func(self, *args, **kwargs)
File "/usr/local/lib/python3.10/dist-packages/pymongo/mongo_client.py", line 1330, in _run_operation
return self._retryable_read(
File "/usr/local/lib/python3.10/dist-packages/pymongo/_csot.py", line 105, in csot_wrapper
return func(self, *args, **kwargs)
File "/usr/local/lib/python3.10/dist-packages/pymongo/mongo_client.py", line 1442, in _retryable_read
with self._socket_from_server(read_pref, server, session) as (sock_info, read_pref):
File "/usr/lib/python3.10/contextlib.py", line 135, in __enter__
return next(self.gen)
File "/usr/local/lib/python3.10/dist-packages/pymongo/mongo_client.py", line 1282, in _socket_from_server
with self._get_socket(server, session) as sock_info:
File "/usr/lib/python3.10/contextlib.py", line 135, in __enter__
return next(self.gen)
File "/usr/local/lib/python3.10/dist-packages/pymongo/mongo_client.py", line 1217, in _get_socket
with server.get_socket(handler=err_handler) as sock_info:
File "/usr/lib/python3.10/contextlib.py", line 135, in __enter__
return next(self.gen)
File "/usr/local/lib/python3.10/dist-packages/pymongo/pool.py", line 1407, in get_socket
sock_info = self._get_socket(handler=handler)
File "/usr/local/lib/python3.10/dist-packages/pymongo/pool.py", line 1520, in _get_socket
sock_info = self.connect(handler=handler)
File "/usr/local/lib/python3.10/dist-packages/pymongo/pool.py", line 1358, in connect
sock = _configured_socket(self.address, self.opts)
File "/usr/local/lib/python3.10/dist-packages/pymongo/pool.py", line 1061, in _configured_socket
sock = ssl_context.wrap_socket(sock, server_hostname=host)
File "/usr/local/lib/python3.10/dist-packages/pymongo/pyopenssl_context.py", line 369, in wrap_socket
ssl_conn.do_handshake()
File "/usr/local/lib/python3.10/dist-packages/pymongo/pyopenssl_context.py", line 125, in do_handshake
return self._call(super(_sslConn, self).do_handshake, *args, **kwargs)
File "/usr/local/lib/python3.10/dist-packages/pymongo/pyopenssl_context.py", line 108, in _call
return call(*args, **kwargs)
File "/usr/lib/python3/dist-packages/OpenSSL/SSL.py", line 1894, in do_handshake
self._raise_ssl_error(self._ssl, result)
File "/usr/lib/python3/dist-packages/OpenSSL/SSL.py", line 1603, in _raise_ssl_error
self._context._ocsp_helper.raise_if_problem()
File "/usr/lib/python3/dist-packages/OpenSSL/SSL.py", line 319, in raise_if_problem
raise self._problems.pop(0)
File "/usr/lib/python3/dist-packages/OpenSSL/SSL.py", line 539, in wrapper
valid = callback(conn, ocsp_data, data)
File "/usr/local/lib/python3.10/dist-packages/pymongo/ocsp_support.py", line 298, in _ocsp_callback
ext = _get_extension(cert, _TLSFeature)
File "/usr/local/lib/python3.10/dist-packages/pymongo/ocsp_support.py", line 114, in _get_extension
return cert.extensions.get_extension_for_class(klass)
File "/usr/local/lib/python3.10/dist-packages/cryptography/x509/extensions.py", line 135, in get_extension_for_class
raise ExtensionNotFound(
cryptography.x509.extensions.ExtensionNotFound: No <class 'cryptography.x509.extensions.TLSFeature'> extension was found

Why Pgadmin gives me 500 error? _pickle.PicklingError: Can't pickle <class 'wtforms.form.Meta'>: attribute lookup Meta on wtforms.form failed

Occasionally, Pgadmin gives me the 500 error in a browser. After reloading the page, the issue disappears for a while and then comes back again. Here's the log I see while getting the error:
[2022-01-21 14:35:21 +0000] [93] [ERROR] Error handling request /authenticate/login
Traceback (most recent call last):
File "/venv/lib/python3.8/site-packages/gunicorn/workers/gthread.py", line 271, in handle
keepalive = self.handle_request(req, conn)
File "/venv/lib/python3.8/site-packages/gunicorn/workers/gthread.py", line 323, in handle_request
respiter = self.wsgi(environ, resp.start_response)
File "/venv/lib/python3.8/site-packages/flask/app.py", line 2464, in __call__
return self.wsgi_app(environ, start_response)
File "/pgadmin4/pgAdmin4.py", line 77, in __call__
return self.app(environ, start_response)
File "/venv/lib/python3.8/site-packages/werkzeug/middleware/proxy_fix.py", line 169, in __call__
return self.app(environ, start_response)
File "/venv/lib/python3.8/site-packages/flask_socketio/__init__.py", line 43, in __call__
return super(_SocketIOMiddleware, self).__call__(environ,
File "/venv/lib/python3.8/site-packages/engineio/middleware.py", line 74, in __call__
return self.wsgi_app(environ, start_response)
File "/venv/lib/python3.8/site-packages/flask/app.py", line 2450, in wsgi_app
response = self.handle_exception(e)
File "/venv/lib/python3.8/site-packages/flask/app.py", line 1867, in handle_exception
reraise(exc_type, exc_value, tb)
File "/venv/lib/python3.8/site-packages/flask/_compat.py", line 39, in reraise
raise value
File "/venv/lib/python3.8/site-packages/flask/app.py", line 2447, in wsgi_app
response = self.full_dispatch_request()
File "/venv/lib/python3.8/site-packages/flask/app.py", line 1953, in full_dispatch_request
return self.finalize_request(rv)
File "/venv/lib/python3.8/site-packages/flask/app.py", line 1970, in finalize_request
response = self.process_response(response)
File "/venv/lib/python3.8/site-packages/flask/app.py", line 2269, in process_response
self.session_interface.save_session(self, ctx.session, response)
File "/pgadmin4/pgadmin/utils/session.py", line 307, in save_session
self.manager.put(session)
File "/pgadmin4/pgadmin/utils/session.py", line 166, in put
self.parent.put(session)
File "/pgadmin4/pgadmin/utils/session.py", line 270, in put
dump(
_pickle.PicklingError: Can't pickle <class 'wtforms.form.Meta'>: attribute lookup Meta on wtforms.form failed
The issue appeared after enabling Oauth2 authentication. I've tried using different version but no luck.
Pgadmin is running in Kubernetes.
Please try setting
PGADMIN_CONFIG_ENHANCED_COOKIE_PROTECTION = False in configuration file according to your operating system as mentioned here.

Using PostgreSQL with App Engine Standard

I trying to use postgres on app engine standard with python2.7 environment.
I use sqlalchemy + pg8000 for connection, connection string looks like:
postgresql+pg8000://user:password#/dbname?unix_sock=/cloudsql/project:us-central1:db
It works on local machine, but when I deploy it, I receive an error:
AttributeError: 'Connection' object has no attribute '_usock'
How to configure the connection to the database?
Full traceback:
Traceback (most recent call last):
File "/base/alloc/tmpfs/dynamic_runtimes/python27g/e416f9a06334486a/python27/python27_lib/versions/1/google/appengine/runtime/wsgi.py", line 240, in Handle
handler = _config_handle.add_wsgi_middleware(self._LoadHandler())
File "/base/alloc/tmpfs/dynamic_runtimes/python27g/e416f9a06334486a/python27/python27_lib/versions/1/google/appengine/runtime/wsgi.py", line 299, in _LoadHandler
handler, path, err = LoadObject(self._handler)
File "/base/alloc/tmpfs/dynamic_runtimes/python27g/e416f9a06334486a/python27/python27_lib/versions/1/google/appengine/runtime/wsgi.py", line 85, in LoadObject
obj = __import__(path[0])
File "/base/data/home/apps/s~valid-song-196413/web-analytics-parser:20180926t131114.412842106933365078/main.py", line 15, in <module>
db.engine.execute('select ')
File "/base/data/home/apps/s~valid-song-196413/web-analytics-parser:20180926t131114.412842106933365078/lib/sqlalchemy/engine/base.py", line 2074, in execute
connection = self.contextual_connect(close_with_result=True)
File "/base/data/home/apps/s~valid-song-196413/web-analytics-parser:20180926t131114.412842106933365078/lib/sqlalchemy/engine/base.py", line 2123, in contextual_connect
self._wrap_pool_connect(self.pool.connect, None),
File "/base/data/home/apps/s~valid-song-196413/web-analytics-parser:20180926t131114.412842106933365078/lib/sqlalchemy/engine/base.py", line 2158, in _wrap_pool_connect
return fn()
File "/base/data/home/apps/s~valid-song-196413/web-analytics-parser:20180926t131114.412842106933365078/lib/sqlalchemy/pool.py", line 400, in connect
return _ConnectionFairy._checkout(self)
File "/base/data/home/apps/s~valid-song-196413/web-analytics-parser:20180926t131114.412842106933365078/lib/sqlalchemy/pool.py", line 788, in _checkout
fairy = _ConnectionRecord.checkout(pool)
File "/base/data/home/apps/s~valid-song-196413/web-analytics-parser:20180926t131114.412842106933365078/lib/sqlalchemy/pool.py", line 529, in checkout
rec = pool._do_get()
File "/base/data/home/apps/s~valid-song-196413/web-analytics-parser:20180926t131114.412842106933365078/lib/sqlalchemy/pool.py", line 1193, in _do_get
self._dec_overflow()
File "/base/data/home/apps/s~valid-song-196413/web-analytics-parser:20180926t131114.412842106933365078/lib/sqlalchemy/util/langhelpers.py", line 66, in __exit__
compat.reraise(exc_type, exc_value, exc_tb)
File "/base/data/home/apps/s~valid-song-196413/web-analytics-parser:20180926t131114.412842106933365078/lib/sqlalchemy/pool.py", line 1190, in _do_get
return self._create_connection()
File "/base/data/home/apps/s~valid-song-196413/web-analytics-parser:20180926t131114.412842106933365078/lib/sqlalchemy/pool.py", line 347, in _create_connection
return _ConnectionRecord(self)
File "/base/data/home/apps/s~valid-song-196413/web-analytics-parser:20180926t131114.412842106933365078/lib/sqlalchemy/pool.py", line 474, in __init__
self.__connect(first_connect_check=True)
File "/base/data/home/apps/s~valid-song-196413/web-analytics-parser:20180926t131114.412842106933365078/lib/sqlalchemy/pool.py", line 671, in __connect
connection = pool._invoke_creator(self)
File "/base/data/home/apps/s~valid-song-196413/web-analytics-parser:20180926t131114.412842106933365078/lib/sqlalchemy/engine/strategies.py", line 106, in connect
return dialect.connect(*cargs, **cparams)
File "/base/data/home/apps/s~valid-song-196413/web-analytics-parser:20180926t131114.412842106933365078/lib/sqlalchemy/engine/default.py", line 412, in connect
return self.dbapi.connect(*cargs, **cparams)
File "/base/data/home/apps/s~valid-song-196413/web-analytics-parser:20180926t131114.412842106933365078/lib/pg8000/__init__.py", line 112, in connect
application_name, max_prepared_statements)
File "/base/data/home/apps/s~valid-song-196413/web-analytics-parser:20180926t131114.412842106933365078/lib/pg8000/core.py", line 1183, in __init__
self._usock.close()
AttributeError: 'Connection' object has no attribute '_usock'

Connecting to softlayer object storage using apache libcloud

Problem:
Trying to connect to Softlayer Swift Object Storage using apache libcloud and I can't get it to work. I have tried passing in different options to the provider but no matter what I pass in I get the same error. I would appreciate any and all pointers to help me resolve this issue.
Code:
from pprint import pprint
from libcloud.storage.types import Provider
from libcloud.storage.providers import get_driver
_swift = get_driver(Provider.OPENSTACK_SWIFT)
_authurl = "https://lon02.objectstorage.softlayer.net/auth/v1.0"
_user = "IBMOS<redacted>"
_key = "redacted"
driver = _swift(_user, _key,
region='lon02',
ex_force_auth_url=_authurl,
ex_force_auth_version='1.0',
ex_force_service_type='object-store',
ex_force_service_name='cloudFiles')
#pprint(driver.__dict__)
pprint(driver.list_containers())
Stack Trace:
Traceback (most recent call last):
File "/usr/local/lib/python3.6/site-packages/urllib3/contrib/pyopenssl.py", line 441, in wrap_socket
cnx.do_handshake()
File "/usr/local/lib/python3.6/site-packages/OpenSSL/SSL.py", line 1806, in do_handshake
self._raise_ssl_error(self._ssl, result)
File "/usr/local/lib/python3.6/site-packages/OpenSSL/SSL.py", line 1539, in _raise_ssl_error
raise SysCallError(-1, "Unexpected EOF")
OpenSSL.SSL.SysCallError: (-1, 'Unexpected EOF')
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File "/usr/local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 601, in urlopen
chunked=chunked)
File "/usr/local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 346, in _make_request
self._validate_conn(conn)
File "/usr/local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 850, in _validate_conn
conn.connect()
File "/usr/local/lib/python3.6/site-packages/urllib3/connection.py", line 326, in connect
ssl_context=context)
File "/usr/local/lib/python3.6/site-packages/urllib3/util/ssl_.py", line 329, in ssl_wrap_socket
return context.wrap_socket(sock, server_hostname=server_hostname)
File "/usr/local/lib/python3.6/site-packages/urllib3/contrib/pyopenssl.py", line 448, in wrap_socket
raise ssl.SSLError('bad handshake: %r' % e)
ssl.SSLError: ("bad handshake: SysCallError(-1, 'Unexpected EOF')",)
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File "/usr/local/lib/python3.6/site-packages/requests/adapters.py", line 440, in send
timeout=timeout
File "/usr/local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 639, in urlopen
_stacktrace=sys.exc_info()[2])
File "/usr/local/lib/python3.6/site-packages/urllib3/util/retry.py", line 388, in increment
raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='lon02.objectstorage.softlayer.net', port=443): Max retries exceeded with url: /auth/v1.0 (Caused by SSLError(SSLError("bad handshake: SysCallError(-1, 'Unexpected EOF')",),))
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File "swift.py", line 19, in <module>
pprint(driver.list_containers())
File "/usr/local/lib/python3.6/site-packages/libcloud/storage/base.py", line 209, in list_containers
return list(self.iterate_containers())
File "/usr/local/lib/python3.6/site-packages/libcloud/storage/drivers/cloudfiles.py", line 275, in iterate_containers
response = self.connection.request('')
File "/usr/local/lib/python3.6/site-packages/libcloud/storage/drivers/cloudfiles.py", line 165, in request
raw=raw)
File "/usr/local/lib/python3.6/site-packages/libcloud/common/openstack.py", line 223, in request
raw=raw)
File "/usr/local/lib/python3.6/site-packages/libcloud/common/base.py", line 536, in request
action = self.morph_action_hook(action)
File "/usr/local/lib/python3.6/site-packages/libcloud/common/openstack.py", line 290, in morph_action_hook
self._populate_hosts_and_request_paths()
File "/usr/local/lib/python3.6/site-packages/libcloud/common/openstack.py", line 324, in _populate_hosts_and_request_paths
osa = osa.authenticate(**kwargs) # may throw InvalidCreds
File "/usr/local/lib/python3.6/site-packages/libcloud/common/openstack_identity.py", line 761, in authenticate
resp = self.request('/v1.0', headers=headers, method='GET')
File "/usr/local/lib/python3.6/site-packages/libcloud/common/base.py", line 603, in request
headers=headers, stream=stream)
File "/usr/local/lib/python3.6/site-packages/libcloud/http.py", line 213, in request
verify=self.verification
File "/usr/local/lib/python3.6/site-packages/requests/sessions.py", line 508, in request
resp = self.send(prep, **send_kwargs)
File "/usr/local/lib/python3.6/site-packages/requests/sessions.py", line 618, in send
r = adapter.send(request, **kwargs)
File "/usr/local/lib/python3.6/site-packages/requests/adapters.py", line 506, in send
raise SSLError(e, request=request)
requests.exceptions.SSLError: HTTPSConnectionPool(host='lon02.objectstorage.softlayer.net', port=443): Max retries exceeded with url: /auth/v1.0 (Caused by SSLError(SSLError("bad handshake: SysCallError(-1, 'Unexpected EOF')",),))
To answer my own question, the specific issue seen above was due to the system I was using. Once I switched to another system it proceeded even further however there is a bug I identified and filed in apache libcloud with a documented workaround inside the jira ticket here https://issues.apache.org/jira/browse/LIBCLOUD-972.

canopy_cli update broken -> 403 forbidden

I'm on Linux Ubuntu and the command-line upgrade doesn't work. Is there anything specific I can try to make it work or does anyone else also experience this?
❯ canopy_cli update
HTTP Error 403: Forbidden
Traceback (most recent call last):
File "build/bdist.linux-x86_64/egg/canopy/package_manager/package_manager_service.py", line 673, in _locked
File "build/bdist.linux-x86_64/egg/canopy/package_manager/package_manager_service.py", line 389, in update_addon_index
File "/home/opt/canopy/base/appdata/canopy-1.4.0.1938.rh5-x86_64/lib/python2.7/site-packages/enstaller/enpkg.py", line 145, in reconnect
self._connect(force=True)
File "/home/opt/canopy/base/appdata/canopy-1.4.0.1938.rh5-x86_64/lib/python2.7/site-packages/enstaller/enpkg.py", line 149, in _connect
self.remote.connect(self.userpass)
File "/home/opt/canopy/base/appdata/canopy-1.4.0.1938.rh5-x86_64/lib/python2.7/site-packages/enstaller/store/joined.py", line 11, in connect
repo.connect(auth)
File "/home/opt/canopy/base/appdata/canopy-1.4.0.1938.rh5-x86_64/lib/python2.7/site-packages/enstaller/store/indexed.py", line 28, in connect
self._index = self.get_index()
File "/home/opt/canopy/base/appdata/canopy-1.4.0.1938.rh5-x86_64/lib/python2.7/site-packages/enstaller/store/indexed.py", line 124, in get_index
fp = self.get_data(url)
File "/home/opt/canopy/base/appdata/canopy-1.4.0.1938.rh5-x86_64/lib/python2.7/site-packages/enstaller/store/indexed.py", line 146, in get_data
return self.opener.open(request)
File "/home/opt/canopy/base/appdata/canopy-1.4.0.1938.rh5-x86_64/lib/python2.7/urllib2.py", line 410, in open
response = meth(req, response)
File "/home/opt/canopy/base/appdata/canopy-1.4.0.1938.rh5-x86_64/lib/python2.7/urllib2.py", line 523, in http_response
'http', request, response, code, msg, hdrs)
File "/home/opt/canopy/base/appdata/canopy-1.4.0.1938.rh5-x86_64/lib/python2.7/urllib2.py", line 442, in error
result = self._call_chain(*args)
File "/home/opt/canopy/base/appdata/canopy-1.4.0.1938.rh5-x86_64/lib/python2.7/urllib2.py", line 382, in _call_chain
result = func(*args)
File "/home/opt/canopy/base/appdata/canopy-1.4.0.1938.rh5-x86_64/lib/python2.7/urllib2.py", line 629, in http_error_302
return self.parent.open(new, timeout=req.timeout)
File "/home/opt/canopy/base/appdata/canopy-1.4.0.1938.rh5-x86_64/lib/python2.7/urllib2.py", line 410, in open
response = meth(req, response)
File "/home/opt/canopy/base/appdata/canopy-1.4.0.1938.rh5-x86_64/lib/python2.7/urllib2.py", line 523, in http_response
'http', request, response, code, msg, hdrs)
File "/home/opt/canopy/base/appdata/canopy-1.4.0.1938.rh5-x86_64/lib/python2.7/urllib2.py", line 448, in error
return self._call_chain(*args)
File "/home/opt/canopy/base/appdata/canopy-1.4.0.1938.rh5-x86_64/lib/python2.7/urllib2.py", line 382, in _call_chain
result = func(*args)
File "/home/opt/canopy/base/appdata/canopy-1.4.0.1938.rh5-x86_64/lib/python2.7/urllib2.py", line 531, in http_error_default
raise HTTPError(req.get_full_url(), code, msg, hdrs, fp)
HTTPError: HTTP Error 403: Forbidden
HTTP Error 403: Forbidden
Traceback (most recent call last):
File "build/bdist.linux-x86_64/egg/canopy/package_manager/package_manager_service.py", line 673, in _locked
File "build/bdist.linux-x86_64/egg/canopy/package_manager/package_manager_service.py", line 389, in update_addon_index
File "/home/opt/canopy/base/appdata/canopy-1.4.0.1938.rh5-x86_64/lib/python2.7/site-packages/enstaller/enpkg.py", line 145, in reconnect
self._connect(force=True)
File "/home/opt/canopy/base/appdata/canopy-1.4.0.1938.rh5-x86_64/lib/python2.7/site-packages/enstaller/enpkg.py", line 149, in _connect
self.remote.connect(self.userpass)
File "/home/opt/canopy/base/appdata/canopy-1.4.0.1938.rh5-x86_64/lib/python2.7/site-packages/enstaller/store/joined.py", line 11, in connect
repo.connect(auth)
File "/home/opt/canopy/base/appdata/canopy-1.4.0.1938.rh5-x86_64/lib/python2.7/site-packages/enstaller/store/indexed.py", line 28, in connect
self._index = self.get_index()
File "/home/opt/canopy/base/appdata/canopy-1.4.0.1938.rh5-x86_64/lib/python2.7/site-packages/enstaller/store/indexed.py", line 124, in get_index
fp = self.get_data(url)
File "/home/opt/canopy/base/appdata/canopy-1.4.0.1938.rh5-x86_64/lib/python2.7/site-packages/enstaller/store/indexed.py", line 146, in get_data
return self.opener.open(request)
File "/home/opt/canopy/base/appdata/canopy-1.4.0.1938.rh5-x86_64/lib/python2.7/urllib2.py", line 410, in open
response = meth(req, response)
File "/home/opt/canopy/base/appdata/canopy-1.4.0.1938.rh5-x86_64/lib/python2.7/urllib2.py", line 523, in http_response
'http', request, response, code, msg, hdrs)
File "/home/opt/canopy/base/appdata/canopy-1.4.0.1938.rh5-x86_64/lib/python2.7/urllib2.py", line 442, in error
result = self._call_chain(*args)
File "/home/opt/canopy/base/appdata/canopy-1.4.0.1938.rh5-x86_64/lib/python2.7/urllib2.py", line 382, in _call_chain
result = func(*args)
File "/home/opt/canopy/base/appdata/canopy-1.4.0.1938.rh5-x86_64/lib/python2.7/urllib2.py", line 629, in http_error_302
return self.parent.open(new, timeout=req.timeout)
File "/home/opt/canopy/base/appdata/canopy-1.4.0.1938.rh5-x86_64/lib/python2.7/urllib2.py", line 410, in open
response = meth(req, response)
File "/home/opt/canopy/base/appdata/canopy-1.4.0.1938.rh5-x86_64/lib/python2.7/urllib2.py", line 523, in http_response
'http', request, response, code, msg, hdrs)
File "/home/opt/canopy/base/appdata/canopy-1.4.0.1938.rh5-x86_64/lib/python2.7/urllib2.py", line 448, in error
return self._call_chain(*args)
File "/home/opt/canopy/base/appdata/canopy-1.4.0.1938.rh5-x86_64/lib/python2.7/urllib2.py", line 382, in _call_chain
result = func(*args)
File "/home/opt/canopy/base/appdata/canopy-1.4.0.1938.rh5-x86_64/lib/python2.7/urllib2.py", line 531, in http_error_default
raise HTTPError(req.get_full_url(), code, msg, hdrs, fp)
HTTPError: HTTP Error 403: Forbidden
Searching for updates...
Searching for updates...
HTTP Error 403: Forbidden
Traceback (most recent call last):
File "build/bdist.linux-x86_64/egg/canopy/package_manager/package_manager_service.py", line 673, in _locked
File "build/bdist.linux-x86_64/egg/canopy/package_manager/package_manager_service.py", line 389, in update_addon_index
File "/home/opt/canopy/base/appdata/canopy-1.4.0.1938.rh5-x86_64/lib/python2.7/site-packages/enstaller/enpkg.py", line 145, in reconnect
self._connect(force=True)
File "/home/opt/canopy/base/appdata/canopy-1.4.0.1938.rh5-x86_64/lib/python2.7/site-packages/enstaller/enpkg.py", line 149, in _connect
self.remote.connect(self.userpass)
File "/home/opt/canopy/base/appdata/canopy-1.4.0.1938.rh5-x86_64/lib/python2.7/site-packages/enstaller/store/joined.py", line 11, in connect
repo.connect(auth)
File "/home/opt/canopy/base/appdata/canopy-1.4.0.1938.rh5-x86_64/lib/python2.7/site-packages/enstaller/store/indexed.py", line 28, in connect
self._index = self.get_index()
File "/home/opt/canopy/base/appdata/canopy-1.4.0.1938.rh5-x86_64/lib/python2.7/site-packages/enstaller/store/indexed.py", line 124, in get_index
fp = self.get_data(url)
File "/home/opt/canopy/base/appdata/canopy-1.4.0.1938.rh5-x86_64/lib/python2.7/site-packages/enstaller/store/indexed.py", line 146, in get_data
return self.opener.open(request)
File "/home/opt/canopy/base/appdata/canopy-1.4.0.1938.rh5-x86_64/lib/python2.7/urllib2.py", line 410, in open
response = meth(req, response)
File "/home/opt/canopy/base/appdata/canopy-1.4.0.1938.rh5-x86_64/lib/python2.7/urllib2.py", line 523, in http_response
'http', request, response, code, msg, hdrs)
File "/home/opt/canopy/base/appdata/canopy-1.4.0.1938.rh5-x86_64/lib/python2.7/urllib2.py", line 442, in error
result = self._call_chain(*args)
File "/home/opt/canopy/base/appdata/canopy-1.4.0.1938.rh5-x86_64/lib/python2.7/urllib2.py", line 382, in _call_chain
result = func(*args)
File "/home/opt/canopy/base/appdata/canopy-1.4.0.1938.rh5-x86_64/lib/python2.7/urllib2.py", line 629, in http_error_302
return self.parent.open(new, timeout=req.timeout)
File "/home/opt/canopy/base/appdata/canopy-1.4.0.1938.rh5-x86_64/lib/python2.7/urllib2.py", line 410, in open
response = meth(req, response)
File "/home/opt/canopy/base/appdata/canopy-1.4.0.1938.rh5-x86_64/lib/python2.7/urllib2.py", line 523, in http_response
'http', request, response, code, msg, hdrs)
File "/home/opt/canopy/base/appdata/canopy-1.4.0.1938.rh5-x86_64/lib/python2.7/urllib2.py", line 448, in error
return self._call_chain(*args)
File "/home/opt/canopy/base/appdata/canopy-1.4.0.1938.rh5-x86_64/lib/python2.7/urllib2.py", line 382, in _call_chain
result = func(*args)
File "/home/opt/canopy/base/appdata/canopy-1.4.0.1938.rh5-x86_64/lib/python2.7/urllib2.py", line 531, in http_error_default
raise HTTPError(req.get_full_url(), code, msg, hdrs, fp)
HTTPError: HTTP Error 403: Forbidden
HTTP Error 403: Forbidden
Traceback (most recent call last):
File "build/bdist.linux-x86_64/egg/canopy/package_manager/package_manager_service.py", line 673, in _locked
File "build/bdist.linux-x86_64/egg/canopy/package_manager/package_manager_service.py", line 389, in update_addon_index
File "/home/opt/canopy/base/appdata/canopy-1.4.0.1938.rh5-x86_64/lib/python2.7/site-packages/enstaller/enpkg.py", line 145, in reconnect
self._connect(force=True)
File "/home/opt/canopy/base/appdata/canopy-1.4.0.1938.rh5-x86_64/lib/python2.7/site-packages/enstaller/enpkg.py", line 149, in _connect
self.remote.connect(self.userpass)
File "/home/opt/canopy/base/appdata/canopy-1.4.0.1938.rh5-x86_64/lib/python2.7/site-packages/enstaller/store/joined.py", line 11, in connect
repo.connect(auth)
File "/home/opt/canopy/base/appdata/canopy-1.4.0.1938.rh5-x86_64/lib/python2.7/site-packages/enstaller/store/indexed.py", line 28, in connect
self._index = self.get_index()
File "/home/opt/canopy/base/appdata/canopy-1.4.0.1938.rh5-x86_64/lib/python2.7/site-packages/enstaller/store/indexed.py", line 124, in get_index
fp = self.get_data(url)
File "/home/opt/canopy/base/appdata/canopy-1.4.0.1938.rh5-x86_64/lib/python2.7/site-packages/enstaller/store/indexed.py", line 146, in get_data
return self.opener.open(request)
File "/home/opt/canopy/base/appdata/canopy-1.4.0.1938.rh5-x86_64/lib/python2.7/urllib2.py", line 410, in open
response = meth(req, response)
File "/home/opt/canopy/base/appdata/canopy-1.4.0.1938.rh5-x86_64/lib/python2.7/urllib2.py", line 523, in http_response
'http', request, response, code, msg, hdrs)
File "/home/opt/canopy/base/appdata/canopy-1.4.0.1938.rh5-x86_64/lib/python2.7/urllib2.py", line 442, in error
result = self._call_chain(*args)
File "/home/opt/canopy/base/appdata/canopy-1.4.0.1938.rh5-x86_64/lib/python2.7/urllib2.py", line 382, in _call_chain
result = func(*args)
File "/home/opt/canopy/base/appdata/canopy-1.4.0.1938.rh5-x86_64/lib/python2.7/urllib2.py", line 629, in http_error_302
return self.parent.open(new, timeout=req.timeout)
File "/home/opt/canopy/base/appdata/canopy-1.4.0.1938.rh5-x86_64/lib/python2.7/urllib2.py", line 410, in open
response = meth(req, response)
File "/home/opt/canopy/base/appdata/canopy-1.4.0.1938.rh5-x86_64/lib/python2.7/urllib2.py", line 523, in http_response
'http', request, response, code, msg, hdrs)
File "/home/opt/canopy/base/appdata/canopy-1.4.0.1938.rh5-x86_64/lib/python2.7/urllib2.py", line 448, in error
return self._call_chain(*args)
File "/home/opt/canopy/base/appdata/canopy-1.4.0.1938.rh5-x86_64/lib/python2.7/urllib2.py", line 382, in _call_chain
result = func(*args)
File "/home/opt/canopy/base/appdata/canopy-1.4.0.1938.rh5-x86_64/lib/python2.7/urllib2.py", line 531, in http_error_default
raise HTTPError(req.get_full_url(), code, msg, hdrs, fp)
HTTPError: HTTP Error 403: Forbidden
No updates available.
That error basically means that the file containing info on available updates isn't present on the server. (Because there are no available updates yet.) The logging of that traceback was a bug which has been fixed for the next release.