processing / p5.js-editor

Deprecated desktop editor for p5.js
https://p5js.org
MIT License
338 stars 91 forks source link

The application "p5" can't be opened #178

Open shota-aizawa opened 9 years ago

shota-aizawa commented 9 years ago

My mac has OS X Yosemite, version 10.10.5 and I downloaded a mac editor at the version of 0.5.2. Moved it to an application folder and opened it and got an error message saying "The application "p5" can't be opened". I tried older version of mac editors, but it did not work at all. How can I fix this problem? Thank you.

kamend commented 8 years ago

Same problem here.

I noticed that the "nwjs" file in MacOS is not set to executable. When I set the correct permissions, I get this error:

/Applications/p5.app/Contents/Frameworks/nwjs Helper.app/Contents/MacOS/nwjs Helper 2015-11-04 09:00:39.674 nwjs[82227:2612123] NSDocumentController Info.plist warning: The values of CFBundleTypeRole entries must be 'Editor', 'Viewer', 'None', or 'Shell'. 2015-11-04 09:00:39.674 nwjs[82227:2612123] NSDocumentController Info.plist warning: The values of CFBundleTypeRole entries must be 'Editor', 'Viewer', 'None', or 'Shell'. 2015-11-04 09:00:39.674 nwjs[82227:2612123] NSDocumentController Info.plist warning: The values of CFBundleTypeRole entries must be 'Editor', 'Viewer', 'None', or 'Shell'. 2015-11-04 09:00:39.674 nwjs[82227:2612123] NSDocumentController Info.plist warning: The values of CFBundleTypeRole entries must be 'Editor', 'Viewer', 'None', or 'Shell'. LaunchProcess: failed to execvp: /Applications/p5.app/Contents/Frameworks/nwjs Helper.app/Contents/MacOS/nwjs Helper LaunchProcess: failed to execvp: /Applications/p5.app/Contents/Frameworks/nwjs Helper.app/Contents/MacOS/nwjs Helper [82227:1104/090039:WARNING:file_descriptor_set_posix.cc(30)] FileDescriptorSet destroyed with unconsumed descriptors: 0/1 [82227:1104/090039:WARNING:file_descriptor_set_posix.cc(30)] FileDescriptorSet destroyed with unconsumed descriptors: 0/1 [82227:1104/090039:WARNING:channel.cc(553)] Failed to send message to remove remote endpoint (local ID 1, remote ID 1)

therewasaguy commented 8 years ago

Does it say it's "from an untrusted developer?" If so, my understanding is that this is just what Yosemite does for all applications that don't go through Apple.

If you right-click and select "open" from the right-click menu, then you should be able to open it. After you do that, double clicking to open should work.

kamend commented 8 years ago

It's saying "The Application p5 can't be opened". The problem is that the "nwjs" is not set to executable for some reason

http://prntscr.com/8yudjh

Actually all executables in "Frameworks" also, does not have the correct "+x" permissions, I guess someone who has zipped the packages has messed the permissions somehow. Setting "chmod +x" to all files in all MacOS folders manually fixes the issue.

antiboredom commented 8 years ago

Not sure what's going on here. What are your system specs?

kamend commented 8 years ago

I am on OSX El Capitan 10.11.1

Reading on couple of places, a ZIP archive is not a very good way to keep the correct permissions, I guess keeping the OSX app in a tar.gz, made on OSX is the better option.

alkmanas commented 8 years ago

Same problem here. On OS X El Capitan 10.11.1

screen shot 2015-12-11 at 00 23 59

I tried to make executable the file in MacOS folder with the "chmod +x" command, but it didn't work for me.Then i tried to log in with a different mac User account and I downloaded it again. It works fine in this account. I suppose it has something to do with my user's settings. It's strange.

UFeatherSerpent commented 8 years ago

Same here~ can't be open OS X Capitan

kamend commented 8 years ago

Make sure you are using the OSX default archive tool to extract the files, sometimes anything else will break the permissions.

alkmanas commented 8 years ago

Unfortunately using the OSX default archive tool doesn't work either. It works fine on a different system.

JessePimenta commented 8 years ago

any progress this issue? on OSX Yosemite v 10.10.3, no luck opening the editor.

alexandredesane commented 8 years ago

same here with Yosemite 10.10.5...

mikima commented 8 years ago

Had the same problem. Right-clicking on the .zip file and using the default archive tool, it worked (thanks @kamend). So odd.

alkmanas commented 8 years ago

it worked for me also with the default archive tool. Thanks @kamend

alexdwagner commented 8 years ago

Wow. Worked for me too. I had my default file unzipper set as Keka(when P5 wouldn't work), fwiw.

alkmanas commented 8 years ago

Keka was the problem for me also!

RamyMhi commented 7 years ago

using the OSX default archive tool work for me