Author Topic: Can't install PI updates MAC  (Read 11453 times)

Offline mgarsal

  • Newcomer
  • Posts: 9
Can't install PI updates MAC
« on: 2015 April 17 17:22:25 »
Hello, initially posted this in the general forums w/o much luck, hope to have better luck here:

I'm having trouble installing PI updates.... it goes through all the steps (pls see below), but at the end I get the "Unable to Install updates: Can't find required component(s)".  I checked the security settings and I have "Allow apps downloaded from" as "Anywhere"...any tips appreciated.

OS X Yosemite, 10.10.3. i5, 12 GB RAM (64 bits PI version).  Had the same issue before upgrading to this OS X version.

I've read prior similar posts for windows OS about checking the temp directory is set to the proper security settings, but don;t know where this is in a MAC...if applicable.

The home path directory has no spaces,  pwd reports:
/Users/PULGAMAC1

thanks
Miguel G.

select and download updates (all checked green)
packages downloaded . 19 successful, 0 failed
update packages have been scheduled for installation, do you want...?, yes (restart pixinsight is checked).
Upon closing PI I get "Unable to Install updates: Can't find required component(s)"
« Last Edit: 2015 April 17 20:45:22 by mgarsal »

Offline Juan Conejero

  • PTeam Member
  • PixInsight Jedi Grand Master
  • ********
  • Posts: 7111
    • http://pixinsight.com/
Re: Can't install PI updates MAC
« Reply #1 on: 2015 April 18 08:40:21 »
Hi Miguel,

This is a permissions issue. The update system needs to copy some working files to the "downloads directory" currently defined in the application preferences. Admittedly, "can't find required components" isn't the most useful error message in this case. You (that is, the user you're running PixInsight as) don't have write permissions on that directory, or OS X is messing with the required files in some "intelligent" way.

By default, the downloads directory is /tmp. You can either grant write permissions to yourself on /tmp (which customarily should be enabled by default on a typical UNIX system), or select a different directory where you have full read/write access. You can change the downloads directory as follows:

- Select EDIT > Global Preferences from the main menu.

- On the Preferences window, select the Directories and Network item on the left panel.

- On the Downloads directory section of the right panel, click Select directory. Typically, you may want to choose a folder under your home directory, where you normally should have full read/write permissions (fingers crossed, as we have seen all kinds of odd permissions problems on OS X).

I'm going to write a new FAQ entry with this. Let me know if this solves the problem.
Juan Conejero
PixInsight Development Team
http://pixinsight.com/

Offline pfile

  • PTeam Member
  • PixInsight Jedi Grand Master
  • ********
  • Posts: 4729
Re: Can't install PI updates MAC
« Reply #2 on: 2015 April 18 09:37:56 »
this may simply mean that the user account is not also an administrator account?

rob

Offline Juan Conejero

  • PTeam Member
  • PixInsight Jedi Grand Master
  • ********
  • Posts: 7111
    • http://pixinsight.com/
Re: Can't install PI updates MAC
« Reply #3 on: 2015 April 18 10:44:26 »
Applications launched by regular users should have read/write access to /tmp IMO. This happens on all Linux distributions and FreeBSD versions I've seen so far, but apparently OS X does not always follow this rule.

In a future version, PI will use a different directory for temporary storage by default on OS X. The most logical choice seems to be calling NSTemporaryDirectory() to acquire the tmp folder for the current user, if it is defined, or creating a custom ~/tmp folder if the user has write access to his/her own home folder (which, oddly, is not always true on OS X!).
Juan Conejero
PixInsight Development Team
http://pixinsight.com/

Offline pfile

  • PTeam Member
  • PixInsight Jedi Grand Master
  • ********
  • Posts: 4729
Re: Can't install PI updates MAC
« Reply #4 on: 2015 April 18 14:10:22 »
yeah - i think you are right. this is what i see, on 10.8 anyway.

Code: [Select]
light-n-airy2:~ pfile$ ls -ltd /tmp
lrwxr-xr-x@ 1 root  wheel  11 May 27  2013 /tmp -> private/tmp
light-n-airy2:~ pfile$ ls -ltd /private/tmp
drwxrwxrwt  33 root  wheel  1122 Apr 18 08:14 /private/tmp
light-n-airy2:~ pfile$ groups pfile
staff admin … <other stuff>

i am not sure if the symlink not being writable by group or world is relevant, probably not though. the @ does indicate some extended ACLs that are not shown by ls, so that could be a factor as well.

rob

Offline mgarsal

  • Newcomer
  • Posts: 9
Re: Can't install PI updates MAC
« Reply #5 on: 2015 April 19 10:54:15 »
Juan thanks for the reply, tried the recommended changes to a folder in my user's directory but still does not work ( my user is the admin user).

I made sure I applied the settings and came back to check, enclosed screenshots.

Also tried manually changing the directory settings to read/write for all users (my user already had read/write)... still does not work, same error message. "Unable to Install updates: Can't find required component(s)"

Offline mgarsal

  • Newcomer
  • Posts: 9
Re: Can't install PI updates MAC
« Reply #6 on: 2015 April 21 16:10:35 »
?...pls help.

Offline NGC7789

  • PixInsight Old Hand
  • ****
  • Posts: 391
Re: Can't install PI updates MAC
« Reply #7 on: 2015 April 21 17:01:55 »
Is the Pixinsight64-update folder inside the pitemp folder that you are showing the get info box? I think you need to cascade your settings. You can see the crossed out circle icon on the updater3 file which indicates you don't have privileges on that file. In the Get Info box click the lock icon to unlock the permission section and then select the gear icon at the bottom and choose Apply to Enclosed Items... and see if that fixes the problem.

Offline mgarsal

  • Newcomer
  • Posts: 9
Re: Can't install PI updates MAC
« Reply #8 on: 2015 April 22 19:01:50 »
Thanks for the reply...my user (main admin user) already had access...anyways I went ahead and did what you recommended for all the users and problem is the same.

Offline NGC7789

  • PixInsight Old Hand
  • ****
  • Posts: 391
Re: Can't install PI updates MAC
« Reply #9 on: 2015 April 22 20:45:17 »
I'm running out of ideas. Have you repaired permissions on the drive? Maybe check the permissions the in the command prompt?

Offline mgarsal

  • Newcomer
  • Posts: 9
Re: Can't install PI updates MAC
« Reply #10 on: 2015 April 23 16:23:20 »
tried with the entire drive and same problem

Wondering I'm the only one using Pixinsight with a MAC...!
« Last Edit: 2015 April 23 17:54:12 by mgarsal »

Offline Juan Conejero

  • PTeam Member
  • PixInsight Jedi Grand Master
  • ********
  • Posts: 7111
    • http://pixinsight.com/
Re: Can't install PI updates MAC
« Reply #11 on: 2015 April 24 09:28:14 »
Quote
Wondering I'm the only one using Pixinsight with a MAC...!

I hope not. Honestly, I am also out of ideas. I can't reproduce this behavior on our machines, and nothing similar has been reported before. The initial permissions problem has been reported before (and also different, odd permissions-related problems on OS X), but a simple permissions update and/or a selection of a different downloads folder has always fixed it.

Just for the sake of testing harder, can you attach an external drive to your machine (e.g. an USB disk) and select a folder on it as PixInsight's downloads directory?
Juan Conejero
PixInsight Development Team
http://pixinsight.com/

Offline mgarsal

  • Newcomer
  • Posts: 9
Re: Can't install PI updates MAC
« Reply #12 on: 2015 April 25 06:04:16 »
Tried with the USB disk and same problem.

BUT....created a new admin user from scratch, installed PI and voila!...success!...updates now work, everything with default settings.  I guess my main Admin user is somehow corrupted.

Apologies, looks like this had nothing to do with PI or MAC OS.....thanks for the help!.

Offline eroubal1

  • Newcomer
  • Posts: 4
Re: Can't install PI updates MAC
« Reply #13 on: 2015 May 13 22:16:29 »
I'm getting the same thing:

Click on the Install Updates deal, exit the application after it downloads and seems to uncompress the files it downloads, and I get:

Unable to Install updates: Can't find required component(s)

I tried changing the settings as implied above.   Edit --> Global Preferences.  Then 'Directories and Network' and change both the directory locations on that page to /Users/<myuser>/pitemp.  Doesn't work.    updater3 has the same circle with arrow through it and I'm running Mac OS X 10.9.5.    I'm a little confused why I chmod 777 to that file and still get the error.  PI must be running different permissions when it tries to access updater3.

In no way will I resort to creating a new user as mgarsal did.  I need to continue access to all the dozens and dozens of tools, work, software, telescope drivers and PI at the same time.   So that solution is not acceptable.

Please help. 

Offline eroubal1

  • Newcomer
  • Posts: 4
Re: Can't install PI updates MAC
« Reply #14 on: 2015 May 16 15:06:58 »
.. Hello??  any help would be appreciated.  Highly likely everybody using MAC OSX is getting this.