Author Topic: PixInsight 1.8.8-5 Released - StarNet module installation  (Read 21014 times)

Offline tdgm

  • PixInsight Old Hand
  • ****
  • Posts: 302
PixInsight 1.8.8-5 Released - StarNet module installation
« on: 2020 February 28 17:57:57 »
HI Juan


I d not know if this is my computers (Mac) but afterinstallation of 1.8.8.5 I can't install Stanet+ module. Have followed all instructions and allow the third party developer in security/Privacy. Please Help


Steve

Offline johnpane

  • PixInsight Enthusiast
  • **
  • Posts: 93
Re: PixInsight 1.8.8-5 Released - StarNet module installation
« Reply #1 on: 2020 February 28 18:55:19 »
I d not know if this is my computers (Mac) but afterinstallation of 1.8.8.5 I can't install Stanet+ module. Have followed all instructions and allow the third party developer in security/Privacy. Please Help

I experienced exactly the same problem. Reverted back to 1.8.8-4 for now.

Offline pfile

  • PTeam Member
  • PixInsight Jedi Grand Master
  • ********
  • Posts: 4729
Re: PixInsight 1.8.8-5 Released - StarNet module installation
« Reply #2 on: 2020 February 28 19:31:23 »
ill check it out this weekend and rebuild the OSX version, assuming there is a new PCL available for -5. then nikita will have to repackage and distribute it.

rob

Offline pfile

  • PTeam Member
  • PixInsight Jedi Grand Master
  • ********
  • Posts: 4729
Re: PixInsight 1.8.8-5 Released - StarNet module installation
« Reply #3 on: 2020 February 28 22:59:05 »
before i installed -5 i backed up the -4 installation. i then copied everything starnet related in the old bin/ folder to the new bin/ folder, and likewise with the lib/ folder (the weights.)

starnet runs with no problem this way under -5. if there is a problem with gatekeeper i wouldn't see it because ostensibly the starnet dylib is already blessed.  also i am way back on high sierra, so if there is a problem with newer versions of OSX i won't see that. i did compile the module on high sierra and at least up till now no one running 10.14 or 10.15 had problems installing and running starnet...

rob

Offline tdgm

  • PixInsight Old Hand
  • ****
  • Posts: 302
Re: PixInsight 1.8.8-5 Released - StarNet module installation
« Reply #4 on: 2020 February 29 00:24:32 »
Hi Rob

Well, I tried your trick to insert backup files into a new instance of PxInsight 1.8.8.5. I am running Catalina on My NBP and it still does not recognize the StarNet + Module so I went back to 1.8.8.4.

How do you backup pixinsight?

I just moved the program to a different folder (not trash)and copied the correct files into the correct places but no joy on Catalina. My other machine is Mac OSX 10.14.6 and the same thing happens when I try to install the module.

Any other suggestions

Steve

Offline johnpane

  • PixInsight Enthusiast
  • **
  • Posts: 93
Re: PixInsight 1.8.8-5 Released - StarNet module installation
« Reply #5 on: 2020 February 29 02:58:55 »
before i installed -5 i backed up the -4 installation. i then copied everything starnet related in the old bin/ folder to the new bin/ folder, and likewise with the lib/ folder (the weights.)

starnet runs with no problem this way under -5. if there is a problem with gatekeeper i wouldn't see it because ostensibly the starnet dylib is already blessed.  also i am way back on high sierra, so if there is a problem with newer versions of OSX i won't see that. i did compile the module on high sierra and at least up till now no one running 10.14 or 10.15 had problems installing and running starnet...

I followed the same procedure on Catalina 10.15.3 except did not save the "blessed" dylib. Instead, I installed a copy directly from the distribution. When attempting to install with Install Modules, Gatekeeper was triggered, but after approval StarNet was not installed, nor did Install Modules find it anymore in a recursive search. After observing this, I deleted everything and reproduced the same steps, achieving the same result.

Today, after seeing Rob's report, I tried for a third time using an already-blessed dylib. Everything acted the same as above, except this time the Install Modules did not find StarNet at all and no Gatekeeper notification was generated.

In all cases, PixInsight reports, "0 additional PixInsight module(s) were found on directory: /Applications/PixInsight/bin (Recursive search)". It is as if PixInsight thinks the module is installed, although it is not.

John

Offline FrankW

  • PTeam Member
  • Newcomer
  • Posts: 25
Re: PixInsight 1.8.8-5 Released - StarNet module installation
« Reply #6 on: 2020 February 29 05:50:13 »
Hi Rob

I have the exact same problem with Starnet running Mojave.

Frank

Offline pfile

  • PTeam Member
  • PixInsight Jedi Grand Master
  • ********
  • Posts: 4729
Re: PixInsight 1.8.8-5 Released - StarNet module installation
« Reply #7 on: 2020 February 29 07:15:04 »
i will have to try all this on a machine running 10.14. i don’t have one running 10.15 yet... but i have a laptop with 10.14.

Offline pfile

  • PTeam Member
  • PixInsight Jedi Grand Master
  • ********
  • Posts: 4729
Re: PixInsight 1.8.8-5 Released - StarNet module installation
« Reply #8 on: 2020 February 29 07:36:02 »
with pixinsight not running, and from the terminal can you guys try:

spctl --add --label "StarNet" /Applications/PixInsight/bin/StarNet-pxm.dylib

and tell me what the output of the program is? you will need to enter your password when spctl is run - it pops up a dialog box.

also can you try then running PI and adding the module and see if it works after this? also check if the module is already installed, sometimes that happens.

on my system if i ask for the status on /Applications/PixInsight/bin/StarNet-pxm.dylib, i get "rejected" but of course it does load and is running.

rob

Offline andrewbarton

  • Newcomer
  • Posts: 16
Re: PixInsight 1.8.8-5 Released - StarNet module installation
« Reply #9 on: 2020 February 29 09:03:55 »
Hi Rob,

I am having this issue on Mojave. I ran the spctl command, provided my password. The dialog closed and no response was returned on the command line. But I still could not install the StarNet++ module nor was it already installed in the processes menu. I tried also using the copy from my previous -4 installation but there was no change in behavior.

Will StarNet be part of the Mac distribution in 1.8.9?

Andy

Offline pfile

  • PTeam Member
  • PixInsight Jedi Grand Master
  • ********
  • Posts: 4729
Re: PixInsight 1.8.8-5 Released - StarNet module installation
« Reply #10 on: 2020 February 29 09:20:57 »
ok well i'm going to have to try doing installing everything from scratch on a 10.14 laptop (i dont have 10.15 yet anywhere) and see what happens. but since you have problems on 10.14 hopefully figuring it out there will make it work for 10.15 as well.

i should have mentioned that there would be no response on the command line to this program - all it is supposed to do is tell gatekeeper that the library is safe to execute. because PI is pretty silent about why a module doesn't load it was kind of a shot in the dark under the theory that gatekeeper is preventing it from running. but PI will also fail to display/load a module if it can not be started properly (like for instance if the tensorflow libraries are missing.)

which actually reminds me - since it could be failing due to the tensorflow libraries being blocked by gatekeeper, maybe you can also try:

cd /Applications/PixInsight/bin
spctl --add --label "StarNet" libtensorflow*

and then see if PI will load the module. however, in theory those libraries should have been signed by tensorflow.org and should work.

anyway, i'm not sure why copying everything out of -4 worked for me, but i have some ideas.

i think juan has declined to include starnet in the main PI distribution because as distributed, it requires processors with a minimum set of AVX instructions to run. plus the weights files are pretty huge and overall would increase the distribution size of PI by 500MB or something.

rob

Offline pfile

  • PTeam Member
  • PixInsight Jedi Grand Master
  • ********
  • Posts: 4729
Re: PixInsight 1.8.8-5 Released - StarNet module installation
« Reply #11 on: 2020 February 29 09:32:05 »
whoops, actually i had forgotten where the tensorflow libraries are supposed to live. i had a copy in /Applications/PixInsight/bin but i dont think OSX will find them there.

the tensorflow libraries are supposed to be in /Applications/PixInsight/PixInsight.app/Contents/Frameworks/

on my system i also have them in /usr/local/lib/ so even though i had forgotten to copy those libraries into that directory after installing -5, it's still working for me.

so anyway the command i posted above should be:


cd /Applications/PixInsight/PixInsight.app/Contents/Frameworks/
spctl --add --label "StarNet" libtensorflow*

rob

Offline tdgm

  • PixInsight Old Hand
  • ****
  • Posts: 302
Re: PixInsight 1.8.8-5 Released - StarNet module installation
« Reply #12 on: 2020 February 29 11:02:01 »
Hi Rob


I tried the terminal suggestions with my Mojave computer and 1.8.8.5 and no joy still will not see module. I have also tried on my Catalina machine and still no joy. So now it is in your ballpark. I am not proficient past this point of evaluation. All is fine with1.8.8.4 and not 1.8.9.5.


Steve

Offline andrewbarton

  • Newcomer
  • Posts: 16
Re: PixInsight 1.8.8-5 Released - StarNet module installation
« Reply #13 on: 2020 February 29 11:04:01 »
Hi Rob,

I tried blessing the tensorflow libraries with spctl but I see no change.

I just noticed something in the processing console upon startup of PixInsight:
--
...
/Applications/PixInsight/bin/NoiseGeneration-pxm.dylib
* Scripting resources updated.
49 of 49 module(s) installed.
*** Error:

The PixInsight Core application has been launched with module installation disabled. Cannot proceed.

Processing script file: /Applications/PixInsight/etc/init.pjsr/pjsr-core-defs.js

* 1 initialization script(s) executed.

Processing script file: /Applications/PixInsight/etc/startup/startup.scp
* 1 startup script(s) executed.
...
--

So the error "The PixInsight Core application has been launched with module installation disabled. Cannot proceed." seems to be a bit part of my problem. I am going to start from a fresh install of PI 1.8.8-5 and see if I can determine at which point I start see this error.

Andy

Offline pfile

  • PTeam Member
  • PixInsight Jedi Grand Master
  • ********
  • Posts: 4729
Re: PixInsight 1.8.8-5 Released - StarNet module installation
« Reply #14 on: 2020 February 29 11:13:30 »
thank you andrew, that is interesting info.

the spctl stuff was a shot in the dark... thought it was worth a try.

i am not familiar with that error and we'll have to get Juan to weigh in on that - never seen that before. i have been busy all morning and have not yet been able to do a clean installation to find out what's going wrong. clearly there is a problem as people are reporting this on cloudynights as well.

rob