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

export xls file type error #47

Closed
mysqldba-nandy opened this issue Jun 25, 2018 · 5 comments
Closed

export xls file type error #47

mysqldba-nandy opened this issue Jun 25, 2018 · 5 comments

Comments

@mysqldba-nandy
Copy link

  • xls
    make_response(sheet, "xls", file_name=filename)
    OSError: No content, file name. Nothing is given

  • xlsx
    make_response(sheet, "xlsx", file_name=filename)
    Success

@chfw
Copy link
Member

chfw commented Jun 25, 2018

please show me your package list. you can get it using pip freeze from your current python env.

@fergbrain
Copy link

I have the same issue, but also doesn't work for xlsx either. Here's the output from pip freeze:

Babel==2.6.0
beautifulsoup4==4.6.3
Django==2.1.1
django-bootstrap-themes==3.3.6
django-bootstrap3==11.0.0
django-bootstrap4==0.0.7
django-crispy-forms==1.7.2
django-excel==0.0.10
-e git://github.com/AndrewIngram/django-extra-views.git@aa58167af84d89feea286f9567a72cc5941360e4#egg=django_extra_views
django-localflavor==2.1
django-phonenumber-field==2.0.1
GDAL==2.3.1
lml==0.0.4
nose==1.3.7
numpy==1.15.1
phonenumbers==8.9.14
pyexcel==0.5.9.1
pyexcel-io==0.5.9.1
pyexcel-webio==0.1.4
pytz==2018.5
six==1.11.0
texttable==1.4.0

@chfw
Copy link
Member

chfw commented Oct 20, 2018

Contrary to battery included idea, pyexcel is pick-your-own-cherry. So please install pyexcel-xlsx.

@fergbrain
Copy link

Well, I feel like an idiot now. Thanks :)

I also had to install XlsxWriter

@chfw
Copy link
Member

chfw commented Oct 20, 2018

Then it is pyexcel-xlsxw

@chfw chfw closed this as completed Mar 15, 2019
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

3 participants