olivierkes / manuskript

A open-source tool for writers
http://www.theologeek.ch/manuskript
GNU General Public License v3.0
1.71k stars 226 forks source link

Running app 0.15.0 on Mac Catalina #1191

Open victorkane opened 11 months ago

victorkane commented 11 months ago

Followed instructions for Mac. True, 'a button appears, allowing you to start Manuskript “anyway”'. However get definitive message that program cannot be checked for malware and "needs to be updated" and program refuses to open. Further attempts to open app simply fail.

marosoft commented 11 months ago

Please open the Application folder in Finder, right click on the manuscript app and choose Open option. It should solve the issue going forward.

On Fri, 21 Jul 2023 at 15:01, Victor Kane @.***> wrote:

Followed instructions for Mac https://www.theologeek.ch/manuskript/download/. True, 'a button appears, allowing you to start Manuskript “anyway”'. However get definitive message that program cannot be checked for malware and program refuses to open. Further attempts to open app simply fail.

— Reply to this email directly, view it on GitHub https://github.com/olivierkes/manuskript/issues/1191, or unsubscribe https://github.com/notifications/unsubscribe-auth/AA6DH33RZIJ5V3N7GV3BSPTXRKDRZANCNFSM6AAAAAA2S4H5AY . You are receiving this because you are subscribed to this thread.Message ID: @.***>

victorkane commented 11 months ago

@marosoft thanks for answering so promptly; however, tried that, unfortunately icon flashes and nothing happens, as described. Is there a command I can try in a terminal to see what the error message might be?

victorkane commented 11 months ago

I have successfully installed other similar apps (latest version of novelWriter, for example), so I was under the impression that manuskript would work

TheJackiMonster commented 11 months ago

Can you start the application from terminal? That might give you the stack trace in case of an error.

Otherwise you could also try running it from source. If there's an issue in the application it should be reproducible by doing so.

victorkane commented 11 months ago

Can you start the application from terminal? That might give you the stack trace in case of an error.

Otherwise you could also try running it from source. If there's an issue in the application it should be reproducible by doing so.

Could you tell me how to run from terminal (what is the command? manuskript doesn't work, thanks!

victorkane commented 11 months ago

ok, don't know if this means anything to anyone:

victorkane@Victors-MacBook-Air ~ % open -a "manuskript"
LSOpenURLsWithRole() failed for the application /Applications/Manuskript.app with error -10810.
victorkane@Victors-MacBook-Air Applications % open -a "Manuskript"
LSOpenURLsWithRole() failed for the application /Applications/Manuskript.app with error -10810.

open -a Console, found:

Unable to load defaults for [executable<manuskript(501)>:60682]: no audit token

default 14:55:44.839802-0300    runningboardd   [executable<manuskript(501)>:60682] Death sentinel fired!
default 14:55:44.841094-0300    runningboardd   Acquiring assertion targeting executable<manuskript(501)> from originator [daemon<com.apple.coreservices.launchservicesd>:171] with description <RBSAssertionDescriptor; foregroundApp:60682; ID: 326-171-21714; target: 60682> attributes = {
    <RBSDomainAttribute: 0x7fadb4647f60; domain: com.apple.launchservicesd; name: RoleUserInteractiveNonFocal; sourceEnvironment: 0x0>;
}
default 14:55:44.841339-0300    runningboardd   Assertion 326-171-21714 (target:executable<manuskript(501)>) will be created as active
default 14:55:44.842350-0300    runningboardd   Acquiring assertion targeting executable<manuskript(501)> from originator [daemon<com.apple.coreservices.launchservicesd>:171] with description <RBSAssertionDescriptor; foregroundApp:60682; ID: 326-171-21715; target: 60682> attributes = {
    <RBSDomainAttribute: 0x7fadb472ada0; domain: com.apple.launchservicesd; name: RoleUserInteractiveNonFocal; sourceEnvironment: 0x0>;
}
default 14:55:44.842415-0300    runningboardd   [executable<manuskript(501)>:60682] Ignoring jetsam update because this process is not memory-managed
default 14:55:44.842709-0300    runningboardd   [executable<manuskript(501)>:60682] Ignoring resume because this process is not lifecycle managed
default 14:55:44.842853-0300    runningboardd   [executable<manuskript(501)>:60682] Ignoring GPU update because this process is not GPU managed
default 14:55:44.842737-0300    runningboardd   Assertion 326-171-21715 (target:executable<manuskript(501)>) will be created as active
TheJackiMonster commented 11 months ago

The error code seems to say "unknown error" but it could be an issue with the operating system as described here.

On macOS there seem to be a process limit for its users which stops any new processes from starting. There are few workarounds described to try. I assume it's worth trying to shutdown the whole system and reboot or killing off other user processes/applications which are running.

victorkane commented 11 months ago

@TheJackiMonster again, thanks for such prompt support! Manuskript community ftw!!!

OK, rebooting, turning off unnecessary processes, still get same negative results.

So, following advice to run from source on Mac OS X, that worked fine!!

Did the following (didn't want to install Xcode so used pip3to install PyQt5 as indicated by your instructions):

brew install python3

pip3 --version
pip 22.0.4 from /Library/Frameworks/Python.framework/Versions/3.10/lib/python3.10/site-packages/pip (python 3.10)

pip3 install PyQt5

cd ~/Documents

git clone https://github.com/olivierkes/manuskript.git
Cloning into 'manuskript'...
remote: Enumerating objects: 14541, done.
remote: Counting objects: 100% (707/707), done.
remote: Compressing objects: 100% (176/176), done.
remote: Total 14541 (delta 532), reused 681 (delta 526), pack-reused 13834
Receiving objects: 100% (14541/14541), 14.08 MiB | 15.61 MiB/s, done.
Resolving deltas: 100% (10178/10178), done.

./manuskript/bin/manuskript

and SUCCESS

Was able to load demo project, create html output, and was able to create ePub compile after standard config to use already installed Pandoc!

¡Voilá!

Since it's easier to compile than mess around with Mac restrictions, while it would be better for non-techs if this ran with the regular download, in my case, problem resolved!

Thanks for all the help

victorkane commented 11 months ago

Just to be complete, added the following to be able to use spellchecker:

pip3 install pyenchant

Now I have the latest version running on both Ubuntu (off-the-shelf) and Mac (easily running from source), I'm all set!

TheShadowOfHassen commented 11 months ago

That's great! If you want other spell checker tools like language_tool you can use pip to install them as well.

TheJackiMonster commented 11 months ago

Hmm, I still wonder why it's not working with the pre-build release. Most issue I have is that I have very limited options when it comes to testing on macOS. So maybe other people with a setup system can investigate the issue.

Otherwise I'll keep in mind that running from source seems to work. I assume we can definitely adjust the entry in the wiki since macOS ships Python now by itself. So people don't have to mess with homebrew, I think.

tghuguenin commented 4 months ago

Still an issue in Catalina on manuskript 0.16.1. I'm gonna assume macOS 10.15.7 no longer supported? Which I understand---it's an old OS by now and it's not like devs have infinite resources to keep up with backward compatibility. Guess I'll have to try the source route

tghuguenin commented 4 months ago

Update: running from source works on macOS 10.15.7. The person I was going to recommend it to might be too intimidated with using the Terminal but then again, if they have a current version of macOS it might not be an issue.