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

import_report - takes 1 positional argument but 2 were given #192

Open
markspivey opened this issue May 19, 2021 · 2 comments
Open

import_report - takes 1 positional argument but 2 were given #192

markspivey opened this issue May 19, 2021 · 2 comments

Comments

@markspivey
Copy link

I get the following error when trying to import business reports, and get a similar error when I hardcode import_report.py to use the from_personal_row function (args do not seem to work). @gbrodman

Traceback (most recent call last):
  File "import_report.py", line 211, in <module>
    main()
  File "import_report.py", line 163, in main
    all_trackings.extend(objects_to_sheet.download_from_sheet(from_amazon_row, sheet_id, tab_name))
  File "C:\Users\xxx\AppData\Local\Programs\Python\Python38\lib\site-packages\tenacity\__init__.py", line 329, in wrapped_f
    return self.call(f, *args, **kw)
  File "C:\Users\xxx\AppData\Local\Programs\Python\Python38\lib\site-packages\tenacity\__init__.py", line 409, in call
    do = self.iter(retry_state=retry_state)
  File "C:\Users\xxx\AppData\Local\Programs\Python\Python38\lib\site-packages\tenacity\__init__.py", line 368, in iter
    raise retry_exc.reraise()
  File "C:\Users\xxx\AppData\Local\Programs\Python\Python38\lib\site-packages\tenacity\__init__.py", line 186, in reraise
    raise self.last_attempt.result()
  File "C:\Users\xxx\AppData\Local\Programs\Python\Python38\lib\concurrent\futures\_base.py", line 432, in result
    return self.__get_result()
  File "C:\Users\xxx\AppData\Local\Programs\Python\Python38\lib\concurrent\futures\_base.py", line 388, in __get_result
    raise self._exception
  File "C:\Users\xxx\AppData\Local\Programs\Python\Python38\lib\site-packages\tenacity\__init__.py", line 412, in call
    result = fn(*args, **kwargs)
  File "C:\Users\xxx\Documents\GitHub\order-tracking\lib\objects_to_sheet.py", line 26, in download_from_sheet
    return [from_row_fn(header, value) for value in values]
  File "C:\Users\xxx\Documents\GitHub\order-tracking\lib\objects_to_sheet.py", line 26, in <listcomp>
    return [from_row_fn(header, value) for value in values]
TypeError: from_amazon_row() takes 1 positional argument but 2 were given
@markspivey markspivey changed the title import_report - import_report - takes 1 positional argument but 2 were given May 19, 2021
@markspivey
Copy link
Author

Seems to be working ok with importing local files, not so much with anything hosted on GDrive.

@mazda341
Copy link

Where is the a folder called "reports" where you are supposed to place all the amazon order reports???? Bec I dont see any folder named reports!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants