Skip to content

Add pandas to required dependences #669

Closed

Description

@jeff-mandell

When I installed deepTools with Pip, pandas was not installed as dependency. However, plotCorrelation threw a ModuleNotFound error for pandas. After installing pandas with pip, plotCorrelation worked fine.

Activity

  1. dpryan79 commented on Feb 19, 2018

    @dpryan79
    Collaborator
  2. jeff-mandell commented on Feb 19, 2018

    @jeff-mandell
    Author

    plotCorrelation -in bigwig_summary.ngz --whatToPlot heatmap --corMethod pearson -o bigwig_corr_heatmap_pearson.png

    Traceback (most recent call last):
    File "[path]/python-3.6.4/bin/plotCorrelation", line 4, in
    from deeptools.plotCorrelation import main
    File "[path]/Python3.6/site-packages/deeptools/plotCorrelation.py", line 13, in
    from deeptools.correlation import Correlation
    File "[path]/Python3.6/site-packages/deeptools/correlation.py", line 20, in
    import plotly.figure_factory as ff
    File "[path]/Python3.6/site-packages/plotly/figure_factory/init.py", line 21, in
    from plotly.figure_factory._county_choropleth import create_choropleth
    File "[path]/Python3.6/site-packages/plotly/figure_factory/_county_choropleth.py", line 7, in
    import pandas as pd
    ModuleNotFoundError: No module named 'pandas'

  3. dpryan79 commented on Feb 19, 2018

    @dpryan79
    Collaborator

    Interesting, apparently that version of plotly requires pandas. How did you install deepTools? Somehow the dependency of a dependency didn't get installed. deepTools itself doesn't depend on pandas, so whatever you did to install it acted oddly.

  4. jeff-mandell commented on Feb 19, 2018

    @jeff-mandell
    Author

    Just with pip:
    pip3.6 install deepTools

  5. dpryan79 commented on Feb 19, 2018

    @dpryan79
    Collaborator

    Interesting, it looks like the plotly package on pypi is missing a dependency, I'll report it to them.

  6. vreuter commented on Feb 19, 2018

    @vreuter
    Contributor

    I think it's probably intended that way, that plotly maintainers may've decided use of pandas is insufficient to warrant a true dependency that requires opt-out to not install, especially since pandas is big. There should probably be something like an extras_requires section in the setup to facilitate opt-in for these bundles of lesser-needed dependencies, but something like that could be introduced here. It sounds like extras_require may be on the way out, though

  7. dpryan79 commented on Mar 6, 2018

    @dpryan79
    Collaborator

    I've created a PR on plotly to fix this.

  8. dpryan79 commented on Mar 6, 2018

    @dpryan79
    Collaborator

    This will be resolved in plotly 2.5.0 :)

  9. bgruening commented on Mar 12, 2018

    @bgruening
    Member
  10. dpryan79 commented on Mar 12, 2018

    @dpryan79
    Collaborator

    Grudgingly I guess so, since I don't know when the next plotly release will be. I'll make a PR real quick. The plotly in conda-forge hadn't been updated for a while, so folks using conda will only now be running into this.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions