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

Can't move ProfilerDebugPanel above RequestVarsDebugPanel #47

Closed
appsforartists opened this issue Mar 9, 2013 · 6 comments
Closed

Can't move ProfilerDebugPanel above RequestVarsDebugPanel #47

appsforartists opened this issue Mar 9, 2013 · 6 comments

Comments

@appsforartists
Copy link

If you reorder DEBUG_TB_PANELS so ProfilerDebugPanel comes before RequestVarsDebugPanel, you'll get an obscure error: AttributeError: 'functools.partial' object has no attribute '__module__'

This is OK:

DEBUG_TB_PANELS = [
    'flask_debugtoolbar.panels.request_vars.RequestVarsDebugPanel',
    'flask_debugtoolbar.panels.profiler.ProfilerDebugPanel',
]

This is not:

DEBUG_TB_PANELS = [
    'flask_debugtoolbar.panels.profiler.ProfilerDebugPanel',
    'flask_debugtoolbar.panels.request_vars.RequestVarsDebugPanel',
]

Screen Shot 2013-03-08 at 7 41 37 PM

@mgood
Copy link
Contributor

mgood commented Mar 9, 2013

What version of the toolbar do you have installed? This sounds like a duplicate of an issue fixed in the recently released 0.8.

On Mar 8, 2013, at 7:45 PM, Brenton Simpson notifications@github.com wrote:

If you reorder DEBUG_TB_PANELS so ProfilerDebugPanel comes before RequestVarsDebugPanel, you'll get an obscure error: AttributeError: 'functools.partial' object has no attribute 'module'

This is OK:

DEBUG_TB_PANELS = [
'flask_debugtoolbar.panels.request_vars.RequestVarsDebugPanel',
'flask_debugtoolbar.panels.profiler.ProfilerDebugPanel',
]
This is not:

DEBUG_TB_PANELS = [
'flask_debugtoolbar.panels.profiler.ProfilerDebugPanel',
'flask_debugtoolbar.panels.request_vars.RequestVarsDebugPanel',
]


Reply to this email directly or view it on GitHub.

@appsforartists
Copy link
Author

It came with flask-appengine-template. I'll try upgrading to the head
revision of your project.

What version of the toolbar do you have installed? This sounds like a
duplicate of an issue fixed in the recently released 0.8.

On Mar 8, 2013, at 7:45 PM, Brenton Simpson notifications@github.com
wrote:

If you reorder DEBUG_TB_PANELS so ProfilerDebugPanel comes before
RequestVarsDebugPanel, you'll get an obscure error: AttributeError:
'functools.partial' object has no attribute 'module'

This is OK:

DEBUG_TB_PANELS = [
'flask_debugtoolbar.panels.request_vars.RequestVarsDebugPanel',
'flask_debugtoolbar.panels.profiler.ProfilerDebugPanel',
]
This is not:

DEBUG_TB_PANELS = [
'flask_debugtoolbar.panels.profiler.ProfilerDebugPanel',
'flask_debugtoolbar.panels.request_vars.RequestVarsDebugPanel',
]


Reply to this email directly or view it on GitHub.


Reply to this email directly or view it on GitHubhttps://github.com//issues/47#issuecomment-14668234
.

@appsforartists
Copy link
Author

Unfortunately, that didn't fix it. I'm using the HEAD revision. As you can see in this screenshot, the patch from #35 is included:
Screen Shot 2013-03-09 at 11 13 15 AM

@mgood
Copy link
Contributor

mgood commented Mar 9, 2013

I've tried flipping the order around, but I can't reproduce the issue. There's a Python bug for a similar error, but I don't see an obvious application here.

Can you narrow this down to a simple example app that demonstrates the problem?

@appsforartists
Copy link
Author

I'm having a hard time creating a reduction. As the screenshot above shows, I was able to reproduce it with the HEAD revision, but I am having a hard time now. If I keep running into this issue, I'll reopen.

Thanks.

@mgood
Copy link
Contributor

mgood commented Mar 10, 2013

Ok yeah let me know if it comes up again.

On Sun, Mar 10, 2013 at 1:25 PM, Brenton Simpson notifications@github.com
wrote:

I'm having a hard time creating a reduction. As the screenshot above shows, I was able to reproduce it with the HEAD revision, but I am having a hard time now. If I keep running into this issue, I'll reopen.

Thanks.

Reply to this email directly or view it on GitHub:
#47 (comment)

@github-actions github-actions bot locked as resolved and limited conversation to collaborators May 1, 2024
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Development

No branches or pull requests

2 participants