Skip to content

statsmodels is missing from optional dependencies #21911

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

Closed
tdsmith opened this issue Jul 14, 2018 · 0 comments · Fixed by #21912
Closed

statsmodels is missing from optional dependencies #21911

tdsmith opened this issue Jul 14, 2018 · 0 comments · Fixed by #21912
Labels
Build Library building on various platforms Dependencies Required and optional dependencies Docs
Milestone

Comments

@tdsmith
Copy link
Contributor

tdsmith commented Jul 14, 2018

Code Sample, a copy-pastable example if possible

docs$ python make.py html

...

>>>-------------------------------------------------------------------------
Exception in /Users/tsmith/upstream/pandas/doc/source/basics.rst at block ending on line 762
Specify :okexcept: as an option in the ipython:: block to suppress this message
---------------------------------------------------------------------------
ModuleNotFoundError                       Traceback (most recent call last)
<ipython-input-138-5ad1e596ef83> in <module>()
----> 1 import statsmodels.formula.api as sm

ModuleNotFoundError: No module named 'statsmodels'
<<<-------------------------------------------------------------------------

Problem description

After setting up the development environment as described in the contributor guide, building the docs fails because statsmodels isn't included in the optional dependencies.

Expected Output

(none)

Output of pd.show_versions()

No module named 'dask'

INSTALLED VERSIONS

commit: 610a19a
python: 3.6.4.final.0
python-bits: 64
OS: Darwin
OS-release: 17.6.0
machine: x86_64
processor: i386
byteorder: little
LC_ALL: None
LANG: en_US.UTF-8
LOCALE: en_US.UTF-8

pandas: 0.24.0.dev0+307.g610a19a33.dirty
pytest: 3.6.3
pip: 10.0.1
setuptools: 40.0.0
Cython: 0.28.4
numpy: 1.14.5
scipy: 1.1.0
pyarrow: 0.9.0.post1
xarray: 0.10.7
IPython: 6.4.0
sphinx: 1.7.5
patsy: 0.5.0
dateutil: 2.7.3
pytz: 2018.5
blosc: 1.5.1
bottleneck: 1.2.1
tables: 3.4.4
numexpr: 2.6.5
feather: 0.4.0
matplotlib: 2.2.2
openpyxl: 2.5.4
xlrd: 1.1.0
xlwt: 1.3.0
xlsxwriter: 1.0.5
lxml: 4.2.3
bs4: 4.6.0
html5lib: 1.0.1
sqlalchemy: 1.2.10
pymysql: 0.9.2
psycopg2: None
jinja2: 2.10
s3fs: 0.1.5
fastparquet: 0.1.5
pandas_gbq: None
pandas_datareader: None
gcsfs: 0.1.1

A possible complication is that statsmodels depends on pandas.

The imports I see are:

pandas$ grep -R "import statsmodels" .
./doc/source/whatsnew/v0.16.2.txt:   import statsmodels.formula.api as sm
./doc/source/basics.rst:   import statsmodels.formula.api as sm
@jschendel jschendel added Build Library building on various platforms Docs Dependencies Required and optional dependencies labels Jul 14, 2018
@jschendel jschendel added this to the 0.24.0 milestone Jul 14, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Build Library building on various platforms Dependencies Required and optional dependencies Docs
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants