Check out this traceback. I don't even have a /var/tmp/python-root directory on my machine! What's going on? How can I make my code use my python2.1 version of mimetools? File /var/Zope-2.3.2-src/lib/python/Products/JamkitTypes/MailMessage.py, line 232, in _unpack_part (Object: DynamicType) File /var/tmp/python-root/usr/lib/python1.5/mimetools.py, line 146, in decode ValueError: (see above) Cheers, seb -- [] j a m k i t seb bacon T: 020 7749 7218 F: 020 7739 8683 M: 07968 301 336 W: www.jamkit.com
On 13/6/01 10:27 pm, "seb bacon" <seb@jamkit.com> wrote:
Check out this traceback. I don't even have a /var/tmp/python-root directory on my machine! What's going on? How can I make my code use my python2.1 version of mimetools?
File /var/Zope-2.3.2-src/lib/python/Products/JamkitTypes/MailMessage.py, line 232, in _unpack_part (Object: DynamicType) File /var/tmp/python-root/usr/lib/python1.5/mimetools.py, line 146, in decode ValueError: (see above)
Cheers,
seb
Have you got any .pyc or .pyo files of the same name (mimetype.pyc .pyo). If so, nuke em and restart. Tone. -- Dr Tony McDonald, Assistant Director, FMCC, http://www.fmcc.org.uk/ The Medical School, Newcastle University Tel: +44 191 243 6140 A Zope list for UK HE/FE http://www.fmcc.org.uk/mailman/listinfo/zope
On Wed, 13 Jun 2001, seb bacon wrote:
Check out this traceback. I don't even have a /var/tmp/python-root directory on my machine! What's going on? How can I make my code use my python2.1 version of mimetools?
Obviously you have Python installed from an RPM. The RPM build does it's business in a fake root (/var/tmp/python-root), and so this is the filename that goes into the compiled product (MailMessage.pyc, in this case).
File /var/Zope-2.3.2-src/lib/python/Products/JamkitTypes/MailMessage.py, line 232, in _unpack_part (Object: DynamicType) File /var/tmp/python-root/usr/lib/python1.5/mimetools.py, line 146, in decode ValueError: (see above)
My guess is your Zope was not started (or compiled) using Python 2.1, but rather 1.5.x (x probably == 2). To solve this, rebuild Zope using the correct version of Python. i.e. python2.1 wo_cgi.py or whatever. -- Andy Dustman PGP: 0xC72F3F1D @ .net http://dustman.net/andy "I'd rather listen to Newton than to Mundie. He may have been dead for almost three hundred years, but despite that he stinks up the room less." -- Linus T.
seb bacon writes:
Check out this traceback. I don't even have a /var/tmp/python-root directory on my machine! What's going on? How can I make my code use my python2.1 version of mimetools?
File /var/Zope-2.3.2-src/lib/python/Products/JamkitTypes/MailMessage.py, line 232, in _unpack_part (Object: DynamicType) File /var/tmp/python-root/usr/lib/python1.5/mimetools.py, line 146, in decode ValueError: (see above) You get such tracebacks, when you have installed binary "*.pyc" files. They contain the path to the source they have been compiled from.
Hm, are you sure, you are using "python2.1" for your Zope? It is quite unusual that python accesses a different version of its runtime library. Dieter
participants (4)
-
Andy Dustman -
Dieter Maurer -
seb bacon -
Tony McDonald