You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
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.
On 19. Feb 2018, at 16:58, jeff-mandell ***@***.***> wrote:
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.
—
You are receiving this because you are subscribed to this thread.
Reply to this email directly, view it on GitHub, or mute the thread.
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'
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.
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
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.
Activity
dpryan79 commentedon Feb 19, 2018
jeff-mandell commentedon Feb 19, 2018
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'
dpryan79 commentedon Feb 19, 2018
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.
jeff-mandell commentedon Feb 19, 2018
Just with pip:
pip3.6 install deepTools
dpryan79 commentedon Feb 19, 2018
Interesting, it looks like the plotly package on pypi is missing a dependency, I'll report it to them.
vreuter commentedon Feb 19, 2018
I think it's probably intended that way, that
plotlymaintainers may've decided use ofpandasis insufficient to warrant a true dependency that requires opt-out to not install, especially sincepandasis big. There should probably be something like anextras_requiressection in thesetupto facilitate opt-in for these bundles of lesser-needed dependencies, but something like that could be introduced here. It sounds likeextras_requiremay be on the way out, thoughdpryan79 commentedon Mar 6, 2018
I've created a PR on plotly to fix this.
dpryan79 commentedon Mar 6, 2018
This will be resolved in plotly 2.5.0 :)
bgruening commentedon Mar 12, 2018
Should be fix the bioconda package for the time being?
https://biostar.usegalaxy.org/p/27084/#27089
dpryan79 commentedon Mar 12, 2018
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.