pillone / usntssearch

NZB Metasearch engine
pillone.github.io/usntssearch
263 stars 79 forks source link

MacOS Monterey 12.3 #173

Open AJCrowley opened 2 years ago

AJCrowley commented 2 years ago

This version has removed python 2.7, and I can't seem to install it in any way through homebrew and whatnot.

Obviously, the script doesn't work on python3.

Does anyone have a workaround so I can keep running this after updating to 12.3?

Thanks!

AJCrowley commented 2 years ago

Fixed:

brew install pyenv
pyenv install pypy2.7-7.3.6
pyenv global pypy2.7-7.3.6
~/.pyenv/shims/python <repo location>/NZBmegasearch/mega2.py daemon >/dev/null 2>&1 &

To autoload, I used script maker to make a self terminating app:

do shell script "sudo /Users/<user>/.pyenv/shims/python <repo location>/NZBmegasearch/mega2.py daemon >/dev/null 2>&1 &"
return

export as an application, which you can then move to your Applications folder and add to your user auto load programs in system settings. Seems to be working like a charm. It didn't want to work without the sudo for some reason, but running from the command line you don't need the sudo.

albino1 commented 2 years ago

This thing is long abandoned, you should just switch NZBHydra like everyone else did many years ago:

https://github.com/theotherp/nzbhydra2/