<html><head><meta http-equiv="Content-Type" content="text/html charset=utf-8"></head><body style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space;" class="">Hi Dylan-<div class=""><br class=""></div><div class="">One way you could accomplish what you want would be to write a plugin that modifies /etc/profile.d, rather than just the local homedir, on your machines to include the EBS volume where you’ve included the software in your PATH variable. By default, the profile in /etc/profile.d or /etc/bashrc should be being sourced.&nbsp;</div><div class=""><br class=""></div><div class="">I don’t think Jacob’s impression is correct that what you wanted is considered “taking a shortcut.” I’m sure you have a use case for doing what you want the way you’re trying to. One use case I see for this is having a lot of different packages, and people needing to use different version of the packages simultaneously. In our use of starcluster, we’ve found that it gets painful to need to update plugins to install things with apt on starcluster.</div><div class=""><br class=""></div><div class="">-Teddy</div><div class=""><br class=""></div><div class="">On Dec 4, 2016, at 5:43 PM, Dylan Kotliar &lt;<a href="mailto:dkotliar@broadinstitute.org" class="">dkotliar@broadinstitute.org</a>&gt; wrote:<div><blockquote type="cite" class=""><br class="Apple-interchange-newline"><div class=""><div dir="ltr" style="font-family: HelveticaNeue; font-size: 12px; font-style: normal; font-variant-caps: normal; font-weight: normal; letter-spacing: normal; orphans: auto; text-align: start; text-indent: 0px; text-transform: none; white-space: normal; widows: auto; word-spacing: 0px; -webkit-text-stroke-width: 0px;" class=""><div class="gmail_default" style="font-family: tahoma, sans-serif; font-size: small;">OK, I have come around to this. Thanks!</div></div><div class="gmail_extra" style="font-family: HelveticaNeue; font-size: 12px; font-style: normal; font-variant-caps: normal; font-weight: normal; letter-spacing: normal; orphans: auto; text-align: start; text-indent: 0px; text-transform: none; white-space: normal; widows: auto; word-spacing: 0px; -webkit-text-stroke-width: 0px;"><br class=""></div></div></blockquote><blockquote type="cite" class=""><div class=""><div class="gmail_extra" style="font-family: HelveticaNeue; font-size: 12px; font-style: normal; font-variant-caps: normal; font-weight: normal; letter-spacing: normal; orphans: auto; text-align: start; text-indent: 0px; text-transform: none; white-space: normal; widows: auto; word-spacing: 0px; -webkit-text-stroke-width: 0px;"><div class="gmail_quote">On Fri, Dec 2, 2016 at 2:30 AM, Jacob Barhak<span class="Apple-converted-space">&nbsp;</span><span dir="ltr" class="">&lt;<a href="mailto:jacob.barhak@gmail.com" target="_blank" class="">jacob.barhak@gmail.com</a>&gt;</span><span class="Apple-converted-space">&nbsp;</span>wrote:<br class=""><blockquote class="gmail_quote" style="margin: 0px 0px 0px 0.8ex; border-left-width: 1px; border-left-color: rgb(204, 204, 204); border-left-style: solid; padding-left: 1ex;"><p dir="ltr" class="">So Dylan,</p><p dir="ltr" class="">It seems you are trying to bypass installation. I suggest avoiding shortcuts.<span class="Apple-converted-space">&nbsp;</span></p><p dir="ltr" class="">Using code in centralized storage also implies you need to make sure code is accessible.<span class="Apple-converted-space">&nbsp;</span></p><p dir="ltr" class="">If you install whatever you need on each node upon startup you should be good unless I am missing somethings.&nbsp;<span class="Apple-converted-space">&nbsp;</span></p><p dir="ltr" class="">In any case, getting back to basics and simplifying things may help.&nbsp;<span class="Apple-converted-space">&nbsp;</span></p><p dir="ltr" class="">Good luck.<span class="Apple-converted-space">&nbsp;</span></p><span class="HOEnZb"><font color="#888888" class=""><p dir="ltr" class="">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<span class="Apple-converted-space">&nbsp;</span>Jacob<br class=""></p></font></span><div class="HOEnZb"><div class="h5"><div class="gmail_extra"><br class=""><div class="gmail_quote">On Dec 2, 2016 1:29 AM, "Dylan Kotliar" &lt;<a href="mailto:dkotliar@broadinstitute.org" target="_blank" class="">dkotliar@broadinstitute.org</a>&gt; wrote:<br type="attribution" class=""><blockquote class="gmail_quote" style="margin: 0px 0px 0px 0.8ex; border-left-width: 1px; border-left-color: rgb(204, 204, 204); border-left-style: solid; padding-left: 1ex;"><div dir="ltr" class=""><div class="gmail_default" style="font-family: tahoma, sans-serif; font-size: small;">Hi Jacob,</div><div class="gmail_default" style="font-family: tahoma, sans-serif; font-size: small;"><br class=""></div><div class="gmail_default" style="font-family: tahoma, sans-serif; font-size: small;">Thanks for the response. Since IPython is installed on the EBS volume, it should be accessible by all nodes. The only issue is that the EBS volume needs to be on the python path at the time the plugin execute. I have gotten around this by having a .bashrc file with the lines:</div><div class="gmail_default" style="font-family: tahoma, sans-serif; font-size: small;"><br class=""></div><div class="gmail_default"><div class="gmail_default" style="font-family: tahoma, sans-serif; font-size: small;">export PATH="path_to_EBS_volume/bin/m<wbr class="">iniconda2/bin:$PATH"</div><div class="gmail_default" style="font-family: tahoma, sans-serif; font-size: small;">source activate python2</div><div class="gmail_default" style="font-family: tahoma, sans-serif; font-size: small;"><br class=""></div><div class="gmail_default" style="font-family: tahoma, sans-serif; font-size: small;">that gets copied to the root directory upon startup. However, this .bashrc file is not getting sourced prior to running the ipcluster plugin. I tried to address this by extending the IPCluster class to include the following in the run method:</div><div class="gmail_default" style="font-family: tahoma, sans-serif; font-size: small;"><br class=""></div><div class="gmail_default"><div class="gmail_default" style="font-family: tahoma, sans-serif; font-size: small;">&nbsp; &nbsp;<span class="Apple-converted-space">&nbsp;</span>for node in nodes:</div><div class="gmail_default" style="font-family: tahoma, sans-serif; font-size: small;">&nbsp; &nbsp; &nbsp; &nbsp;<span class="Apple-converted-space">&nbsp;</span>node.ssh.execute("source ~/.bashrc")</div><div class="gmail_default" style="font-family: tahoma, sans-serif; font-size: small;"><br class=""></div><div class="gmail_default" style="font-family: tahoma, sans-serif; font-size: small;">However, I still get the "!!! ERROR - IPython is not installed!" error. If I comment out the call to&nbsp;_check_ipython_installed, it fails further on with ipython not found.</div><div class="gmail_default" style="font-family: tahoma, sans-serif; font-size: small;"><br class=""></div><div class="gmail_default" style="font-family: tahoma, sans-serif; font-size: small;">Thanks,</div><div class="gmail_default" style="font-family: tahoma, sans-serif; font-size: small;">Dylan</div><div class="gmail_default" style="font-family: tahoma, sans-serif; font-size: small;"><br class=""></div><div class="gmail_default" style="font-family: tahoma, sans-serif; font-size: small;"><br class=""></div><div class="gmail_default" style="font-family: tahoma, sans-serif; font-size: small;"><br class=""></div></div></div><div class="gmail_extra"><div class="gmail_quote">On Thu, Dec 1, 2016 at 2:38 PM, Jacob Barhak<span class="Apple-converted-space">&nbsp;</span><span dir="ltr" class="">&lt;<a href="mailto:jacob.barhak@gmail.com" target="_blank" class="">jacob.barhak@gmail.com</a>&gt;</span><span class="Apple-converted-space">&nbsp;</span>wrote:<br class=""><blockquote class="gmail_quote" style="margin: 0px 0px 0px 0.8ex; border-left-width: 1px; border-left-style: solid; border-left-color: rgb(204, 204, 204); padding-left: 1ex;"><p dir="ltr" class="">So Dylan,</p><p dir="ltr" class="">Did you install Ipython on all nodes?<span class="Apple-converted-space">&nbsp;</span></p><p dir="ltr" class="">It is the first thing that comes to mind.<span class="Apple-converted-space">&nbsp;</span></p><p dir="ltr" class="">There are plugins that come with starcluster to install other software through pip.&nbsp; Did you use one of there?</p><p dir="ltr" class="">The third thing at comes to mind is using the Ipython plugin:<span class="Apple-converted-space">&nbsp;</span></p><p dir="ltr" class=""><a href="http://star.mit.edu/cluster/docs/latest/plugins/ipython.html#ipcluster-plugin" target="_blank" class="">http://star.mit.edu/cluster/do<wbr class="">cs/latest/plugins/ipython.html<wbr class="">#ipcluster-plugin</a></p><p dir="ltr" class="">It is hard to fully understand what you do, yet I hope on of these paths will be relevant towards a solution.<span class="Apple-converted-space">&nbsp;</span></p><p dir="ltr" class="">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<span class="Apple-converted-space">&nbsp;</span>Jacob</p><div class="gmail_extra"><br class=""><div class="gmail_quote"><div class=""><div class="m_-5499363289221940182m_2449955862102617883gmail-h5">On Nov 30, 2016 5:06 PM, "Dylan Kotliar" &lt;<a href="mailto:dkotliar@broadinstitute.org" target="_blank" class="">dkotliar@broadinstitute.org</a>&gt; wrote:<br type="attribution" class=""></div></div><blockquote class="gmail_quote" style="margin: 0px 0px 0px 0.8ex; border-left-width: 1px; border-left-style: solid; border-left-color: rgb(204, 204, 204); padding-left: 1ex;"><div class=""><div class="m_-5499363289221940182m_2449955862102617883gmail-h5"><div dir="ltr" class=""><div style="font-family: tahoma, sans-serif; font-size: small;" class=""><p style="margin: 0px 0px 1em; padding: 0px; border: 0px; font-size: 15px; clear: both; color: rgb(36, 39, 41); font-family: arial, 'helvetica neue', helvetica, sans-serif;" class="">Hello all,</p><p style="margin: 0px 0px 1em; padding: 0px; border: 0px; font-size: 15px; clear: both; color: rgb(36, 39, 41); font-family: arial, 'helvetica neue', helvetica, sans-serif;" class="">I am currently using Starcluster by mounting an EBS volume containing much of the software I want to use including python as version controlled by miniconda. I have written a plugin that copies necessary hidden files (e.g. .bashrc) to the home directory so that the environment is configured when I ssh to the master node and the python stored on the EBS volume is used by default.<br class=""></p><p style="margin: 0px 0px 1em; padding: 0px; border: 0px; font-size: 15px; clear: both; color: rgb(36, 39, 41); font-family: arial, 'helvetica neue', helvetica, sans-serif;" class="">Now I would like to use the ipcluster plugin to open ipython notebooks in the cluster. However, I get the error message:</p><p style="margin: 0px 0px 1em; padding: 0px; border: 0px; font-size: 15px; clear: both; color: rgb(36, 39, 41); font-family: arial, 'helvetica neue', helvetica, sans-serif;" class="">Running plugin starcluster.plugins.ipcluster.<wbr class="">IPCluster !!! ERROR - Error occured while running plugin 'starcluster.plugins.ipcluster<wbr class="">.IPCluster': !!! ERROR - IPython is not installed!</p><p style="margin: 0px 0px 1em; padding: 0px; border: 0px; font-size: 15px; clear: both; color: rgb(36, 39, 41); font-family: arial, 'helvetica neue', helvetica, sans-serif;" class="">This must be because the ipcluster plugin is using the default version of python rather than my version controlled version. This is despite the fact that when I ssh to the cluster, the python in the environment is the correct one (the one on the EBS volume). Any suggestions on how to circumvent this?</p><p style="margin: 0px 0px 1em; padding: 0px; border: 0px; font-size: 15px; clear: both; color: rgb(36, 39, 41); font-family: arial, 'helvetica neue', helvetica, sans-serif;" class="">Thanks!</p></div></div><br class=""></div></div>______________________________<wbr class="">_________________<br class="">StarCluster mailing list<br class=""><a href="mailto:StarCluster@mit.edu" target="_blank" class="">StarCluster@mit.edu</a><br class=""><a href="http://mailman.mit.edu/mailman/listinfo/starcluster" rel="noreferrer" target="_blank" class="">http://mailman.mit.edu/mailman<wbr class="">/listinfo/starcluster</a><br class=""><br class=""></blockquote></div></div></blockquote></div><br class=""><br clear="all" class=""><div class=""><br class=""></div>--<span class="Apple-converted-space">&nbsp;</span><br class=""><div class="m_-5499363289221940182m_2449955862102617883gmail_signature"><div dir="ltr" class=""><div class=""><div dir="ltr" class=""><div style="font-size: 12.8px;" class="">Dylan Kotliar,&nbsp;</div><div style="font-size: 12.8px;" class="">Harvard Medical School (HST) / Systems Biology PhD Program<div class="">MD/PhD candidate<div class="">Phone:<span class="Apple-converted-space">&nbsp;</span><a href="tel:(732)%20379-0215" value="+17323790215" target="_blank" class="">732-379-0215</a></div></div></div></div></div></div></div></div></div></blockquote></div></div></div></div></blockquote></div><br class=""><br clear="all" class=""><div class=""><br class=""></div>--<span class="Apple-converted-space">&nbsp;</span><br class=""><div class="gmail_signature" data-smartmail="gmail_signature"><div dir="ltr" class=""><div class=""><div dir="ltr" class=""><div style="font-size: 12.8000001907349px;" class="">Dylan Kotliar,&nbsp;</div><div style="font-size: 12.8000001907349px;" class="">Harvard Medical School (HST) / Systems Biology PhD Program<div class="">MD/PhD candidate<div class="">Phone: 732-379-0215</div></div></div></div></div></div></div></div><span style="font-family: HelveticaNeue; font-size: 12px; font-style: normal; font-variant-caps: normal; font-weight: normal; letter-spacing: normal; orphans: auto; text-align: start; text-indent: 0px; text-transform: none; white-space: normal; widows: auto; word-spacing: 0px; -webkit-text-stroke-width: 0px; float: none; display: inline !important;" class="">_______________________________________________</span><br style="font-family: HelveticaNeue; font-size: 12px; font-style: normal; font-variant-caps: normal; font-weight: normal; letter-spacing: normal; orphans: auto; text-align: start; text-indent: 0px; text-transform: none; white-space: normal; widows: auto; word-spacing: 0px; -webkit-text-stroke-width: 0px;" class=""><span style="font-family: HelveticaNeue; font-size: 12px; font-style: normal; font-variant-caps: normal; font-weight: normal; letter-spacing: normal; orphans: auto; text-align: start; text-indent: 0px; text-transform: none; white-space: normal; widows: auto; word-spacing: 0px; -webkit-text-stroke-width: 0px; float: none; display: inline !important;" class="">StarCluster mailing list</span><br style="font-family: HelveticaNeue; font-size: 12px; font-style: normal; font-variant-caps: normal; font-weight: normal; letter-spacing: normal; orphans: auto; text-align: start; text-indent: 0px; text-transform: none; white-space: normal; widows: auto; word-spacing: 0px; -webkit-text-stroke-width: 0px;" class=""><a href="mailto:StarCluster@mit.edu" style="font-family: HelveticaNeue; font-size: 12px; font-style: normal; font-variant-caps: normal; font-weight: normal; letter-spacing: normal; orphans: auto; text-align: start; text-indent: 0px; text-transform: none; white-space: normal; widows: auto; word-spacing: 0px; -webkit-text-size-adjust: auto; -webkit-text-stroke-width: 0px;" class="">StarCluster@mit.edu</a><br style="font-family: HelveticaNeue; font-size: 12px; font-style: normal; font-variant-caps: normal; font-weight: normal; letter-spacing: normal; orphans: auto; text-align: start; text-indent: 0px; text-transform: none; white-space: normal; widows: auto; word-spacing: 0px; -webkit-text-stroke-width: 0px;" class=""><a href="http://mailman.mit.edu/mailman/listinfo/starcluster" style="font-family: HelveticaNeue; font-size: 12px; font-style: normal; font-variant-caps: normal; font-weight: normal; letter-spacing: normal; orphans: auto; text-align: start; text-indent: 0px; text-transform: none; white-space: normal; widows: auto; word-spacing: 0px; -webkit-text-size-adjust: auto; -webkit-text-stroke-width: 0px;" class="">http://mailman.mit.edu/mailman/listinfo/starcluster</a></div></blockquote></div><br class=""></div></body></html>