AttributeError: 'HTTPUnauthorized' object has no attribute 'exception'

classic Classic list List threaded Threaded
7 messages Options
Reply | Threaded
Open this post in threaded view
|

AttributeError: 'HTTPUnauthorized' object has no attribute 'exception'

ManicD
I'm getting an error after installing baruwa 2.0

i used the install script from fluxlabs http://www.baruwa-install.com/ with a few minor tweaks for updating version numbers and the centalt.repo

Install appears to go without a problem. however the final product gives a 500 error in the baruwa template.

it results in the below email error

=====
URL: http://192.168.0.252/
File '/home/baruwa/px/lib/python2.6/site-packages/weberror/errormiddleware.py', line 162 in __call__
  app_iter = self.application(environ, sr_checker)
File '/home/baruwa/px/lib/python2.6/site-packages/repoze/who/middleware.py', line 107 in __call__
  app_iter = app(environ, wrapper.wrap_start_response)
File '/home/baruwa/px/lib/python2.6/site-packages/beaker/middleware.py', line 155 in __call__
  return self.wrap_app(environ, session_start_response)
File '/home/baruwa/px/lib/python2.6/site-packages/routes/middleware.py', line 131 in __call__
  response = self.app(environ, start_response)
File '/home/baruwa/px/lib/python2.6/site-packages/pylons/wsgiapp.py', line 103 in __call__
  response = self.dispatch(controller, environ, start_response)
File '/home/baruwa/px/lib/python2.6/site-packages/pylons/wsgiapp.py', line 313 in dispatch
  return controller(environ, start_response)
File '/home/baruwa/px/lib/python2.6/site-packages/baruwa/lib/base.py', line 93 in __call__
  return WSGIController.__call__(self, environ, start_response)
File '/home/baruwa/px/lib/python2.6/site-packages/pylons/controllers/core.py', line 214 in __call__
  response = self._dispatch_call()
File '/home/baruwa/px/lib/python2.6/site-packages/pylons/controllers/core.py', line 164 in _dispatch_call
  response = self._inspect_call(func)
File '/home/baruwa/px/lib/python2.6/site-packages/pylons/controllers/core.py', line 107 in _inspect_call
  result = self._perform_call(func, args)
File '/home/baruwa/px/lib/python2.6/site-packages/pylons/controllers/core.py', line 57 in _perform_call
  return func(**args)
File '<string>', line 2 in index
File '/home/baruwa/px/lib/python2.6/site-packages/repoze/what/plugins/pylonshq/protectors.py', line 117 in wrap_action
  abort(code, comment=reason)
File '/home/baruwa/px/lib/python2.6/site-packages/pylons/controllers/util.py', line 210 in abort
  raise exc.exception
AttributeError: 'HTTPUnauthorized' object has no attribute 'exception'
=====


I have read that this is due to webob depreciating the 'exception' attribute in version 1.4.
But i'm not sure how to proceed.

Any advice would be great.

Regards

Reply | Threaded
Open this post in threaded view
|

Re: AttributeError: 'HTTPUnauthorized' object has no attribute 'exception'

jeremymcs
The installer is broken. I haven’t had time to fix it.

--
Jeremy McSpadden
Flux Labs | http://www.fluxlabs.net | Endless Solutions
Office : 850-250-5590x501 | Cell : 850-890-2543 | Fax : 850-254-2955

On Sep 5, 2014, at 9:31 AM, ManicD <[hidden email]> wrote:

I'm getting an error after installing baruwa 2.0

i used the install script from fluxlabs http://www.baruwa-install.com/ with
a few minor tweaks for updating version numbers and the centalt.repo

Install appears to go without a problem. however the final product gives a
500 error in the baruwa template.

it results in the below email error

=====
URL: BARUWA MAILFW warning: numerical links are often malicious: http://192.168.0.252/
File
'/home/baruwa/px/lib/python2.6/site-packages/weberror/errormiddleware.py',
line 162 in __call__
 app_iter = self.application(environ, sr_checker)
File '/home/baruwa/px/lib/python2.6/site-packages/repoze/who/middleware.py',
line 107 in __call__
 app_iter = app(environ, wrapper.wrap_start_response)
File '/home/baruwa/px/lib/python2.6/site-packages/beaker/middleware.py',
line 155 in __call__
 return self.wrap_app(environ, session_start_response)
File '/home/baruwa/px/lib/python2.6/site-packages/routes/middleware.py',
line 131 in __call__
 response = self.app(environ, start_response)
File '/home/baruwa/px/lib/python2.6/site-packages/pylons/wsgiapp.py', line
103 in __call__
 response = self.dispatch(controller, environ, start_response)
File '/home/baruwa/px/lib/python2.6/site-packages/pylons/wsgiapp.py', line
313 in dispatch
 return controller(environ, start_response)
File '/home/baruwa/px/lib/python2.6/site-packages/baruwa/lib/base.py', line
93 in __call__
 return WSGIController.__call__(self, environ, start_response)
File
'/home/baruwa/px/lib/python2.6/site-packages/pylons/controllers/core.py',
line 214 in __call__
 response = self._dispatch_call()
File
'/home/baruwa/px/lib/python2.6/site-packages/pylons/controllers/core.py',
line 164 in _dispatch_call
 response = self._inspect_call(func)
File
'/home/baruwa/px/lib/python2.6/site-packages/pylons/controllers/core.py',
line 107 in _inspect_call
 result = self._perform_call(func, args)
File
'/home/baruwa/px/lib/python2.6/site-packages/pylons/controllers/core.py',
line 57 in _perform_call
 return func(**args)
File '<string>', line 2 in index
File
'/home/baruwa/px/lib/python2.6/site-packages/repoze/what/plugins/pylonshq/protectors.py',
line 117 in wrap_action
 abort(code, comment=reason)
File
'/home/baruwa/px/lib/python2.6/site-packages/pylons/controllers/util.py',
line 210 in abort
 raise exc.exception
*AttributeError: 'HTTPUnauthorized' object has no attribute 'exception'*
=====


I have read that this is due to webob depreciating the 'exception' attribute
in version 1.4.
But i'm not sure how to proceed.

Any advice would be great.

Regards





--
View this message in context: http://baruwa-users-list.963389.n3.nabble.com/AttributeError-HTTPUnauthorized-object-has-no-attribute-exception-tp4027390.html
Sent from the Baruwa users list mailing list archive at Nabble.com.

_______________________________________________
http://pledgie.com/campaigns/12056


_______________________________________________
http://pledgie.com/campaigns/12056
Reply | Threaded
Open this post in threaded view
|

Re: AttributeError: 'HTTPUnauthorized' object has no attribute 'exception'

admin-at-extremeshok-dot-com
LOL.. and to think you could of had other people helping to maintain the code..


On 9/5/2014 4:38 PM, Jeremy McSpadden wrote:
The installer is broken. I haven’t had time to fix it.

--
Jeremy McSpadden
Flux Labs | http://www.fluxlabs.net | Endless Solutions
Office : 850-250-5590x501 | Cell : 850-890-2543 | Fax : 850-254-2955

On Sep 5, 2014, at 9:31 AM, ManicD <[hidden email]> wrote:

I'm getting an error after installing baruwa 2.0

i used the install script from fluxlabs http://www.baruwa-install.com/ with
a few minor tweaks for updating version numbers and the centalt.repo

Install appears to go without a problem. however the final product gives a
500 error in the baruwa template.

it results in the below email error

=====
URL: BARUWA MAILFW has detected a possible fraud attempt from "192.168.0.252" claiming to be BARUWA MAILFW warning: numerical links are often malicious: http://192.168.0.252/
File
'/home/baruwa/px/lib/python2.6/site-packages/weberror/errormiddleware.py',
line 162 in __call__
 app_iter = self.application(environ, sr_checker)
File '/home/baruwa/px/lib/python2.6/site-packages/repoze/who/middleware.py',
line 107 in __call__
 app_iter = app(environ, wrapper.wrap_start_response)
File '/home/baruwa/px/lib/python2.6/site-packages/beaker/middleware.py',
line 155 in __call__
 return self.wrap_app(environ, session_start_response)
File '/home/baruwa/px/lib/python2.6/site-packages/routes/middleware.py',
line 131 in __call__
 response = self.app(environ, start_response)
File '/home/baruwa/px/lib/python2.6/site-packages/pylons/wsgiapp.py', line
103 in __call__
 response = self.dispatch(controller, environ, start_response)
File '/home/baruwa/px/lib/python2.6/site-packages/pylons/wsgiapp.py', line
313 in dispatch
 return controller(environ, start_response)
File '/home/baruwa/px/lib/python2.6/site-packages/baruwa/lib/base.py', line
93 in __call__
 return WSGIController.__call__(self, environ, start_response)
File
'/home/baruwa/px/lib/python2.6/site-packages/pylons/controllers/core.py',
line 214 in __call__
 response = self._dispatch_call()
File
'/home/baruwa/px/lib/python2.6/site-packages/pylons/controllers/core.py',
line 164 in _dispatch_call
 response = self._inspect_call(func)
File
'/home/baruwa/px/lib/python2.6/site-packages/pylons/controllers/core.py',
line 107 in _inspect_call
 result = self._perform_call(func, args)
File
'/home/baruwa/px/lib/python2.6/site-packages/pylons/controllers/core.py',
line 57 in _perform_call
 return func(**args)
File '<string>', line 2 in index
File
'/home/baruwa/px/lib/python2.6/site-packages/repoze/what/plugins/pylonshq/protectors.py',
line 117 in wrap_action
 abort(code, comment=reason)
File
'/home/baruwa/px/lib/python2.6/site-packages/pylons/controllers/util.py',
line 210 in abort
 raise exc.exception
*AttributeError: 'HTTPUnauthorized' object has no attribute 'exception'*
=====


I have read that this is due to webob depreciating the 'exception' attribute
in version 1.4.
But i'm not sure how to proceed.

Any advice would be great.

Regards





--
View this message in context: http://baruwa-users-list.963389.n3.nabble.com/AttributeError-HTTPUnauthorized-object-has-no-attribute-exception-tp4027390.html
Sent from the Baruwa users list mailing list archive at Nabble.com.

_______________________________________________
http://pledgie.com/campaigns/12056



_______________________________________________
http://pledgie.com/campaigns/12056


_______________________________________________
http://pledgie.com/campaigns/12056
Reply | Threaded
Open this post in threaded view
|

Re: AttributeError: 'HTTPUnauthorized' object has no attribute 'exception'

jeremymcs
You are welcome to complete the contributors form and jump on :)

--
Jeremy McSpadden
Flux Labs | http://www.fluxlabs.net | Endless Solutions
Office : 850-250-5590x501 | Cell : 850-890-2543 | Fax : 850-254-2955

On Sep 5, 2014, at 10:21 AM, admin-at-extremeshok-dot-com <[hidden email]> wrote:

LOL.. and to think you could of had other people helping to maintain the code..


_______________________________________________
http://pledgie.com/campaigns/12056
Reply | Threaded
Open this post in threaded view
|

Re: {Disarmed} Re: AttributeError: 'HTTPUnauthorized' object has no attribute 'exception'

Raymond Norton
In reply to this post by admin-at-extremeshok-dot-com
This might help:


pip uninstall webob
pip install webob==1.3



On 09/05/2014 10:21 AM, admin-at-extremeshok-dot-com wrote:
LOL.. and to think you could of had other people helping to maintain the code..


On 9/5/2014 4:38 PM, Jeremy McSpadden wrote:
The installer is broken. I haven’t had time to fix it.

--
Jeremy McSpadden
Flux Labs | http://www.fluxlabs.net | Endless Solutions
Office : 850-250-5590x501 | Cell : 850-890-2543 | Fax : 850-254-2955

On Sep 5, 2014, at 9:31 AM, ManicD <[hidden email]> wrote:

I'm getting an error after installing baruwa 2.0

i used the install script from fluxlabs http://www.baruwa-install.com/ with
a few minor tweaks for updating version numbers and the centalt.repo

Install appears to go without a problem. however the final product gives a
500 error in the baruwa template.

it results in the below email error

=====
URL: MailScanner has detected a possible fraud attempt from "192.168.0.252" claiming to be BARUWA MAILFW has detected a possible fraud attempt from "192.168.0.252" claiming to be BARUWA MAILFW warning: numerical links are often malicious: http://192.168.0.252/
File
'/home/baruwa/px/lib/python2.6/site-packages/weberror/errormiddleware.py',
line 162 in __call__
 app_iter = self.application(environ, sr_checker)
File '/home/baruwa/px/lib/python2.6/site-packages/repoze/who/middleware.py',
line 107 in __call__
 app_iter = app(environ, wrapper.wrap_start_response)
File '/home/baruwa/px/lib/python2.6/site-packages/beaker/middleware.py',
line 155 in __call__
 return self.wrap_app(environ, session_start_response)
File '/home/baruwa/px/lib/python2.6/site-packages/routes/middleware.py',
line 131 in __call__
 response = self.app(environ, start_response)
File '/home/baruwa/px/lib/python2.6/site-packages/pylons/wsgiapp.py', line
103 in __call__
 response = self.dispatch(controller, environ, start_response)
File '/home/baruwa/px/lib/python2.6/site-packages/pylons/wsgiapp.py', line
313 in dispatch
 return controller(environ, start_response)
File '/home/baruwa/px/lib/python2.6/site-packages/baruwa/lib/base.py', line
93 in __call__
 return WSGIController.__call__(self, environ, start_response)
File
'/home/baruwa/px/lib/python2.6/site-packages/pylons/controllers/core.py',
line 214 in __call__
 response = self._dispatch_call()
File
'/home/baruwa/px/lib/python2.6/site-packages/pylons/controllers/core.py',
line 164 in _dispatch_call
 response = self._inspect_call(func)
File
'/home/baruwa/px/lib/python2.6/site-packages/pylons/controllers/core.py',
line 107 in _inspect_call
 result = self._perform_call(func, args)
File
'/home/baruwa/px/lib/python2.6/site-packages/pylons/controllers/core.py',
line 57 in _perform_call
 return func(**args)
File '<string>', line 2 in index
File
'/home/baruwa/px/lib/python2.6/site-packages/repoze/what/plugins/pylonshq/protectors.py',
line 117 in wrap_action
 abort(code, comment=reason)
File
'/home/baruwa/px/lib/python2.6/site-packages/pylons/controllers/util.py',
line 210 in abort
 raise exc.exception
*AttributeError: 'HTTPUnauthorized' object has no attribute 'exception'*
=====


I have read that this is due to webob depreciating the 'exception' attribute
in version 1.4.
But i'm not sure how to proceed.

Any advice would be great.

Regards





--
View this message in context: http://baruwa-users-list.963389.n3.nabble.com/AttributeError-HTTPUnauthorized-object-has-no-attribute-exception-tp4027390.html
Sent from the Baruwa users list mailing list archive at Nabble.com.

_______________________________________________
http://pledgie.com/campaigns/12056



_______________________________________________
http://pledgie.com/campaigns/12056


--
This message has been scanned for viruses and
dangerous content by MailScanner, and is
believed to be clean.

_______________________________________________
http://pledgie.com/campaigns/12056

-- 
Raymond Norton
LCTN
952.955.7766

_______________________________________________
http://pledgie.com/campaigns/12056
Reply | Threaded
Open this post in threaded view
|

Re: {Disarmed} Re: AttributeError: 'HTTPUnauthorized' object has no attribute 'exception'

ManicD
Hi raymond,

i have tried that already but i'm assuming it didnt work due to the way the http://www.baruwa-install.com/ script installs it.

i couldnt even find evidence to support that webob was even installed in teh first place but i did try installing 1.3 anyway and same result.


D
Reply | Threaded
Open this post in threaded view
|

Re: {Disarmed} Re: AttributeError: 'HTTPUnauthorized' object has no attribute 'exception'

Raymond Norton
I scrapped the install script idea, once Jeremy confirmed it was broke. I would use the install docs, with the following changes (per Jeremy).

This is on Ubuntu:


cd /home/baruwa
python -c 'import virtualenv'; virtualenv --distribute px
source px/bin/activate; export SWIG_FEATURES="-cpperraswarn -includeall -D__`uname -m`__ -I/usr/include/openssl"
pip install distribute
pip install -U distribute
pip install python-memcached
pip install --timeout 120 -r requirements.txt
pip install babel==0.9.6
pip uninstall reportlab -y
pip install reportlab==2.7





On 09/05/2014 10:43 AM, ManicD wrote:
Hi raymond, 

i have tried that already but i'm assuming it didnt work due to the way the
http://www.baruwa-install.com/ script installs it.

i couldnt even find evidence to support that webob was even installed in teh
first place but i did try installing 1.3 anyway and same result. 




_______________________________________________
http://pledgie.com/campaigns/12056