gatech-csl / jes

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

Unable to run programs due to makePicture in the program area. #95

Open Lebrohnski opened 8 years ago

Lebrohnski commented 8 years ago

I'm new to JES so maybe it is me, however, every time I try to run my program no matter what the program is doing I cannot get past making my file into a picture using makePicture. The command area always says "The error value is: Inappropriate argument value (of correct type). An error occurred attempting to pass an argument to a function." It is getting really frustrating, as I cannot test to see if my program works or not. The version information is: JES version 5.020 Release date: May 11, 2015 Source control: Git commit 56b6799 (Mon, 11 May 2015 16:01:16 -0400) Java version: 1.7.0_60 (Java(TM) SE Runtime Environment/Java HotSpot(TM) Client VM) Jython version: 2.5.3 (build 2.5:c56500f08d34+, Aug 13 2012, 14:48:36) Computer OS: Windows 8.1 (x86 architecture)

Regards, Lebrohnski

mjguzdial commented 8 years ago

I'd need to see your code to see what's going on.

Have you tried a simple

show(makePicture(pickaFile()))

and make sure you pick a JPEG or GIF or PNG file? If that works, then JES is working fine on your computer. It may be in your code.


From: Lebrohnski notifications@github.com Sent: Sunday, March 20, 2016 9:39 AM To: gatech-csl/jes Subject: [jes] Unable to run programs due to makePicture in the program area. (#95)

I'm new to JES so maybe it is me, however, every time I try to run my program no matter what the program is doing I cannot get past making my file into a picture using makePicture. The command area always says "The error value is: Inappropriate argument value (of correct type). An error occurred attempting to pass an argument to a function." It is getting really frustrating, as I cannot test to see if my program works or not. The version information is: JES version 5.020 Release date: May 11, 2015 Source control: Git commit 56b6799https://github.com/gatech-csl/jes/commit/56b6799919f7d1107969ff534b81bb3b29ef999b (Mon, 11 May 2015 16:01:16 -0400) Java version: 1.7.0_60 (Java(TM) SE Runtime Environment/Java HotSpot(TM) Client VM) Jython version: 2.5.3 (build 2.5:c56500f08d34+, Aug 13 2012, 14:48:36) Computer OS: Windows 8.1 (x86 architecture)

Regards, Lebrohnski

You are receiving this because you are subscribed to this thread. Reply to this email directly or view it on GitHubhttps://github.com/gatech-csl/jes/issues/95

jasalazar commented 6 years ago

I'm having a similar issue in Linux Mint 17.3 Cinnamon. Whenever I call the function "pickAFile()" it doesn't either print "You just picked a file" or go any further. But whenever I compile it in Windows 8, it works perfectly.

My code:

def demo(): printNow( "You are going to pick a picture now." ) myfile = pickAFile() printNow( "You just picked a file." ) mypic = makePicture( myfile ) showInformation( "Ready to show picture!" ) show( mypic )

Any ideas?