Skip to content

process() missing 1 required positional argument: 'stream' #856

Closed
@mwoodward-atd

Description

@mwoodward-atd

This cropped up on a few of our applications today, specifically when we rebuilt some Vagrant boxes. It might be related to #852 since it doesn't crop up on existing Vagrant boxes, meaning I'm wondering if a fresh install of everything means a newer version of an underlying dependency (like sqlparse), although in one case sqlparse was at 0.1.18 and we still ran into the issue.

At any rate, here's more information -- this is on Django 1.9.5, but the same occurs on Django 1.9.7. Let me know if I can provide additional information.

process() missing 1 required positional argument: 'stream'
Request Method: GET
Request URL: http://localhost:8000/security/login/?next=/
Django Version: 1.9.5
Exception Type: TypeError
Exception Value:
process() missing 1 required positional argument: 'stream'
Exception Location: /usr/local/lib/python3.4/dist-packages/sqlparse/engine/filter_stack.py in run, line 29
Python Executable: /usr/bin/python3
Python Version: 3.4.3
Python Path:
['/vagrant',
'/vagrant/src/django-pgcrypto-fields',
'/usr/lib/python3.4',
'/usr/lib/python3.4/plat-x86_64-linux-gnu',
'/usr/lib/python3.4/lib-dynload',
'/usr/local/lib/python3.4/dist-packages',
'/usr/lib/python3/dist-packages']
Server time: Wed, 20 Jul 2016 15:28:01 -0400
Traceback Switch to copy-and-paste view

/usr/local/lib/python3.4/dist-packages/django/core/handlers/base.py in get_response
response = middleware_method(request, response) ...
▶ Local vars
/usr/local/lib/python3.4/dist-packages/debug_toolbar/middleware.py in process_response
panel.generate_stats(request, response) ...
▶ Local vars
/usr/local/lib/python3.4/dist-packages/debug_toolbar/panels/sql/panel.py in generate_stats
query['sql'] = reformat_sql(query['sql']) ...
▶ Local vars
/usr/local/lib/python3.4/dist-packages/debug_toolbar/panels/sql/utils.py in reformat_sql
return swap_fields(''.join(stack.run(sql))) ...
▶ Local vars
/usr/local/lib/python3.4/dist-packages/sqlparse/engine/filter_stack.py in run
stream = filter_.process(stream)

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions