Welcome to the Treehouse Community

Want to collaborate on code errors? Have bugs you need feedback on? Looking for an extra set of eyes on your latest project? Get support with fellow developers, designers, and programmers of all backgrounds and skill levels here with the Treehouse Community! While you're at it, check out some resources Treehouse students have shared here.

Looking to learn something new?

Treehouse offers a seven day free trial for new students. Get access to thousands of hours of content and join thousands of Treehouse students and alumni in the community today.

Start your free trial

Python

mykolash
mykolash
12,955 Points

Exception Type: TypeError Exception Value: process() missing 1 required positional argument: 'stream'

Hi fellows,

I've occurred such an issue just after debug_tools installing and setup:

Exception Type: TypeError 

Exception Value: process() missing 1 required positional argument: 'stream'

And fixed it. Tried different debug_tool versions - it's NOT debug_tool issue. Seems to be it's SQLParse issue.

So, I did two things: (Working on Windows10 - but I guess it deals nothing w/ OS)

  1. Explicit setup of debug_tool: https://django-debug-toolbar.readthedocs.io/en/1.4/installation.html
  2. Reinstall SQLParse (I had "sqlparse==0.2.3"): (found same bug here: https://github.com/jazzband/django-debug-toolbar/issues/856)
pip uninstall sqlparse

pip install sqlparse==0.9

And that's it. Not sure was it explicit setup or sqlparse reinstall, but now I do have debug_tool panel on FrontEnd and I do NOT want to touch anything! o_O I've spent almost three hours (yep, I'm rookie!) scrutinizing this crippy issue. And it's enough!

No thanx! Just help some other django rookie like me when he/she will need it.

1 Answer

Kenneth Love
STAFF
Kenneth Love
Treehouse Guest Teacher

Wow, that's quite the combination of broke. Congrats on debugging it!

mykolash
mykolash
12,955 Points

Thanx Kenneth, just doing my best ^_^ BTW, love your Python/Django courses - pls, don't stop adding new!!!