Hello again,

I am facing an issue when installing setuptools-23.1.0 as part of  
Python-3.5.2-foss-2016b.eb. It fails with a permission denied despite it has 
full write permissions on the installation path:

creating build/bdist.linux-x86_64/egg/EGG-INFO
copying setuptools.egg-info/PKG-INFO -> build/bdist.linux-x86_64/egg/EGG-INFO
copying setuptools.egg-info/SOURCES.txt -> build/bdist.linux-x86_64/egg/EGG-INFO
copying setuptools.egg-info/dependency_links.txt -> 
build/bdist.linux-x86_64/egg/EGG-INFO
copying setuptools.egg-info/entry_points.txt -> 
build/bdist.linux-x86_64/egg/EGG-INFO
copying setuptools.egg-info/requires.txt -> 
build/bdist.linux-x86_64/egg/EGG-INFO
copying setuptools.egg-info/top_level.txt -> 
build/bdist.linux-x86_64/egg/EGG-INFO
copying setuptools.egg-info/zip-safe -> build/bdist.linux-x86_64/egg/EGG-INFO
creating dist
creating 'dist/setuptools-23.1.0-py3.5.egg' and adding 
'build/bdist.linux-x86_64/egg' to it
removing 'build/bdist.linux-x86_64/egg' (and everything under it)
Creating 
/gpfs22/easybuild/centos6/software/MPI/GCC/5.4.0-2.26/OpenMPI/1.10.3/Python/3.5.2/lib/python3.5/site-packages/site.py
Processing setuptools-23.1.0-py3.5.egg
Copying setuptools-23.1.0-py3.5.egg to 
/gpfs22/easybuild/centos6/software/MPI/GCC/5.4.0-2.26/OpenMPI/1.10.3/Python/3.5.2/lib/python3.5/site-packages
error: [Errno 13] Permission denied: 
'/gpfs22/easybuild/centos6/software/MPI/GCC/5.4.0-2.26/OpenMPI/1.10.3/Python/3.5.2/lib/python3.5/site-packages/setuptools-23.1.0-py3.5.egg'
(at 
easybuild/software/Core/EasyBuild/3.1.2/lib/python2.7/site-packages/easybuild_framework-3.1.2-py2.7.egg/easybuild/tools/run.py:449
 in parse_cmd_output)
== 2017-05-10 11:58:07,532 easyblock.py:2518 WARNING build failed (first 300 
chars): cmd " 
/opt/easybuild/software/MPI/GCC/5.4.0-2.26/OpenMPI/1.10.3/Python/3.5.2/bin/python
 setup.py install 
--prefix=/opt/easybuild/software/MPI/GCC/5.4.0-2.26/OpenMPI/1.10.3/Python/3.5.2 
" exited with exitcode 1 and output:
running install
running bdist_egg
running egg_info
writing top-level names to
== 2017-05-10 11:58:07,532 easyblock.py:276 INFO Closing log for application 
name Python version 3.5.2


According to the setuptools documentation this error can also occur when a 
previous version of setuptools is installed and the egg ant pth files are not 
deleted before installing the new version. I checked by installing a bare 
version of the same Python and, although it has setuptools-20.10.1 installed, 
none of the conflicting files mentioned in the documentation are present:

$ find . -name sys.path
$ find . -name setuptools*
./lib/python3.5/ensurepip/_bundled/setuptools-20.10.1-py2.py3-none-any.whl
./lib/python3.5/site-packages/pip/utils/setuptools_build.py
./lib/python3.5/site-packages/pip/utils/__pycache__/setuptools_build.cpython-35.pyc
./lib/python3.5/site-packages/setuptools
./lib/python3.5/site-packages/setuptools-20.10.1.dist-info


Anybody has encoutered this issue before?

Thanks!

--
Davide Vanzo, PhD
Application Developer
Adjunct Assistant Professor of Chemical and Biomolecular Engineering
Advanced Computing Center for Research and Education (ACCRE)
Vanderbilt University - Hill Center 201
(615)-875-9137
www.accre.vanderbilt.edu

Reply via email to