Path: csiph.com!feeder.erje.net!1.eu.feeder.erje.net!newsfeed.kamp.net!newsfeed.kamp.net!fu-berlin.de!uni-berlin.de!not-for-mail From: William Ray Wing Newsgroups: comp.lang.python Subject: Re: imshow keeps crashhing Date: Wed, 06 Jan 2016 18:37:58 -0500 Lines: 50 Message-ID: References: Mime-Version: 1.0 (Mac OS X Mail 9.1 \(3096.5\)) Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable X-Trace: news.uni-berlin.de 8n7rBbTz9314/nPqIoFLewdpaPouSpTMSgWNy1MeN6ew== Return-Path: X-Original-To: python-list@python.org Delivered-To: python-list@mail.python.org X-Spam-Status: OK 0.007 X-Spam-Evidence: '*H*': 0.99; '*S*': 0.00; 'debug': 0.04; 'root': 0.04; 'defaults': 0.05; 'scipy': 0.05; 'permissions': 0.07; 'skip:/ 10': 0.07; '986': 0.09; 'jan': 0.11; 'suggest': 0.15; '(system': 0.16; 'echo': 0.16; 'help?': 0.16; 'i\xe2\x80\x99d': 0.16; 'received:10.0.1.5': 0.16; 'received:io': 0.16; 'received:psf.io': 0.16; 'sip': 0.16; 'typo': 0.16; 'wrote:': 0.16; 'received:10.0.1': 0.18; 'tree': 0.18; 'tests': 0.18; 'cc:2**0': 0.20; 'first,': 0.20; 'assuming': 0.22; 'names.': 0.22; 'cc:no real name:2**0': 0.22; 'originally': 0.23; 'cc:addr:gmail.com': 0.24; 'command': 0.26; 'received:17': 0.27; 'var': 0.27; 'correct': 0.28; '(my': 0.29; 'there.': 0.30; "i'm": 0.30; 'url:mailman': 0.30; 'folder': 0.30; 'run': 0.33; 'point': 0.33; 'url:python': 0.33; 'jump': 0.33; 'skip:/ 20': 0.33; 'open': 0.33; 'url:listinfo': 0.34; '(for': 0.34; 'case,': 0.34; 'file': 0.34; 'received:10.0': 0.34; 'running': 0.34; 'attempt': 0.35; 'there': 0.36; 'url:org': 0.36; 'created': 0.36; 'to:addr:python- list': 0.36; 'pm,': 0.36; 'subject:: ': 0.37; 'received:10': 0.37; 'really': 0.37; 'turn': 0.37; 'thanks': 0.37; 'turned': 0.38; 'files': 0.38; 'mean': 0.38; 'does': 0.39; 'url:mail': 0.40; 'to:addr:python.org': 0.40; 'some': 0.40; 'header:MIME-version:1': 0.60; 'your': 0.60; 'email addr:gmail.com': 0.62; 'yes': 0.62; 'making': 0.62; 'different': 0.63; 'information': 0.63; 'within': 0.64; 'you.': 0.64; 'cut': 0.67; 'integrity': 0.76; 'header:In- reply-to:1': 0.84; 'reply!': 0.84; 'to:name:python': 0.84; 'wheel': 0.84; 'do:': 0.91; 'navigate': 0.91 X-Proofpoint-Virus-Version: vendor=fsecure engine=2.50.10432:,, definitions=2016-01-06_14:,, signatures=0 X-Proofpoint-Spam-Details: rule=notspam policy=default score=0 spamscore=0 clxscore=1011 suspectscore=0 malwarescore=0 phishscore=0 adultscore=0 bulkscore=0 classifier=spam adjust=0 reason=mlx scancount=1 engine=8.0.1-1510270003 definitions=main-1601060434 In-reply-to: X-Mailer: Apple Mail (2.3096.5) X-BeenThere: python-list@python.org X-Mailman-Version: 2.1.20+ Precedence: list List-Id: General discussion list for the Python programming language List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Xref: csiph.com comp.lang.python:101312 > On Jan 6, 2016, at 6:10 PM, darren.mcaffee@gmail.com wrote: >=20 > Thanks for the quick reply!=20 >=20 > So scipy is making temporary files in /private/vars/folders/w4// Is this a typo or did you really mean /private/vars? That is, did your = create a =E2=80=9Cvars=E2=80=9D directory under /private at some point = in the past (pre-Yosemite)? The usual directory there would be /var In any case, the whole /private directory tree is now part of the SIP = (System Integrity Protection) system under Yosemite, and to open and = manipulate files there you will have to either turn SIP off or jump = through hoops. If you do a ls -al in /private, you will see that var is drwxr-xr-x 29 root wheel 986 Oct 23 11:20 var note the =E2=80=9Croot=E2=80=9D and =E2=80=9Cwheel=E2=80=9D owner and = group names. I=E2=80=99d suggest moving your tests to a different = directory that isn=E2=80=99t part of SIP, and debug there. If you MUST = work under /private, you will have your work cut out for you. -Bill >=20 > 1. When in the correct folder within Terminal, on the command line I = can do:=20 > open =20 > And it will open it in Preivew. >=20 > 2. However, when opening Preview first, it is impossible (for me) to = navigate to the /private directory to open the file that way, even with:=20= > defaults write com.apple.Finder AppleShowAllFiles YES > turned on. >=20 > 3. When I run imshow() (my attempt to 'launch Preview from scipy as = you suggested). The UID of the process is 501, which is the same as when = I do echo $UID. So I'm assuming the launched Preview is running as = myself. >=20 > 4. When the temporary file is originally created its permissions are = -rw------ >=20 > Does any of that information help? Thanks again. > --=20 > https://mail.python.org/mailman/listinfo/python-list