473,396 Members | 1,809 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,396 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 1194
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 thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

699
by: mike420 | last post by:
I think everyone who used Python will agree that its syntax is the best thing going for it. It is very readable and easy for everyone to learn. But, Python does not a have very good macro...
176
by: Thomas Reichelt | last post by:
Moin, short question: is there any language combining the syntax, flexibility and great programming experience of Python with static typing? Is there a project to add static typing to Python? ...
5
by: paolo veronelli | last post by:
I've a vague idea of the differences,I don't know scheme anyway. I'd like to see an example to show what is missing in python about closures and possibly understand if ruby is better in this...
4
by: Vent d'Est - East Wind | last post by:
Can somebody tell me what s exactly the difference beetween scheme and python languages i m thiking to learn one of them but i m not sure wich one somebody told me python is better and have...
9
by: Andy Sutorius | last post by:
Hi group, I am getting the "could not load type" error and I'm not sure how to debug. Obviously it's a namespace error but I don't see it. Below are code snippets. Yes, the files sit in a...
3
by: slogging_away | last post by:
I know, I know - flame away but its not clear to me if Python will run on a system running Microsoft Vista. Is anyone successfully running Python on Vista? If so, is it what version of Python are...
6
by: globalrev | last post by:
type "python setup.py install" that is used in most "addons" for python. well using windows vista, where the h*** am i supposed to type this? if it is not doable in windows, what do i have...
11
by: gnuist006 | last post by:
Is there a Delphi equivalent in the C world or Scheme/LISP world ? Recently, Delphi is in resurgence. In Russia people are using like crazy. For example, Bolega has written a free image...
1
by: Barry Warsaw | last post by:
-----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1 On behalf of the Python development team and the Python community, I am happy to announce the first release candidate for Python 2.6. This is a...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
0
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...

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.