<html><head></head><body><div style="font-family: Verdana;font-size: 12.0px;"><div>
<div>Dear Luigi,</div>

<div> </div>

<div>thank you for your help! It worked fine and I got yt to work!</div>

<div> </div>

<div>Looking at your solution I thought it might be easy to include a switch at the beginning of the install script and maybe download the yt-folders with hg at the beginning (from the local machine). In the lines with the actual hg command one would then need a simple copy command to the src/yt-* folders (on the remote machine). With this modification it should also work without sshfs and the script would run without crashing. I will try to modify the script accordingly and keep you updated.</div>

<div>
<div> </div>

<div>Thanks and best regards,</div>

<div>Philipp</div>

<div> </div>

<div name="quote" style="margin:10px 5px 5px 10px; padding: 10px 0 10px 10px; border-left:2px solid #C3D9E5; word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space;">
<div style="margin:0 0 10px 0;"><b>Gesendet:</b> Montag, 03. Februar 2014 um 15:50 Uhr<br/>
<b>Von:</b> "Luigi Iapichino" <luigi@uni-heidelberg.de><br/>
<b>An:</b> "Discussion of the yt analysis package" <yt-users@lists.spacepope.org><br/>
<b>Betreff:</b> Re: [yt-users] installing YT without internet connection</div>

<div name="quoted-content">Dear Philipp, dear yt users,<br/>
<br/>
I attach to this email the modified version of my install script, used to<br/>
install yt 2.6 on a machine without internet access. The procedure for the<br/>
installation is also attached as a separate txt file, but I copy it below, for<br/>
sake of simplicity, in case of later discussion.<br/>
<br/>
As I wrote a few hours ago, this is not straightforward, but it works for me,<br/>
and I haven't come to any better solution. If anyone else has better<br/>
suggestions, I would be glad to hear from them.<br/>
<br/>
Cheers,<br/>
<br/>
Luigi<br/>
<br/>
---<br/>
<br/>
Here I describe the installation of yt 2.6. For other versions, please check<br/>
the version numbers of the software that I mention below.<br/>
<br/>
Let's start with a bit of syntax:<br/>
<br/>
<remote-machine>: the remote machine without Internet access (a high-<br/>
performance supercomputer, most of the times);<br/>
<remote-username>: your username on that machine;<br/>
<remote-directory>: a directory containing the yt source, in the remote<br/>
machine (create it, if not already existing);<br/>
<local-machine>: a PC with Internet access (your local PC, for example)<br/>
<local-directory>: on your local machine, this is an initially empty directory<br/>
where you will mount the content of <remote-directory>.<br/>
<br/>
Moreover, every command given below will be preceded by <remote-machine> or<br/>
<local-machine>, indicating on which machine it should be executed.<br/>
<br/>
First of all, in order to install yt, or to update it by using Mercurial on a<br/>
machine with no Internet access, you have to remotely mount the source<br/>
directory in your local PC.<br/>
So, in order to remotely mount <remote-directory> on <local-machine>, the<br/>
command is:<br/>
<br/>
(<local-machine>) sshfs -o workaround=rename <remote-username>@<remote-<br/>
machine>:<remote-directory> <local-directory><br/>
<br/>
After this command, on <local-directory> you will find the content of <remote-<br/>
directory>. After working with it, you can unmount with<br/>
<br/>
(<local-machine>) fusermount -u <local-directory><br/>
<br/>
Beware: both sshfs and fusermount have to be installed on <local-machine>, and<br/>
in order to use them you should be inserted in some special user group (I<br/>
don't remember which one exactly, but if you ask your local administrator it<br/>
will be fixed for you).<br/>
<br/>
Now, the yt part: I attach here a modified install script. The most outstanding<br/>
changes with respect to the standard script are:<br/>
<br/>
- two paths for DEST_DIR, one for <local-machine> and one for <remote-<br/>
machine>. You must switch between the two of them, because the script will be<br/>
executed partly on <local-machine>, and partly on <remote-machine>.<br/>
<br/>
- INST_HG=0 : you don't need Mercurial on <remote-machine>, but you have it<br/>
already on <local-machine>. Beware: it's somehow funny, but although you don't<br/>
need hg on <remote-machine>, it should be installed there. If not, please<br/>
substite the lines 803-810 with the following ones:<br/>
<br/>
# We assume that hg can be found in the path.<br/>
# if type -P hg &>/dev/null<br/>
# then<br/>
export HG_EXEC=hg<br/>
# else<br/>
# echo "Cannot find mercurial. Please set INST_HG=1."<br/>
# do_exit<br/>
# fi<br/>
<br/>
which simply disable a check that would raise an error.<br/>
<br/>
- Comment the installation of pip (l. 844-845: it does not work on SuperMUC,<br/>
with this installation procedure)<br/>
<br/>
- Installation of distribute: before starting the script, uncomment the lines<br/>
841-842. After the install script reaches that point, comment them again.<br/>
<br/>
- l. 882 to 885: I moved there the installation of some required software, not<br/>
included in the initial download step.<br/>
<br/>
Here is finally the installation procedure:<br/>
<br/>
1) (<local-machine>) Perform the remote mount, as described above.<br/>
<br/>
2) (<local-machine>) Create a directory called yt-... and copy there the<br/>
modified installation script. Make the script executable.<br/>
<br/>
3) (<local-machine>) Execute the script, up to the point where the sources are<br/>
downloaded. The file distribute-0.6.32.tar.gz is not taken together with the<br/>
other ones, It must be added to src manually (important!). Moreover, you need<br/>
two additional source files copied in src: pyparsing-1.5.6.tar.gz and python-<br/>
dateutil-1.5.tar.gz (look for them on the Web).<br/>
<br/>
4) (<remote-machine>) Execute again the install script, which now compiles the<br/>
tools until Python and then fails.<br/>
<br/>
5) (<local-machine>) For going on, the script executes the hg-related commands<br/>
for the yt source. After this part it crashes, and I go again to <remote-<br/>
machine>.<br/>
<br/>
6) (<remote-machine>) It will try to update yt from here, failing. Stop again<br/>
and do it from <local-machine>, then go back to (<remote-machine>).<br/>
<br/>
7) (<remote-machine>) Go on with the script, which (hopefully!) now proceeds<br/>
to the end without further problems.<br/>
<br/>
---<br/>
<br/>
On Monday 03 February 2014 09:27:31 Luigi Iapichino wrote:<br/>
> Hi Philipp,<br/>
><br/>
> I did exactly what you are looking for, on SuperMUC in Garching. I will send<br/>
> my modified version of the install script, with instructions for the<br/>
> installation, in the course of the day. It's a rather cumbersome procedure<br/>
> so, if anyone else has met and solved the same problem, please join the<br/>
> discussion, so that we can compare and improve together.<br/>
><br/>
> Cheers,<br/>
><br/>
> Luigi<br/>
><br/>
> On Monday 03 February 2014 08:47:12 Philipp Girichidis wrote:<br/>
> > Dear YT users,<br/>
> ><br/>
> > I have a problem during the installation of yt. On the supercomputer,<br/>
> > where<br/>
> > all our simulations are stored, we do not have internet connection because<br/>
> > of 'security reasons'. So, I tried to download the data on another<br/>
> > machine,<br/>
> > then copy the files to this supercomputer and tried to install everything<br/>
> > from the packages. But there are quite a few other points in the install<br/>
> > script, where the setup process needs access to the internet. I also tried<br/>
> > to set up a virtual machine with a linux system similar to the one in the<br/>
> > computing center, but no success. Did anyone run into a similar problem<br/>
> > and<br/>
> > got a solution or has a guess how to first download everything and then<br/>
> > installing yt without further internet connection?<br/>
> > Best regards,<br/>
> > Philipp<br/>
<br/>
--<br/>
<br/>
---------------------------------------------------------------<br/>
<br/>
Luigi Iapichino<br/>
Universität Heidelberg, Zentrum für Astronomie<br/>
Institut für Theoretische Astrophysik<br/>
Philosophenweg 12, D-69120 Heidelberg, Germany<br/>
Tel: +49 6221 548983, Fax: +49 6221 544221<br/>
e-mail: luigi@uni-heidelberg.de<br/>
URL: <a href="http://www.ita.uni-heidelberg.de/~luigi/" target="_blank">http://www.ita.uni-heidelberg.de/~luigi/</a><br/>
_______________________________________________<br/>
yt-users mailing list<br/>
yt-users@lists.spacepope.org<br/>
<a href="http://lists.spacepope.org/listinfo.cgi/yt-users-spacepope.org" target="_blank">http://lists.spacepope.org/listinfo.cgi/yt-users-spacepope.org</a></div>
</div>
</div>
</div></div></body></html>