Python Piet programming (python programming language )

AI Thread Summary
The discussion centers on the challenges of getting the Piet programming language to work offline on Windows 10 without using trial software. The user has attempted various downloads, including npiet for Win32, but encountered issues, particularly with file types and execution. There is confusion regarding the correct files needed for Piet, as the user initially downloaded the wrong version, leading to a flicker upon execution. Suggestions include running npiet from the command line and using specific example files to test the setup. Some participants clarify that the Piet programming language is an esoteric language and not a conventional programming tool, emphasizing the challenge aspect of using it. They also recommend using browser-based implementations as a simpler alternative.
Steven Ellet
Messages
85
Reaction score
3
Where or how can I get Piet programming to to work on windows 10 I don't care how, only that I can program in Piet offline and NOT a trial. I have gone around the block and come so close to getting it, and then, something doesn't add up. The closest I have come to getting it to work is here: http://pastebin.com/zxc9V3UX
I used Microsoft Visual Studio Version Selector and https://www.python.org/downloads/ and I'm still stuck.
Error occurs on line 59: filename = raw_input()
Here is one example of Piet: http://www.rapapaing.com/blog/?page_id=6
Piet Programming Langauge Tutorial:
 
Technology news on Phys.org
I typed "piet interpreter" into google, and the first hit has a win32 download.

http://www.bertnase.de/npiet/

Or did i misunderstand your question?

P.S. I never heard of piet before. Damn that's weird! Cool!
 
@pilofrogs You did not misunderstand the question. However I have already tried the obviously google searches.
 
Did you try npiet for win32? If it doesn't work for you, what's not working? What others have you tried?
 
pilofrogs said:
Did you try npiet for win32? If it doesn't work for you, what's not working? What others have you tried?
I have tried over a dozen with no luck. With "npiet for win32", as with many, I do not have any way to handle the file types:
FOO
OUT
file
shell script
in file
c source
Y file
all of these I can not handle and even if I could how would they interact with each other?
PS all of these came from " npiet for win32"
 
Hmm... those don't sound like file types that npiet would want. It wants image files, like png or gif. Where does your list of file types come from? Are you running npiet from the command line? If not, please try it that way. Did you try the debug option?
 
pilofrogs said:
Hmm... those don't sound like file types that npiet would want. It wants image files, like png or gif. Where does your list of file types come from? Are you running npiet from the command line? If not, please try it that way. Did you try the debug option?
I download the file and opened it and looked at file exporter and that was some of what I found. In addition, NO executable files.
 
pilofrogs said:
I think you downloaded the wrong thing. I just downloaded http://www.bertnase.de/npiet/npiet-1.3a-win32.zip and it contains npiet.exe among others.
It seems I had the wrong thing so i dowloaded the right one, but when when run it (from windows explorer and cmd) all that happens is a flicker and then nothing
cmd.png
 
  • #10
What about npiet.exe? Same thing?
 
  • #11
Why are you running npiet-foogol: do you have a foogol program you want to convert?

To run one of the examples type
Code:
npiet examples/loop.gif
 
  • #12
pilofrogs said:
What about npiet.exe? Same thing?
there is also a npiet-start.bat but it has the same output
Screenshot - 9_24_2015 , 11_43_59.png
Screenshot - 9_24_2015 , 11_44_57.png
Screenshot - 9_24_2015 , 11_45_45.png
 
  • #13
Type what I said at that prompt.
 
  • #14
MrAnchovy said:
Why are you running npiet-foogol: do you have a foogol program you want to convert?

To run one of the examples type
Code:
npiet examples/loop.gif

npiet examples/loop.gif just outputs
10
9
8
7
6
5
4
3
2
1
 
  • #15
That's the output of the program encoded in that image, what did you expect to see?
 
  • #16
MrAnchovy said:
That's the output of the program encoded in that image, what did you expect to see?
Perhaps you do not understand what I want. the following link will give you the option to download "Piet Mondrian Composer" which is a trial, otherwise it or a similar program is what I want.
http://piet-mondrian.en.softonic.com/
 
  • #17
Steven Ellet said:
Perhaps you do not understand what I want. the following link will give you the option to download "Piet Mondrian Composer" which is a trial, otherwise it or a similar program is what I want.
http://piet-mondrian.en.softonic.com/
I don't think you understand what that program does: it is nothing to do with the Piet programming language. You do realize that that language is just an elaborate joke?
 
  • #18
I think of it as a challenge
 
  • #19
If you think you are up to the challenge you should start here: http://www.dangermouse.net/esoteric/piet/tools.html. The easiest implementation to get up and running is surely this one which runs in a browser: http://www.rapapaing.com/blog/?page_id=6.
 
Back
Top