[TIP] Tox package install failure after update to Python 3.2b1

skip at pobox.com skip at pobox.com
Tue Dec 7 03:12:02 PST 2010


    >>    error: Setup script exited with error: SandboxViolation: open('/Users/skip/local/lib/python3.2/lib2to3/Grammar3.2.0.alpha.4.pickle', 'wb') {}

    Kumar> Does your setup.py script have a lot of custom code that would
    Kumar> open a file like this?  If not, you may want to see if 3.2beta
    Kumar> introduced a bug with distribute (that's where the easy_install
    Kumar> code runs from).

Nothing on my end.  There is evidence that the 3.2 install process does
generate these files:

    clean: pycremoval
            ...
            -rm -f Lib/lib2to3/*Grammar*.pickle

Why this one pickle file wasn't properly installed originally I don't know,
but it was installed on the second go-round:

    % cd ~/local/lib/python3.2/lib2to3
    % ls -l Grammar*
    -rw-r--r--  1 skip  staff   6548 Dec  6 19:20 Grammar.txt
    -rw-r--r--  1 skip  staff  20865 Jan 13  2010 Grammar3.2.0.alpha.0.pickle
    -rw-r--r--  1 skip  staff  20880 Dec  6 18:54 Grammar3.2.0.alpha.3.pickle
    -rw-rw-r--  1 skip  staff  20880 Dec  6 19:22 Grammar3.2.0.alpha.4.pickle
    -rw-rw-r--  1 skip  staff  20880 Dec  6 19:20 Grammar3.2.0.beta.1.pickle

I'll just chalk it up to experience.  If I see it happen again when beta 2
is released I'll open a case.

Skip



More information about the testing-in-python mailing list