GithubHelp home page GithubHelp logo

Comments (5)

embray avatar embray commented on June 16, 2024

I've seen this before. This is caused by an upstream bug in setuptools. You should upgrade your setuptools version to the most recent--0.6c11 is very old.

from pyfits.

dkirkby avatar dkirkby commented on June 16, 2024

I have updated to the latest setuptools 1.4.2 and still see the same problem using either the --prefix or --user options, e.g.:

$ easy_install --user pyfits
Searching for pyfits
Reading https://pypi.python.org/simple/pyfits/
Best match: pyfits 3.2
Downloading https://pypi.python.org/packages/source/p/pyfits/pyfits-3.2.tar.gz#md5=23fe76429fcd229f0abbd21535d1c41a
Processing pyfits-3.2.tar.gz
Writing /tmp/easy_install-di4fNj/pyfits-3.2/setup.cfg
Running pyfits-3.2/setup.py -q bdist_egg --dist-dir /tmp/easy_install-di4fNj/pyfits-3.2/egg-dist-tmp-kjgxgx
error: SandboxViolation: open('./test-easy-install-34053.write-test', 'w') {}

The package setup script has attempted to modify files on your system
that are not within the EasyInstall build area, and has been aborted.

This package cannot be safely installed by EasyInstall, and may not
support alternate installation locations even if you run its setup
script by hand.  Please inform the package's author and the EasyInstall
maintainers to find out if a fix or workaround is available.

from pyfits.

embray avatar embray commented on June 16, 2024

What does python -c 'import site; site._script()' output?

from pyfits.

dkirkby avatar dkirkby commented on June 16, 2024
sys.path = [
    '',
    '/data/users/dkirkby/.local/lib/python2.7/site-packages/setuptools-1.4.1-py2.7.egg',
    '/data/apps/python/2.7.2/lib/python2.7/site-packages/PyYAML-3.10-py2.7-linux-x86_64.egg',
    '/data/apps/python/2.7.2/lib/python2.7/site-packages/pysam-0.6-py2.7-linux-x86_64.egg',
    '/data/apps/python/2.7.2/lib/python2.7/site-packages/Cython-0.17-py2.7-linux-x86_64.egg',
    '/data/apps/python/2.7.2/lib/python2.7/site-packages/screed-0.7-py2.7.egg',
    '/data/apps/python/2.7.2/lib/python2.7/site-packages/khmer-0.4-py2.7-linux-x86_64.egg',
    '/data/apps/python/2.7.2/lib/python2.7/site-packages/nose-1.3.0-py2.7.egg',
    '/data/apps/python/2.7.2/lib/python2.7/site-packages/pyDNase-0.1.0-py2.7-linux-x86_64.egg',
    '/data/apps/python/2.7.2/lib/python2.7/site-packages/clint-0.3.0p-py2.7.egg',
    '/data/apps/python/2.7.2/lib/python2.7/site-packages/matplotlib-1.3.1-py2.7-linux-x86_64.egg',
    '/data/apps/python/2.7.2/lib/python2.7/site-packages/pyparsing-2.0.1-py2.7.egg',
    '/data/apps/python/2.7.2/lib/python2.7/site-packages/tornado-3.1.1-py2.7.egg',
    '/data/apps/python/2.7.2/lib/python2.7/site-packages/python_dateutil-2.1-py2.7.egg',
    '/data/apps/python/2.7.2/lib/python2.7/site-packages/six-1.4.1-py2.7.egg',
    '/data/apps/python/2.7.2/lib/python2.7/site-packages/HTSeq-0.5.4p5-py2.7-linux-x86_64.egg',
    '/data/apps/python/2.7.2/lib/python2.7/site-packages/setuptools-1.4.2-py2.7.egg',
    '/data/apps/python/2.7.2',
    '/data/apps/python/2.7.2/lib/python2.7',
    '/data/users/dkirkby/local/lib/python2.7/site-packages',
    '/data/apps/python/2.7.2/lib/python27.zip',
    '/data/apps/python/2.7.2/lib/python2.7/plat-linux2',
    '/data/apps/python/2.7.2/lib/python2.7/lib-tk',
    '/data/apps/python/2.7.2/lib/python2.7/lib-old',
    '/data/apps/python/2.7.2/lib/python2.7/lib-dynload',
    '/data/users/dkirkby/.local/lib/python2.7/site-packages',
    '/data/apps/python/2.7.2/lib/python2.7/site-packages',
]
USER_BASE: '/data/users/dkirkby/.local' (exists)
USER_SITE: '/data/users/dkirkby/.local/lib/python2.7/site-packages' (exists)
ENABLE_USER_SITE: True

from pyfits.

tedgoddard avatar tedgoddard commented on June 16, 2024

First running

python distribute_setup.py --user

in the pyfits-3.2.2 directory allowed the install to proceed for me.

from pyfits.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.