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

TypeError: cell() takes at least 3 arguments (2 given) #41

Open
Alberms opened this issue Jan 30, 2018 · 3 comments
Open

TypeError: cell() takes at least 3 arguments (2 given) #41

Alberms opened this issue Jan 30, 2018 · 3 comments
Assignees
Labels

Comments

@Alberms
Copy link

Alberms commented Jan 30, 2018

Hello,

I get this error when exporting:

Exporting stocks symbols
Traceback (most recent call last):
File "C:\Python27\Scripts\YahooTickerDownloader.py", l
main()
File "C:\Python27\Scripts\YahooTickerDownloader.py", l
f.write(data.xlsx)
File "C:\Python27\lib\site-packages\tablib\formats_xl
rt_set
dset_sheet(dataset, ws, freeze_panes=freeze_panes)
File "C:\Python27\lib\site-packages\tablib\formats_xl
t_sheet
cell = ws.cell('%s%s' % (col_idx, row_number))
TypeError: cell() takes at least 3 arguments (2 given)

Any idea?
Thanks a lot

@Benny- Benny- self-assigned this Jan 31, 2018
@Benny- Benny- added the bug label Jan 31, 2018
@Benny-
Copy link
Owner

Benny- commented Jan 31, 2018

Please show me the version of the dependencies using pip freeze.

@Benny-
Copy link
Owner

Benny- commented Jan 31, 2018

Problem has been identified and delegated to https://github.com/kennethreitz/tablib/issues/323

For now I might implement a way to switch the export to .xlsx off, or switch it off by default or switch to another library to export to .xlsx.

@Benny-
Copy link
Owner

Benny- commented Jan 31, 2018

A tiny little change in my code. The latest version (2.2.0) of Yahoo-ticker-symbol-downloader should skip over the export function and continue on with the next file formats if one export fails.

While at the moment you still would not get a .xlsx file you won't get a big stack trace in your face. It now also exports the next two file formats (json and yaml). Can you confirm it exports .json and .yaml now?

The export of the xlsx file should be automatically work again once the tablib library resolved their issue.

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

No branches or pull requests

2 participants