gatech-csl / jes

The Jython Environment for Students allows students to write Jython programs that can manipulate pictures, sounds, and videos.
http://mediacomputation.org/
59 stars 38 forks source link

JES 5.02 may not be working on MacOS Mojave (10.14)? #119

Open hcientist opened 5 years ago

hcientist commented 5 years ago

It is maybe related to the following

Traceback (most recent call last):
  File "<string>", line 1, in <module>
  File "/Users/tgm/Downloads/jes-5.020-macosx/JES.app/Contents/Resources/Java/dependencies/jython/Lib/runpy.py", line 94, in run_module
    return _run_module_code(code, init_globals, run_name,
  File "/Users/tgm/Downloads/jes-5.020-macosx/JES.app/Contents/Resources/Java/dependencies/jython/Lib/runpy.py", line 51, in _run_module_code
    _run_code(code, mod_globals, init_globals,
  File "/Users/tgm/Downloads/jes-5.020-macosx/JES.app/Contents/Resources/Java/dependencies/jython/Lib/runpy.py", line 32, in _run_code
    exec code in run_globals
  File "/Users/tgm/Downloads/jes-5.020-macosx/JES.app/Contents/Resources/Java/jes/python/jes/__main__.py", line 14, in <module>
    setDockIcon()
  File "/Users/tgm/Downloads/jes-5.020-macosx/JES.app/Contents/Resources/Java/jes/python/jes/platform/macosx/__init__.py", line 59, in setDockIcon
    app.setDockIconImage(None)
    at com.apple.eawt._AppDockIconHandler.setDockIconImage(_AppDockIconHandler.java:77)
    at com.apple.eawt.Application.setDockIconImage(Application.java:346)
    at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
    at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
    at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
    at java.lang.reflect.Method.invoke(Method.java:498)

java.lang.RuntimeException: java.lang.RuntimeException: java.lang.NullPointerException

I edited jes-5.020-macosx/JES.app/Contents/Resources/Java/jes/python/jes/__main__.py to remove the offending call and it seems to run well! (I am using jenv to manage multiple java versions and have set $JES_JAVA_HOME="$HOME/.jenv/versions/1.8.0.181"

mjguzdial commented 5 years ago

Try the special version of JES created for High Sierra available here: https://guzdial.engin.umich.edu/media-computation/

Does it work on Mojave?


From: Michael Stewart notifications@github.com Sent: Monday, October 1, 2018 9:17:02 PM To: gatech-csl/jes Cc: Subscribed Subject: [gatech-csl/jes] JES 5.02 may not be working on MacOS Mojave (10.14)? (#119)

It is maybe related to the following

Traceback (most recent call last): File "", line 1, in File "/Users/tgm/Downloads/jes-5.020-macosx/JES.app/Contents/Resources/Java/dependencies/jython/Lib/runpy.py", line 94, in run_module return _run_module_code(code, init_globals, run_name, File "/Users/tgm/Downloads/jes-5.020-macosx/JES.app/Contents/Resources/Java/dependencies/jython/Lib/runpy.py", line 51, in _run_module_code _run_code(code, mod_globals, init_globals, File "/Users/tgm/Downloads/jes-5.020-macosx/JES.app/Contents/Resources/Java/dependencies/jython/Lib/runpy.py", line 32, in _run_code exec code in run_globals File "/Users/tgm/Downloads/jes-5.020-macosx/JES.app/Contents/Resources/Java/jes/python/jes/main.py", line 14, in setDockIcon() File "/Users/tgm/Downloads/jes-5.020-macosx/JES.app/Contents/Resources/Java/jes/python/jes/platform/macosx/init.py", line 59, in setDockIcon app.setDockIconImage(None) at com.apple.eawt._AppDockIconHandler.setDockIconImage(_AppDockIconHandler.java:77) at com.apple.eawt.Application.setDockIconImage(Application.java:346) at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62) at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) at java.lang.reflect.Method.invoke(Method.java:498)

java.lang.RuntimeException: java.lang.RuntimeException: java.lang.NullPointerException

I edited jes-5.020-macosx/JES.app/Contents/Resources/Java/jes/python/jes/main.py to remove the offending call and it seems to run well! (I am using jenvhttp://www.jenv.be/ to manage multiple java versions and have set `$JES_JAVA_HOME="$HOME/.jenv/versions/1.8.0.181"

— You are receiving this because you are subscribed to this thread. Reply to this email directly, view it on GitHubhttps://github.com/gatech-csl/jes/issues/119, or mute the threadhttps://github.com/notifications/unsubscribe-auth/AELfpmS2yDARAE1KAyGC-00d6scXUXmXks5ugr6OgaJpZM4XDKCg.

hcientist commented 5 years ago

@mjguzdial for me this version does not work. Though perhaps some others can solve it by installing the default 1.6 jdk if they have it somewhere.

in the jes-launcher.sh this version insists java be located at JAVA="/Library/Java/JavaVirtualMachines/1.6.0.jdk/Contents/Home/bin/java", but I started using jenv (see above) and so for me it's more convenient to use the JES_JAVA_HOME env var to specify my java. I couldn't readily find jdk 1.6 for Mac, so I am using 1.8. I don't knwo if it's related to this difference, but I then get the error in https://github.com/gatech-csl/jes/issues/119#issue-365702208 and that solution I mentioned applies here again.

mjguzdial commented 5 years ago

Try getting Java 6 here: https://support.apple.com/kb/dl1572?locale=en_US


From: Michael Stewart notifications@github.com Sent: Tuesday, October 2, 2018 7:33:47 PM To: gatech-csl/jes Cc: Guzdial, Mark; Mention Subject: Re: [gatech-csl/jes] JES 5.02 may not be working on MacOS Mojave (10.14)? (#119)

@mjguzdialhttps://github.com/mjguzdial for me this version does not work. Though perhaps some others can solve it by installing the default 1.6 jdk if they have it somewhere.

in the jes-launcher.sh this version insists java be located at JAVA="/Library/Java/JavaVirtualMachines/1.6.0.jdk/Contents/Home/bin/java", but I started using jenv (see above) and so for me it's more convenient to use the JES_JAVA_HOME env var to specify my java. I couldn't readily find jdk 1.6 for Mac, so I am using 1.8. I don't knwo if it's related to this difference, but I then get the error in #119 (comment)https://github.com/gatech-csl/jes/issues/119#issue-365702208 and that solution I mentioned applies here again.

— You are receiving this because you were mentioned. Reply to this email directly, view it on GitHubhttps://github.com/gatech-csl/jes/issues/119#issuecomment-426464772, or mute the threadhttps://github.com/notifications/unsubscribe-auth/AELfprd8zknukMAoyvz0zXNBe1vCYaaZks5ug_fbgaJpZM4XDKCg.

jlmayfield commented 4 years ago

This is may be off topic for this specific issue, but the special version for the MAC won't download. It either keeps restarting or stalls and times out. The retina aware download keeps getting flagged as malware. I have a few students use MAC and I'm not sure where to go from here if they can't get one of the workaround versions of JES to download.

mjguzdial commented 4 years ago

How about this version?

https://computinged.wordpress.com/2019/07/22/beta-release-of-new-jes-jython-environment-for-students-now-available-media-computation-for-python-ide/


Mark Guzdial, mjguz@umich.edu

On Wed, Aug 21, 2019 at 11:40 AM Logan Mayfield notifications@github.com wrote:

This is maybe off issue, but the special version for the MAC won't download. It either keeps restarting or stalls and times out. The retina aware download keeps getting flagged as malware. I have a few students use MAC and I'm not sure where to go from here if they can't get one of the workaround versions of JES to download.

— You are receiving this because you were mentioned. Reply to this email directly, view it on GitHub https://github.com/gatech-csl/jes/issues/119?email_source=notifications&email_token=ABBN7JUAYVQFPVQFT4OFJZLQFVOU7A5CNFSM4FYMUCQKYY3PNVWWK3TUL52HS4DFVREXG43VMVBW63LNMVXHJKTDN5WW2ZLOORPWSZGOD42DKBA#issuecomment-523515140, or mute the thread https://github.com/notifications/unsubscribe-auth/ABBN7JWMCPFZH56HZ5LJGATQFVOU7ANCNFSM4FYMUCQA .

jlmayfield commented 4 years ago

I found that link in another issue and that seems to do the trick. I'll report back if we have further problems.

sazamore commented 4 years ago

@jlmayfield please follow up. I'm using this for a course and a few students have run into the same problem.

mjguzdial commented 4 years ago

Please try the beta version here: https://computinged.wordpress.com/2019/07/22/beta-release-of-new-jes-jython-environment-for-students-now-available-media-computation-for-python-ide/ https://computinged.wordpress.com/2019/07/22/beta-release-of-new-jes-jython-environment-for-students-now-available-media-computation-for-python-ide/

I’m running Mojave and it’s working for me.

On Aug 26, 2019, at 5:40 PM, Dr Z notifications@github.com wrote:

@jlmayfield https://github.com/jlmayfield please follow up. I'm using this for a course and a few students have run into the same problem.

— You are receiving this because you were mentioned. Reply to this email directly, view it on GitHub https://github.com/gatech-csl/jes/issues/119?email_source=notifications&email_token=ABBN7JSEZ3UTIBG7FNSWETDQGREUFA5CNFSM4FYMUCQKYY3PNVWWK3TUL52HS4DFVREXG43VMVBW63LNMVXHJKTDN5WW2ZLOORPWSZGOD5FYTNA#issuecomment-525044148, or mute the thread https://github.com/notifications/unsubscribe-auth/ABBN7JX7W7VKLJBNR7IYETTQGREUFANCNFSM4FYMUCQA.

jlmayfield commented 4 years ago

@sazamore I directed MAC students to the Beta and it seems to be doing the trick. They mostly get hung up on the message about the program coming from an unidentified developer

mjguzdial commented 4 years ago

Yeah, I have to figure out if it's worth dealing with that. Thanks!

On Mon, Aug 26, 2019 at 7:42 PM Logan Mayfield notifications@github.com wrote:

@sazamore https://github.com/sazamore I directed MAC students to the Beta and it seems to be doing the trick. They mostly get hung up on the message about the program coming from an unidentified developer https://support.apple.com/guide/mac-help/open-a-mac-app-from-an-unidentified-developer-mh40616/mac

— You are receiving this because you were mentioned. Reply to this email directly, view it on GitHub https://github.com/gatech-csl/jes/issues/119?email_source=notifications&email_token=ABBN7JXGLEK7US3GNNSDCB3QGRS43A5CNFSM4FYMUCQKYY3PNVWWK3TUL52HS4DFVREXG43VMVBW63LNMVXHJKTDN5WW2ZLOORPWSZGOD5GAFIA#issuecomment-525075104, or mute the thread https://github.com/notifications/unsubscribe-auth/ABBN7JV2OPLIWSDKSYEJPQDQGRS43ANCNFSM4FYMUCQA .