Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > comp.lang.python > #101312

Re: imshow keeps crashhing

From William Ray Wing <wrw@mac.com>
Newsgroups comp.lang.python
Subject Re: imshow keeps crashhing
Date 2016-01-06 18:37 -0500
Message-ID <mailman.34.1452123490.2305.python-list@python.org> (permalink)
References <a7993a64-837e-4062-a856-d40acc35f208@googlegroups.com> <n5c7og$18a$1@reader1.panix.com> <eefe98a3-9e49-468f-b57f-cf4ad6bb981d@googlegroups.com> <n6k58h$2s7$1@reader1.panix.com> <a23096d2-7144-4736-9546-8cd863c26dfe@googlegroups.com>

Show all headers | View raw


> On Jan 6, 2016, at 6:10 PM, darren.mcaffee@gmail.com wrote:
> 
> Thanks for the quick reply! 
> 
> So scipy is making temporary files in /private/vars/folders/w4/<long dir name>/

Is this a typo or did you really mean /private/vars?  That is, did your create a “vars” 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 “root” and “wheel” owner and group names. I’d suggest moving your tests to a different directory that isn’t part of SIP, and debug there. If you MUST work under /private, you will have your work cut out for you.

-Bill

> 
> 1. When in the correct folder within Terminal, on the command line I can do: 
>    open <filename> 
> And it will open it in Preivew.
> 
> 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: 
>    defaults write com.apple.Finder AppleShowAllFiles YES
> turned on.
> 
> 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.
> 
> 4. When the temporary file is originally created its permissions are -rw------
> 
> Does any of that information help? Thanks again.
> -- 
> https://mail.python.org/mailman/listinfo/python-list

Back to comp.lang.python | Previous | NextPrevious in thread | Next in thread | Find similar | Unroll thread


Thread

imshow keeps crashhing norouzey@gmail.com - 2015-12-22 11:06 -0800
  Re: imshow keeps crashhing John Gordon <gordon@panix.com> - 2015-12-22 19:19 +0000
    Re: imshow keeps crashhing darren.mcaffee@gmail.com - 2016-01-06 14:20 -0800
      Re: imshow keeps crashhing John Gordon <gordon@panix.com> - 2016-01-06 22:42 +0000
        Re: imshow keeps crashhing darren.mcaffee@gmail.com - 2016-01-06 15:10 -0800
          Re: imshow keeps crashhing John Gordon <gordon@panix.com> - 2016-01-06 23:26 +0000
            Re: imshow keeps crashhing Random832 <random832@fastmail.com> - 2016-01-07 11:45 -0500
          Re: imshow keeps crashhing William Ray Wing <wrw@mac.com> - 2016-01-06 18:37 -0500
            Re: imshow keeps crashhing darren.mcaffee@gmail.com - 2016-01-06 15:52 -0800
              Re: imshow keeps crashhing darren.mcaffee@gmail.com - 2016-01-06 17:13 -0800
            Re: imshow keeps crashhing darren.mcaffee@gmail.com - 2016-01-07 08:23 -0800
          Re: imshow keeps crashhing Random832 <random832@fastmail.com> - 2016-01-07 11:49 -0500

csiph-web