-
-
Notifications
You must be signed in to change notification settings - Fork 18.4k
ENH Remove import time warning for missing lzma #43495
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
Conversation
@@ -102,27 +102,7 @@ def is_platform_arm() -> bool: | |||
return platform.machine() in ("arm64", "aarch64") | |||
|
|||
|
|||
def import_lzma(): |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Not sure if this is considered to be public API and would need a deprecation cycle?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
no its not
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
prob reasonable.
can you add a whatsnew note. put in I/O Bug fixes for 1.4
also I think its worth a note in the install.rst
I think the code check at Lines 48 to 50 in 3467469
|
can you merge master and addresss comments |
Thanks for the reviews (and for the reminder)! I addressed the comments. |
@@ -362,6 +362,7 @@ zlib Compression for HDF5 | |||
fastparquet 0.4.0 Parquet reading / writing | |||
pyarrow 0.17.0 Parquet, ORC, and feather reading / writing | |||
pyreadstat SPSS files (.sav) reading | |||
Python with lzma module None Reading files with .lzma or .xz compression |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
i am not sure what this means, so would remove it
pls merge master as well |
this is failing here: https://github.com/pandas-dev/pandas/runs/4125318814?check_suite_focus=true |
@@ -102,27 +102,7 @@ def is_platform_arm() -> bool: | |||
return platform.machine() in ("arm64", "aarch64") | |||
|
|||
|
|||
def import_lzma(): |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
no its not
@jreback Yes, sorry for slow iterations. I'll look into it tomorrow. |
needs to merge master |
Thanks for your patience @jreback . I merged master and removed lzma from the blocklist import (which fails) due to an optional import of lzma in numpy numpy/numpy#18278 . Generally, since loading I think the current version does solve the initial issue of an unnecessary warning. |
thanks @rth very nice! |
Also adds a test that lzma is not imported by default with
import pandas
.cc @TomAugspurger