{"action":"created","issue":{"url":"https://api.github.com/repos/pandas-dev/pandas/issues/23934","repository_url":"https://api.github.com/repos/pandas-dev/pandas","labels_url":"https://api.github.com/repos/pandas-dev/pandas/issues/23934/labels{/name}","comments_url":"https://api.github.com/repos/pandas-dev/pandas/issues/23934/comments","events_url":"https://api.github.com/repos/pandas-dev/pandas/issues/23934/events","html_url":"https://github.com/pandas-dev/pandas/issues/23934","id":384534160,"node_id":"MDU6SXNzdWUzODQ1MzQxNjA=","number":23934,"title":"show_versions fails on master with latest lxml","user":{"login":"max-sixty","id":5635139,"node_id":"MDQ6VXNlcjU2MzUxMzk=","avatar_url":"https://avatars0.githubusercontent.com/u/5635139?v=4","gravatar_id":"","url":"https://api.github.com/users/max-sixty","html_url":"https://github.com/max-sixty","followers_url":"https://api.github.com/users/max-sixty/followers","following_url":"https://api.github.com/users/max-sixty/following{/other_user}","gists_url":"https://api.github.com/users/max-sixty/gists{/gist_id}","starred_url":"https://api.github.com/users/max-sixty/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/max-sixty/subscriptions","organizations_url":"https://api.github.com/users/max-sixty/orgs","repos_url":"https://api.github.com/users/max-sixty/repos","events_url":"https://api.github.com/users/max-sixty/events{/privacy}","received_events_url":"https://api.github.com/users/max-sixty/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":3,"created_at":"2018-11-26T22:15:42Z","updated_at":"2018-11-26T22:41:27Z","closed_at":null,"author_association":"CONTRIBUTOR","body":"#### Code Sample, a copy-pastable example if possible\r\n\r\n```python\r\n[ins] In [1]: import pandas as pd\r\np\r\n[ins] In [2]: pd.show_versions()\r\n---------------------------------------------------------------------------\r\nAttributeError                            Traceback (most recent call last)\r\n<ipython-input-2-3d232a07e144> in <module>\r\n----> 1 pd.show_versions()\r\n\r\n~/workspace/pandas/pandas/util/_print_versions.py in show_versions(as_json)\r\n    107             else:\r\n    108                 mod = importlib.import_module(modname)\r\n--> 109             ver = ver_f(mod)\r\n    110             deps_blob.append((modname, ver))\r\n    111         except ImportError:\r\n\r\n~/workspace/pandas/pandas/util/_print_versions.py in <lambda>(mod)\r\n     86         (\"xlwt\", lambda mod: mod.__VERSION__),\r\n     87         (\"xlsxwriter\", lambda mod: mod.__version__),\r\n---> 88         (\"lxml\", lambda mod: mod.etree.__version__),\r\n     89         (\"bs4\", lambda mod: mod.__version__),\r\n     90         (\"html5lib\", lambda mod: mod.__version__),\r\n\r\nAttributeError: module 'lxml' has no attribute 'etree'\r\n```\r\n\r\n#### Expected Output\r\n\r\nThis seems to work OK on 0.23.4 (output below).\r\n\r\nLet me know if there are other potential factors you'd like me to check\r\n\r\n#### Output of ``pd.show_versions()``\r\n\r\n<details>\r\n\r\n[ins] In [5]: pd.show_versions()\r\n\r\nINSTALLED VERSIONS\r\n------------------\r\ncommit: None\r\npython: 3.7.1.final.0\r\npython-bits: 64\r\nOS: Darwin\r\nOS-release: 18.0.0\r\nmachine: x86_64\r\nprocessor: i386\r\nbyteorder: little\r\nLC_ALL: None\r\nLANG: en_US.UTF-8\r\nLOCALE: en_US.UTF-8\r\n\r\npandas: 0.23.4\r\npytest: 3.9.2\r\npip: 18.1\r\nsetuptools: 40.6.2\r\nCython: 0.28.5\r\nnumpy: 1.15.2\r\nscipy: None\r\npyarrow: None\r\nxarray: 0.10.9\r\nIPython: 7.1.1\r\nsphinx: None\r\npatsy: 0.5.0\r\ndateutil: 2.7.5\r\npytz: 2018.5\r\nblosc: None\r\nbottleneck: 1.2.1\r\ntables: None\r\nnumexpr: 2.6.8\r\nfeather: None\r\nmatplotlib: 3.0.0\r\nopenpyxl: None\r\nxlrd: 1.1.0\r\nxlwt: 1.3.0\r\nxlsxwriter: None\r\nlxml: 4.2.5\r\nbs4: 4.6.0\r\nhtml5lib: 1.0.1\r\nsqlalchemy: 1.2.12\r\npymysql: None\r\npsycopg2: None\r\njinja2: 2.8.1\r\ns3fs: None\r\nfastparquet: None\r\npandas_gbq: 0.6.1+2.gd98c621\r\npandas_datareader: 0.7.0\r\n</details>\r\n"},"comment":{"url":"https://api.github.com/repos/pandas-dev/pandas/issues/comments/441828680","html_url":"https://github.com/pandas-dev/pandas/issues/23934#issuecomment-441828680","issue_url":"https://api.github.com/repos/pandas-dev/pandas/issues/23934","id":441828680,"node_id":"MDEyOklzc3VlQ29tbWVudDQ0MTgyODY4MA==","user":{"login":"max-sixty","id":5635139,"node_id":"MDQ6VXNlcjU2MzUxMzk=","avatar_url":"https://avatars0.githubusercontent.com/u/5635139?v=4","gravatar_id":"","url":"https://api.github.com/users/max-sixty","html_url":"https://github.com/max-sixty","followers_url":"https://api.github.com/users/max-sixty/followers","following_url":"https://api.github.com/users/max-sixty/following{/other_user}","gists_url":"https://api.github.com/users/max-sixty/gists{/gist_id}","starred_url":"https://api.github.com/users/max-sixty/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/max-sixty/subscriptions","organizations_url":"https://api.github.com/users/max-sixty/orgs","repos_url":"https://api.github.com/users/max-sixty/repos","events_url":"https://api.github.com/users/max-sixty/events{/privacy}","received_events_url":"https://api.github.com/users/max-sixty/received_events","type":"User","site_admin":false},"created_at":"2018-11-26T22:41:27Z","updated_at":"2018-11-26T22:41:27Z","author_association":"CONTRIBUTOR","body":"Is this because `etree` isn't imported into `lxml`'s root?\r\n\r\n```\r\n[ins] In [6]: lxml.etree\r\n---------------------------------------------------------------------------\r\nAttributeError                            Traceback (most recent call last)\r\n<ipython-input-6-f7059756e878> in <module>\r\n----> 1 lxml.etree\r\n\r\nAttributeError: module 'lxml' has no attribute 'etree'\r\n\r\n[ins] In [7]: from lxml import etree\r\n\r\n[ins] In [8]:\r\n```"}}
{"actor":{"display_login":"max-sixty"}}