I'm trying to install JupiterHub for the first time on my school's CentOS 6.6 cluster and I'm running into problems when I run "pip install . ". My environment is somewhat complex due to the cluster having a module system setup. I have created a python virtual environment where I installed ipython 3.2 and the dependencies in "requirements.txt" successfully. I also have node0.12.6 and npm2.11.2 binaries in my PATH, which was done by loading our "node" module. But when I run "pip install ." in the jupyterhub folder, I get the following errors:
Exception:
Traceback (most recent call last):
File "/home/mkg52/.conda/envs/jupyter/lib/python3.4/site-packages/pip/basecommand.py", line 223, in main
status = self.run(options, args)
File "/home/mkg52/.conda/envs/jupyter/lib/python3.4/site-packages/pip/commands/install.py", line 282, in run
requirement_set.prepare_files(finder)
File "/home/mkg52/.conda/envs/jupyter/lib/python3.4/site-packages/pip/req/req_set.py", line 334, in prepare_files
functools.partial(self._prepare_file, finder))
File "/home/mkg52/.conda/envs/jupyter/lib/python3.4/site-packages/pip/req/req_set.py", line 321, in _walk_req_to_install
more_reqs = handler(req_to_install)
File "/home/mkg52/.conda/envs/jupyter/lib/python3.4/site-packages/pip/req/req_set.py", line 491, in _prepare_file
session=self.session)
File "/home/mkg52/.conda/envs/jupyter/lib/python3.4/site-packages/pip/download.py", line 814, in unpack_url
unpack_file_url(link, location, download_dir)
File "/home/mkg52/.conda/envs/jupyter/lib/python3.4/site-packages/pip/download.py", line 699, in unpack_file_url
shutil.copytree(link_path, location, symlinks=True)
File "/home/mkg52/.conda/envs/jupyter/lib/python3.4/shutil.py", line 343, in copytree
raise Error(errors)
shutil.Error: [('/scratch/mkg52/_MONSOON_SOFTWARE/Jupyter/jupyterhub/.git/objects/pack/pack-394d2b981c172bce5c3140038765705ca8349ec4.idx', '/tmp/pip-nnhtq5eq-build/.git/objects/pack/pack-394d2b981c172bce5c3140038765705ca8349ec4.idx', "[Errno 13] Permission denied: '/tmp/pip-nnhtq5eq-build/.git/objects/pack/pack-394d2b981c172bce5c3140038765705ca8349ec4.idx'"), ('/scratch/mkg52/_MONSOON_SOFTWARE/Jupyter/jupyterhub/.git/objects/pack/pack-394d2b981c172bce5c3140038765705ca8349ec4.pack', '/tmp/pip-nnhtq5eq-build/.git/objects/pack/pack-394d2b981c172bce5c3140038765705ca8349ec4.pack', "[Errno 13] Permission denied: '/tmp/pip-nnhtq5eq-build/.git/objects/pack/pack-394d2b981c172bce5c3140038765705ca8349ec4.pack'")]
I'm at a complete loss as to why this is happening. I checked that my versions of python and pip and they are both python3. The interesting thing is I was able to successfully install jupyterhub in a test virtual machine that doesn't use a module system, so I'm wondering if this is the problem.
Something else to note is that I downloaded the node source and built it with configure, make, make install. I wasn't able to use yum to install nodejs-legacy due to a lack of root privileges.