Skip to content

Misleading error message when PyTables is not installed #61521

Open
@user27182

Description

@user27182

I tried reading an hd5 file with the latest pandas and got this import error:

ImportError: Missing optional dependency 'pytables'. Use pip or conda to install pytables.

So I tried pip install pytables and got this error:

ERROR: Could not find a version that satisfies the requirement pytables (from versions: none)
ERROR: No matching distribution found for pytables

So then I went searching on PyPI and apparently there are no packages named pytables: https://pypi.org/search/?q=pytables

I did find the PyTables project on GitHub though, which says that we need to use pip install tables to install it. After installing tables, the hd5 read operation worked.

So, we need to install tables, not pytables, which is definitely confusing and not obvious. I think it would be very helpful if the error message indicated this to avoid having to go through the search process above.

Metadata

Metadata

Assignees

Labels

Error ReportingIncorrect or improved errors from pandas

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions