Dismiss Notice
Join Physics Forums Today!
The friendliest, high quality science and math community on the planet! Everyone who loves science is here!

Python Piet programming (python programming language )

  1. Sep 19, 2015 #1
    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 Language Tutorial:
  2. jcsd
  3. Sep 20, 2015 #2
    I typed "piet interpreter" into google, and the first hit has a win32 download.


    Or did i misunderstand your question?

    P.S. I never heard of piet before. Damn that's weird! Cool!
  4. Sep 21, 2015 #3
    @pilofrogs You did not misunderstand the question. However I have already tried the obviously google searches.
  5. Sep 21, 2015 #4
    Did you try npiet for win32? If it doesn't work for you, what's not working? What others have you tried?
  6. Sep 21, 2015 #5
    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:
    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"
  7. Sep 22, 2015 #6
    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?
  8. Sep 22, 2015 #7
    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.
  9. Sep 22, 2015 #8
  10. Sep 22, 2015 #9
    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
  11. Sep 22, 2015 #10
    What about npiet.exe? Same thing?
  12. Sep 22, 2015 #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 (Text):
    npiet examples/loop.gif
  13. Sep 24, 2015 #12
    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
  14. Sep 24, 2015 #13
    Type what I said at that prompt.
  15. Sep 24, 2015 #14
    npiet examples/loop.gif just outputs
  16. Sep 24, 2015 #15
    That's the output of the program encoded in that image, what did you expect to see?
  17. Sep 24, 2015 #16
    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.
  18. Sep 24, 2015 #17
    I don't think you understand what that program does: it is nothing to do with the Piet programming language. You do realise that that language is just an elaborate joke?
  19. Sep 24, 2015 #18
    I think of it as a challenge
  20. Sep 24, 2015 #19
Share this great discussion with others via Reddit, Google+, Twitter, or Facebook