-
-
Notifications
You must be signed in to change notification settings - Fork 18.4k
show_versions fails on master with latest lxml #23934
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
Comments
Are you sure lxml is installed properly? Whats the output of import lxml.etree
lxml.etree.__version__ |
Apologies - it works now. No idea how what could have caused this.
|
Actually - if I don't import
|
Is this because
|
I can't replicate this on I'm also inclined to believe |
I installed in an empty docker container to check:
|
That suggests a broken wheel perhaps on |
Are you sure it's not that |
I’d suggest waking through what pandas is doing in show_versions. I suspect that we’re relying on someone else importing lxml.etree and you don’t have that other optional dependency.
Regardless, we should probably just check lxml.etree
…________________________________
From: Maximilian Roos <[email protected]>
Sent: Monday, November 26, 2018 18:23
To: pandas-dev/pandas
Cc: Tom Augspurger; Comment
Subject: Re: [pandas-dev/pandas] show_versions fails on master with latest lxml (#23934)
Are you sure it's not that etree isn't imported into lxml root? That seems like the simplest explanation?
https://github.com/lxml/lxml/blob/master/src/lxml/__init__.py
—
You are receiving this because you commented.
Reply to this email directly, view it on GitHub<#23934 (comment)>, or mute the thread<https://github.com/notifications/unsubscribe-auth/ABQHIihRnxiGCFkN92gyTVIFO1s5AmEHks5uzIYQgaJpZM4Yz70l>.
|
Reproduced. It seems like openpyxl imports
To fix this, we should just change pandas/pandas/util/_print_versions.py Line 88 in 90961f2
"lxml" to "lxml.etree" .
|
so we call .show_versions() in any tests? maybe should do this in a subprocess call to make sure it works |
* BUG: Fix lxml import in show_versions Fixes #23934
* BUG: Fix lxml import in show_versions Fixes pandas-dev#23934
* BUG: Fix lxml import in show_versions Fixes pandas-dev#23934
Code Sample, a copy-pastable example if possible
Expected Output
This seems to work OK on 0.23.4 (output below).
Let me know if there are other potential factors you'd like me to check
Output of
pd.show_versions()
[ins] In [5]: pd.show_versions()
INSTALLED VERSIONS
commit: None
python: 3.7.1.final.0
python-bits: 64
OS: Darwin
OS-release: 18.0.0
machine: x86_64
processor: i386
byteorder: little
LC_ALL: None
LANG: en_US.UTF-8
LOCALE: en_US.UTF-8
pandas: 0.23.4
pytest: 3.9.2
pip: 18.1
setuptools: 40.6.2
Cython: 0.28.5
numpy: 1.15.2
scipy: None
pyarrow: None
xarray: 0.10.9
IPython: 7.1.1
sphinx: None
patsy: 0.5.0
dateutil: 2.7.5
pytz: 2018.5
blosc: None
bottleneck: 1.2.1
tables: None
numexpr: 2.6.8
feather: None
matplotlib: 3.0.0
openpyxl: None
xlrd: 1.1.0
xlwt: 1.3.0
xlsxwriter: None
lxml: 4.2.5
bs4: 4.6.0
html5lib: 1.0.1
sqlalchemy: 1.2.12
pymysql: None
psycopg2: None
jinja2: 2.8.1
s3fs: None
fastparquet: None
pandas_gbq: 0.6.1+2.gd98c621
pandas_datareader: 0.7.0
The text was updated successfully, but these errors were encountered: