[Python] get_report() no longer working with python-quickbooks

Discussão em 'Python' iniciado por Stack, Junho 19, 2025.

  1. Stack

    Stack Membro Participativo

    Ive been using the python-quickbooks library without issue for months without problem. After updating to the most recent version (0.9.12), the get_report() function is no longer working when including any additional query parameters like start_date, end_date, etc. If I run alone it seems to still work.

    So this still works as it should:

    client.get_report('ProfitAndLoss')


    But this:

    client.get_report('ProfitAndLoss','summarize_column_by=Month')


    now produces the following error:

    Traceback (most recent call last):

    Cell In[100], line 1
    client.get_report('ProfitAndLoss','summarize_column_by=Month')

    File ~/anaconda3/lib/python3.11/site-packages/quickbooks/client.py:148 in get_report
    result = self.get(url, params=qs)

    File ~/anaconda3/lib/python3.11/site-packages/quickbooks/client.py:246 in get
    return self.make_request('GET', *args, **kwargs)

    File ~/anaconda3/lib/python3.11/site-packages/quickbooks/client.py:165 in make_request
    params['minorversion'] = self.minorversion

    TypeError: 'str' object does not support item assignment


    I have tried specifying the minorverion in the client object to 75, or to 1, or to nothing at all. There is absolutely no documentation for get_report() on python-quickbooks at all.

    Continue reading...

Compartilhe esta Página