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

xlsx' bug #212

Closed
jayzh1010 opened this issue Nov 18, 2015 · 6 comments
Closed

xlsx' bug #212

jayzh1010 opened this issue Nov 18, 2015 · 6 comments
Labels

Comments

@jayzh1010
Copy link

my Python version is 2.7;
'11111111111111111111' or 11111111111111111111 both will truncated to 11111111111111100000;
maybe the openpyxl in you package has something wrong;
when i use the latest official openpyxl, '11111111111111111111' will not be truncated;

@kennethreitz
Copy link
Contributor

This is because our openpyxl needs to be updated.

@kennethreitz
Copy link
Contributor

#197 is the same bug.

@jayzh1010
Copy link
Author

when will u fix this bug? tks

@YiuTerran
Copy link

still not fixed? So...Should I use openpyxl instead?

@jayzh1010
Copy link
Author

@YiuTerran i think u should use openpyxl and encapsulate it.

@hugovk
Copy link
Member

hugovk commented Oct 19, 2019

Retesting:

  • Python 3.7.4
  • tablib==0.14.0 (newest)
  • openpyxl==3.0.0 (newest)
import tablib

data = tablib.Dataset()
data.headers = ["test_id"]

a = "11111111111111111111"
b = 11111111111111111111
data.append([a])
data.append([b])
with open("test.xls", "wb") as f:
    f.write(data.xls)

test.xls contains:

test_id
11111111111111111111
11111111111111100000

The string matches the input, but not the integer. Closing as a duplicate of #197, which is reported upstream:

@hugovk hugovk closed this as completed Oct 19, 2019
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

4 participants