question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

WARNING: tablib 0.14.0 does not provide the extra 'xlsx'

See original GitHub issue

Issue Summary

I’m using the license scanning feature from GitLab, which does all sorts of things behind the scenes, but it errors out on this tablib issue. I’ve replicated it outside of this with a requirements.in file with just wagtail in it:

$ cat requirements.in
wagtail

$ pip-compile --no-emit-index-url --output-file requirements.txt requirements.in

$ cat requirements.txt
...
tablib[xls,xlsx]==0.14.0
    # via wagtail
urllib3==1.25.6
    # via requests
wagtail==2.12.6
    # via -r requirements.in

And if I try to install that manually:

❯ pip install tablib[xls,xlsx]==0.14.0
Requirement already satisfied: tablib[xls,xlsx]==0.14.0 in ./.virtualenv/lib/python3.7/site-packages (0.14.0)
WARNING: tablib 0.14.0 does not provide the extra 'xls'
WARNING: tablib 0.14.0 does not provide the extra 'xlsx'
Requirement already satisfied: odfpy in ./.virtualenv/lib/python3.7/site-packages (from tablib[xls,xlsx]==0.14.0) (1.4.1)
Requirement already satisfied: xlwt in ./.virtualenv/lib/python3.7/site-packages (from tablib[xls,xlsx]==0.14.0) (1.3.0)
Requirement already satisfied: pyyaml in ./.virtualenv/lib/python3.7/site-packages (from tablib[xls,xlsx]==0.14.0) (5.3)
Requirement already satisfied: xlrd in ./.virtualenv/lib/python3.7/site-packages (from tablib[xls,xlsx]==0.14.0) (1.2.0)
Requirement already satisfied: openpyxl>=2.4.0 in ./.virtualenv/lib/python3.7/site-packages (from tablib[xls,xlsx]==0.14.0) (3.0.3)
Requirement already satisfied: markuppy in ./.virtualenv/lib/python3.7/site-packages (from tablib[xls,xlsx]==0.14.0) (1.14)
Requirement already satisfied: jdcal in ./.virtualenv/lib/python3.7/site-packages (from openpyxl>=2.4.0->tablib[xls,xlsx]==0.14.0) (1.4.1)
Requirement already satisfied: et-xmlfile in ./.virtualenv/lib/python3.7/site-packages (from openpyxl>=2.4.0->tablib[xls,xlsx]==0.14.0) (1.0.1)
Requirement already satisfied: defusedxml in ./.virtualenv/lib/python3.7/site-packages (from odfpy->tablib[xls,xlsx]==0.14.0) (0.6.0)

How do we get wagtail to not include those brackets? Cause it works just fine if I go that route.

Technical details

$ python --version
Python 3.7.4

$ pip show django | grep Version
Version: 2.2.18

$ pip show wagtail | grep Version
Version: 2.12.6

Issue Analytics

  • State:closed
  • Created 2 years ago
  • Comments:5

github_iconTop GitHub Comments

1reaction
heydonovancommented, Jul 22, 2021

You can close this, figured it out. From the pip-tools README:

Note: If pip-compile finds an existing requirements.txt file that fulfils the dependencies then no changes will be made, even if updates are available. To compile from scratch, first delete the existing requirements.txt file, or see Updating requirements for alternative approaches.

Once I deleted the requirements.txt, and re-ran it, it had the latest version of tablib:

$ cat requirements.txt | grep -C3 '^tablib'
    # via beautifulsoup4
sqlparse==0.4.1
    # via django
tablib[xls,xlsx]==3.0.0
    # via wagtail
tenacity==8.0.1
    # via ddtrace
0reactions
heydonovancommented, Jul 22, 2021

Oh interesting! Thought wagtail was enforcing that version for some reason. Looks like I’ve more digging to do.

I’ll get back to you once I’ve more information. Thanks!

Read more comments on GitHub >

github_iconTop Results From Across the Web

tablib==0.14.0 creates error in Django project · Issue #434
I have a Django project that use django-import-export which in turn uses tablib. After some upgrades (pip-compile -U follow by pip-sync), ...
Read more >
tablib
Tablib is now able to import CSV content where not all rows have the same length. Missing columns on any line receive the...
Read more >
Django import export has error "Tablib has no format 'None' ...
I am trying to implement csv import in my application and I have this error, Tablib has no format 'None' or it is...
Read more >
Index of /pub/archive/epel/6/x86_64/Packages/p - Fedora
Index of /pub/archive/epel/6/x86_64/Packages/p. Icon Name Last modified Size Description. [PARENTDIR] Parent Directory - [ ] Perlbal-1.80-12.el6.noarch.rpm ...
Read more >
Compare Packages Between Distributions
Complete summaries of the NetBSD and BlackArch Linux projects are available. Note: In case where multiple versions of a package are shipped with...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found