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

Cannot bypass the warning "could not mmap compressed IPC file, defaulting to normal read" #6095

Closed
2 tasks done
Feiyang opened this issue Jan 7, 2023 · 2 comments · Fixed by #6098
Closed
2 tasks done
Labels
bug Something isn't working python Related to Python Polars

Comments

@Feiyang
Copy link

Feiyang commented Jan 7, 2023

Polars version checks

  • I have checked that this issue has not already been reported.

  • I have confirmed this bug exists on the latest version of Polars.

Issue description

When polars reads compressed IPC files, it prints "could not mmap compressed IPC file, defaulting to normal read". As it cannot be bypassed, it is very disturbing when I read thousands of files.

Reproducible example

import pandas as pd
df = pd.DataFrame({"x": [1,2,3]})
df.to_feather("/tmp/example.feather")

import polars as pl
pl.read_ipc("/tmp/example.feather")

Expected behavior

There should be no warning.

Or, it would be good if the warning can be ignored with warnings.simplefilter(action="ignore").

Installed versions

---Version info---
Polars: 0.15.13
Index type: UInt32
Platform: Linux-5.15.0-56-generic-x86_64-with-glibc2.17
Python: 3.8.12 (default, Oct 12 2021, 13:49:34) 
[GCC 7.5.0]
---Optional dependencies---
pyarrow: 10.0.1
pandas: 1.4.3
numpy: 1.20.3
fsspec: 2021.10.1
connectorx: <not installed>
xlsx2csv: <not installed>
matplotlib: 3.5.0
@Feiyang Feiyang added bug Something isn't working python Related to Python Polars labels Jan 7, 2023
@zundertj
Copy link
Collaborator

zundertj commented Jan 7, 2023

Thank you for reporting this, I have hidden the message in the non-verbose mode in #6098.

@gam-phon
Copy link
Contributor

gam-phon commented Jan 8, 2023

I wanted to report this, but found it here before 20 hours and solved in 3 hours! Great I love you guys

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working python Related to Python Polars
Projects
None yet
Development

Successfully merging a pull request may close this issue.

3 participants