I'm stuck...

The forum for ranting, raving, complaining and praising
Post Reply
jim
Red Lobster for the seafood lover in you
Posts: 50393
Joined: May 1 06, 2:41 pm

I'm stuck...

Post by jim »

Totally. All afternoon. Hitting my head into a brick wall. Someone help.

@#$(&*.

Half way down the stack trace I see this:

Code: Select all

File "....../webinterface/rh/base.py", line 318, in _processUnexpectedError
    return p.display()
Why am I in _processUnexpectedError() ?????

User avatar
InvincibleCakeEater
GRB's obsessive compulsive baseball poster
Posts: 28275
Joined: October 12 07, 12:28 pm
Location: Raptured

Re: I'm stuck...

Post by InvincibleCakeEater »

If you could give me a little more code I could take a look for you.

jim
Red Lobster for the seafood lover in you
Posts: 50393
Joined: May 1 06, 2:41 pm

Re: I'm stuck...

Post by jim »

InvincibleCakeEater wrote:If you could give me a little more code I could take a look for you.
There is 200K lines of it, objects with 20+ levels of inheritance. I got a good nights rest and think I figured the problem out. But thanks for the offer.

edit - yup, got it. I upgraded packages and took the shortcut I normally take which mucked up a config file because some guy across the pond changed something I wasn't aware of.

This is a monster piece of code. A modpython based calendering/conference/meeting/agenda workflow package written at our sister lab that I have done alot of work on. It's a great but complicated project, and before I had gotten involved had not really exploited OO programming in Python before. I laughed out loud when I first saw this package was 200K+ lines and 400 modules, yet the entire program for running it consisted of this:

Code: Select all

import <packagename>.webinterface.rh.welcome as welcome

def index(req, **params):
    return welcome.RHWelcome( req ).process( params )
That's it, that's the entire index.py program. But then you see what the process method does, and RHWelcome objects inherit from RH objects which inherit from .... literally 20+ levels deep.

And I realize only geeky computer people will care about this...

User avatar
Hudler
All-Star
Posts: 2293
Joined: September 13 06, 12:02 am
Location: Fulton,MO

Re: I'm stuck...

Post by Hudler »

If all else fails,hit it with a hammer.

It won't fix the problem,but you'll feel better.

jim
Red Lobster for the seafood lover in you
Posts: 50393
Joined: May 1 06, 2:41 pm

Re: I'm stuck...

Post by jim »

Hudler wrote:If all else fails,hit it with a hammer.

It won't fix the problem,but you'll feel better.
Apparently, the other thing that helps is a glass of wine (or two) with a nice dinner with the family, a Leffe Blond Ale while watching a little basketball, and a good nights sleep.

But I've hit things too, and yes you do feel better.

User avatar
Hungary Jack
Mother Earth
Posts: 19536
Joined: July 24 06, 6:03 am
Location: In Cognito

Re: I'm stuck...

Post by Hungary Jack »

In situations like this, I call Geek Squad.

jim
Red Lobster for the seafood lover in you
Posts: 50393
Joined: May 1 06, 2:41 pm

Re: I'm stuck...

Post by jim »

Hungary Jack wrote:In situations like this, I call Geek Squad.
Ha - that's me. What happens when the geek can't figure it out? A good meal, a little alcohol, a good nights rest is the answer apparently.

My problem is I get stubborn. My wife needed me home by 6pm or I would have fought that thing until who knows when. At 5 I really thought I was too tired, but I kept trying this and that refusing to give up until I absolutely had to go home. I KNEW I would probably get it the next morning, but it ticks me off to the point where I just can't give up.

Arthur Dent
Hall Of Famer
Posts: 12542
Joined: April 25 06, 6:43 pm
Location: Austin

Re: I'm stuck...

Post by Arthur Dent »

jim wrote:My problem is I get stubborn. My wife needed me home by 6pm or I would have fought that thing until who knows when. At 5 I really thought I was too tired, but I kept trying this and that refusing to give up until I absolutely had to go home. I KNEW I would probably get it the next morning, but it ticks me off to the point where I just can't give up.
I understand, jim. I hate walking away from a problem I'm stuck on even if that's actually the best way to find a solution. Unfortunately as I am single, there is nobody but my dog to motivate me to get home on time. Got in one of those ruts last night and ending up getting home at an ungodly hour. Just enough time to eat something, go to sleep, and come back here. :?

Swatcat27
All-Star
Posts: 1830
Joined: July 25 06, 12:58 pm
Location: Austin, TX

Re: I'm stuck...

Post by Swatcat27 »

jim wrote:There is 200K lines of it, objects with 20+ levels of inheritance. I got a good nights rest and think I figured the problem out. But thanks for the offer.

edit - yup, got it. I upgraded packages and took the shortcut I normally take which mucked up a config file because some guy across the pond changed something I wasn't aware of.

This is a monster piece of code. A modpython based calendering/conference/meeting/agenda workflow package written at our sister lab that I have done alot of work on. It's a great but complicated project, and before I had gotten involved had not really exploited OO programming in Python before. I laughed out loud when I first saw this package was 200K+ lines and 400 modules, yet the entire program for running it consisted of this:

Code: Select all

import <packagename>.webinterface.rh.welcome as welcome

def index(req, **params):
    return welcome.RHWelcome( req ).process( params )
That's it, that's the entire index.py program. But then you see what the process method does, and RHWelcome objects inherit from RH objects which inherit from .... literally 20+ levels deep.

And I realize only geeky computer people will care about this...
You had me at inheritance... :pale:

jim
Red Lobster for the seafood lover in you
Posts: 50393
Joined: May 1 06, 2:41 pm

Re: I'm stuck...

Post by jim »

Arthur Dent wrote:
jim wrote:My problem is I get stubborn. My wife needed me home by 6pm or I would have fought that thing until who knows when. At 5 I really thought I was too tired, but I kept trying this and that refusing to give up until I absolutely had to go home. I KNEW I would probably get it the next morning, but it ticks me off to the point where I just can't give up.
I understand, jim. I hate walking away from a problem I'm stuck on even if that's actually the best way to find a solution. Unfortunately as I am single, there is nobody but my dog to motivate me to get home on time. Got in one of those ruts last night and ending up getting home at an ungodly hour. Just enough time to eat something, go to sleep, and come back here. :?
I definitely get into what you would call "ruts". It gets to the point sometimes where I completely lose the big picture - I'm not staying late because it's important - I'm staying late because I have to solve the problem. It could just as easily be a Sudoku puzzle , it usually doesn't matter. Of course, there are those times where you are working on some urgent issue where you can't forget the big picture because people are breathing down your neck, but last nights issue was not like that.

Post Reply