471,896 Members | 2,069 Online
Bytes | Software Development & Data Engineering Community
Post +

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 471,896 software developers and data experts.

Psyche (scheme in python), how to run on vista?

anyone using psyche?

how do you run it on Vista? what file do you click? there is no
obvious file like psyche.py...
Jun 27 '08 #1
1 1153
On May 22, 5:19 am, notnorweg...@yahoo.se wrote:
anyone using psyche?

how do you run it on Vista? what file do you click? there is no
obvious file like psyche.py...
After installation, you should be able to find 'psyche.bat' in C:
\Python2.X\Scripts.

However, it hard codes the path for the python interpreter, so you'll
need to edit it to fix.

BUT! Doing so just reveals the next problem, running it I keep getting
complaints about the following piece of code:

def get_epsilon(self, None = None):
"""
Return the mapping for epsilon, or None.
"""
return self.special.get('', None)

I've never used psyche and I've no idea what the author was thinking
here, but the 'None = None' in the function parameters is a serious
'wtf?' You need to edit site-packages\psyche\Plex\Transitions.py line
85 to be:

def get_epsilon(self):

Then running psyche.bat will at least get the interpreter running. I
can make no guarantees on its correctness, however. But at least it
_seems_ to work:

C:\Python25\Scripts>psyche
Psyche version 0.4.3, Copyright (C) 2002 Y. Duppen

Psyche comes with ABSOLUTELY NO WARRANTY. This is free software,
and
you are welcome to redistribute it under certain conditions; read
the
attached COPYING for details.

psyche(define (plus1 x) (+ x 1))

psyche(plus1 2)
3

Hope this helps!

- alex23
Jun 27 '08 #2

This discussion thread is closed

Replies have been disabled for this discussion.

Similar topics

699 posts views Thread by mike420 | last post: by
176 posts views Thread by Thomas Reichelt | last post: by
5 posts views Thread by paolo veronelli | last post: by
4 posts views Thread by Vent d'Est - East Wind | last post: by
9 posts views Thread by Andy Sutorius | last post: by
3 posts views Thread by slogging_away | last post: by
6 posts views Thread by globalrev | last post: by
1 post views Thread by Barry Warsaw | last post: by
reply views Thread by YellowAndGreen | last post: by

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.