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

No Result After Loading Program #131

Open CarolinaDawn opened 4 years ago

CarolinaDawn commented 4 years ago

My JES has stopped showing me results after I hit load program. At first, I thought my code was broken, but I have visited past codes that worked and those are not working either. Additionally, my instructor sent me a code that worked for him, but my JES did the same thing. It says Loading program followed by >>> as if it has completed running it, but nothing happens. I cannot get new photos or audio and nothing saves as a result. I have assignments that are due and I cannot complete them properly.

mjguzdial commented 4 years ago

Hi Carolina,

This isn't the kind of thing we can debug from that email. I'd need to see your code. I suggest that you talk to your teacher to get help. It's possible it's JES, but it's unlikely, since I haven't had a bug report like this before.

Good luck,


Mark Guzdial, mjguz@umich.edu

On Thu, Jan 30, 2020 at 7:27 PM CarolinaDawn notifications@github.com wrote:

My JES has stopped showing me results after I hit load program. At first, I thought my code was broken, but I have visited past codes that worked and those are not working either. Additionally, my instructor sent me a code that worked for him, but my JES did the same thing. It says Loading program followed by >>> as if it has completed running it, but nothing happens. I cannot get new photos or audio and nothing saves as a result. I have assignments that are due and I cannot complete them properly.

— You are receiving this because you are subscribed to this thread. Reply to this email directly, view it on GitHub https://github.com/gatech-csl/jes/issues/131?email_source=notifications&email_token=ABBN7JQKTLDMH6YGHATZUKTRANWAXA5CNFSM4KN7L4RKYY3PNVWWK3TUL52HS4DFUVEXG43VMWVGG33NNVSW45C7NFSM4IJ76I5A, or unsubscribe https://github.com/notifications/unsubscribe-auth/ABBN7JT4GF6DXXMHODZET2DRANWAXANCNFSM4KN7L4RA .

CarolinaDawn commented 4 years ago

I have already talked to him and he did send me a working code, but it didn't work on my JES. I don't know how to make it work anymore. This is the code he sent me, which remember worked on his end, it is only on mine that it is malfunctioning.

def transform(): filePath=pickAFile() antelope=makePicture(filePath) antPixels=getPixels(antelope) filePath=pickAFile() rabbit=makePicture(filePath) rabPixels=getPixels(rabbit) for index in range (len(antPixels)/2, len(antPixels)): currentpixel1 = antPixels[index] currentpixel2 = rabPixels[index] color = getColor(currentpixel2) setColor(currentpixel1, color) show(antelope)

mjguzdial commented 4 years ago

Indentation. Indent all the lines under the "def" by two spaces, and indent the four lines after the "for" by 4 spaces. Do see your teacher. You don't have the code quite right.


Mark Guzdial, mjguz@umich.edu

On Thu, Jan 30, 2020 at 8:08 PM CarolinaDawn notifications@github.com wrote:

I have already talked to him and he did send me a working code, but it didn't work on my JES. I don't know how to make it work anymore. This is the code he sent me, which remember worked on his end, it is only on mine that it is malfunctioning.

def transform(): filePath=pickAFile() antelope=makePicture(filePath) antPixels=getPixels(antelope) filePath=pickAFile() rabbit=makePicture(filePath) rabPixels=getPixels(rabbit) for index in range (len(antPixels)/2, len(antPixels)): currentpixel1 = antPixels[index] currentpixel2 = rabPixels[index] color = getColor(currentpixel2) setColor(currentpixel1, color) show(antelope)

— You are receiving this because you commented. Reply to this email directly, view it on GitHub https://github.com/gatech-csl/jes/issues/131?email_source=notifications&email_token=ABBN7JV4B45HFFJIYLQXQBDRAN22LA5CNFSM4KN7L4RKYY3PNVWWK3TUL52HS4DFVREXG43VMVBW63LNMVXHJKTDN5WW2ZLOORPWSZGOEKNEG2I#issuecomment-580535145, or unsubscribe https://github.com/notifications/unsubscribe-auth/ABBN7JWSANFR4PPM6PBRV4TRAN22LANCNFSM4KN7L4RA .

CarolinaDawn commented 4 years ago

I have done that is the JES program, I apologize I did not replicate it here.