Failing to call hindi voice API due to UnicodeEncodeError [duplicate] - encoding

This question already has answers here:
UnicodeEncodeError: 'ascii' codec can't encode character '\xe9' - -when using urlib.request python3
(2 answers)
Closed 3 years ago.
I am trying to call an API, which converts hindi text into voice but whenever I call this:
http://ivrapi.indiantts.co.in/tts?type=indiantts&text='+response+'&api_key=xyx&user_id=abc&action=play&numeric=hcurrency&lang=hi_mohita
where response=any text in hindi
Error:
playwav(urlopen('http://ivrapi.indiantts.co.in/tts?type=indiantts&text='+response+'&api_key=xyz&user_id=abc&action=play&numeric=hcurrency&lang=hi_mohita'))
File "/usr/lib/python3.5/urllib/request.py", line 163, in urlopen
return opener.open(url, data, timeout)
File "/usr/lib/python3.5/urllib/request.py", line 466, in open
response = self._open(req, data)
File "/usr/lib/python3.5/urllib/request.py", line 484, in _open
'_open', req)
File "/usr/lib/python3.5/urllib/request.py", line 444, in _call_chain
result = func(*args)
File "/usr/lib/python3.5/urllib/request.py", line 1282, in http_open
return self.do_open(http.client.HTTPConnection, req)
File "/usr/lib/python3.5/urllib/request.py", line 1254, in do_open
h.request(req.get_method(), req.selector, req.data, headers)
File "/usr/lib/python3.5/http/client.py", line 1107, in request
self._send_request(method, url, body, headers)
File "/usr/lib/python3.5/http/client.py", line 1142, in _send_request
self.putrequest(method, url, **skips)
File "/usr/lib/python3.5/http/client.py", line 984, in putrequest
self._output(request.encode('ascii'))
UnicodeEncodeError: 'ascii' codec can't encode characters in position 29-31: ordinal not in range(128)
I have tried encoding and decoding into utf8 and unicode() function and nothing is working.

This worked
response="मैं आपको बता दूंगा"
print(response)
params = {'text':response.encode('UTF-8'), 'api_key': 'abc','user_id':'xyz','action':'play','numeric':'hcurrency','lang':'hi_mohita'}
print('http://ivrapi.indiantts.co.in/tts?type=indiantts&'+urllib.parse.urlencode(params))
playwav(urlopen('http://ivrapi.indiantts.co.in/tts?type=indiantts&'+urllib.parse.urlencode(params)))

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.

flask form post : cannot submit Chinese charactor, only English words works

I cannot submit Chinese words in the form.
English word is OK.
How can I set the utf-8 ?
In the html or app.py? or html code?
Here is my page: http://shiqiu.pw/testpage
PS: I can submit Chinese word in my mac, no problem. But when I deploy my code to my server, Chinese word can not be submitted, it shows Internal Server Error
PPS:I send my post words to mysql, and then show mysql data in new page, perhaps there is something need to set with my mysql?
#myapp.py code part
with connection.cursor() as cursor:
# Create a new recrod
word = request.form.get('word')
print('word')
print(word)
meaning = request.form.get('meaning')
sql = 'INSERT INTO sqdict (word, meaning) VALUES (%s, %s)'
cursor.execute(sql, (word, meaning)) # execute
# connection is not autocommit by default. So you must commit to save your changes.
connection.commit()
with connection.cursor() as cursor:
sql = 'SELECT * from sqdict'
cursor.execute(sql)
# sqlresult = cursor.fetchone() # only show the first row
sqlresult = cursor.fetchall() # all rows
print('sqlresult')
print(sqlresult)
allwords = sqlresult
ERROR LOG BELOW
word
工作
ERROR:flask.app:Exception on /test [POST]
Traceback (most recent call last):
File "/srv/data/web/vhosts/default/local/lib/python3.7/site-packages/flask/app.py", line 1993, in make_response
rv = self.response_class.force_type(rv, request.environ)
File "/srv/data/web/vhosts/default/local/lib/python3.7/site-packages/werkzeug/wrappers/base_response.py", line 269, in force_type
response = BaseResponse(*_run_wsgi_app(response, environ))
File "/srv/data/web/vhosts/default/local/lib/python3.7/site-packages/werkzeug/test.py", line 1119, in run_wsgi_app
app_rv = app(environ, start_response)
TypeError: 'InternalError' object is not callable
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File "/srv/data/web/vhosts/default/local/lib/python3.7/site-packages/flask/app.py", line 2311, in wsgi_app
response = self.full_dispatch_request()
File "/srv/data/web/vhosts/default/local/lib/python3.7/site-packages/flask/app.py", line 1835, in full_dispatch_request
return self.finalize_request(rv)
File "/srv/data/web/vhosts/default/local/lib/python3.7/site-packages/flask/app.py", line 1850, in finalize_request
response = self.make_response(rv)
File "/srv/data/web/vhosts/default/local/lib/python3.7/site-packages/flask/app.py", line 2001, in make_response
reraise(TypeError, new_error, sys.exc_info()[2])
File "/srv/data/web/vhosts/default/local/lib/python3.7/site-packages/flask/_compat.py", line 35, in reraise
raise value.with_traceback(tb)
File "/srv/data/web/vhosts/default/local/lib/python3.7/site-packages/flask/app.py", line 1993, in make_response
rv = self.response_class.force_type(rv, request.environ)
File "/srv/data/web/vhosts/default/local/lib/python3.7/site-packages/werkzeug/wrappers/base_response.py", line 269, in force_type
response = BaseResponse(*_run_wsgi_app(response, environ))
File "/srv/data/web/vhosts/default/local/lib/python3.7/site-packages/werkzeug/test.py", line 1119, in run_wsgi_app
app_rv = app(environ, start_response)
TypeError: 'InternalError' object is not callable
The view function did not return a valid response. The return type must be a string, tuple, Response instance, or WSGI callable, but it was a InternalError.
My input Chinese charactor is showed as '工作'
I don't know which is the Internalerror object.
Full code is at github,code maybe not the same, but not big difference.
I have tried request.form.getunicode('word').
Also, I tried app.config['JSON_AS_ASCII' = False).
Or, set <meta charset="UTF-8"> in the html code.
BUT, no one works.
I hope the form can support Chinese words as value.

forbidden error using pytube on 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

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.