[Tutor] am I a dope? - nasty_exception_str =.....

2006-10-30 Thread Michael Daly
Hello python tutor
when I tried to start a program called 'zope' that depends on python, I got
this message at the bottom of a lot of 'traceback'*, and 'zope' didn't
start:

nasty_exception_str = Exception.__str__.im_func
AttributeError: 'wrapper_descriptor' object has no 
attribute 'im_func'

zope seemed to install OK in the same dir (/home/digium400p/zope) to which I
directed (via prefix option) the python 2.5 install. I did this because
python 2.3.4 is also installed in the default location on the operating
system (which is centos 4.4), and I wanted to keep it that way. Zope
requires at least python 2.4.3

I didn't use the 'make altinstall' option for the python 2.5  install-should
I redo this?

*this is the output:

Traceback (most recent call last):
  File "/home/digium400p/zope/lib/python/Zope2/Startup/zopectl.py", 
line 322, in 
main()
  File "/home/digium400p/zope/lib/python/Zope2/Startup/zopectl.py", 
line 280, in main
options.realize(args)
  File "/home/digium400p/zope/lib/python/Zope2/Startup/zopectl.py", 
line 91, in realize
ZDOptions.realize(self, *args, **kw)

etc etc, finally ending in

File "/home/digium400p/zope/lib/python/DocumentTemplate/html_quote.py
", line 4, in 
from ustr import ustr
File "/home/digium400p/zope/lib/python/DocumentTemplate/ustr.py", 
line 18, in 
nasty_exception_str = Exception.__str__.im_func
AttributeError: 'wrapper_descriptor' object has no 
attribute 'im_func'


Any help would be great
Signed..

...very compused



___
Tutor maillist  -  Tutor@python.org
http://mail.python.org/mailman/listinfo/tutor


[Tutor] python, python2 & python2.3 in /usr/bin

2006-11-05 Thread Michael Daly
Greetings everyone
Could someone please explain these links...python2 seems to have resulted
from an installation of python 2.5 (in a specified dir via the --prefix
switch) and is a symbolic link to 'python'

The others - python and python2.3 are just files and predate the python2
file.

I am worried that installing python 2.5 might have upset the 'path' for
python (which I don't understand very well).

When I type 'python -V' I get:
python 2.3.4
which is what i want for centos / asterisk; however asterisk had trouble
starting after a reboot (it is a python 2.3.4 dependent app) 

Does this sound normal?

Thanks to anyone who can help

Regards & remaining, 

Compused
 



 


___
Tutor maillist  -  Tutor@python.org
http://mail.python.org/mailman/listinfo/tutor