So, I have got quite a problem here...I don't know what is going on. I have
a machine running Ubuntu 7.04 for work. At work we have been using
python2.4for a bunch of stuff but now are moving things to
python2.5. Well, all the while to enable updates to work I have had to
switch the symbolic link to python from python2.4 to 2.5. Well, today I
switched the symbolic link to point to python2.5 and when I start python it
brings up python2.4....so I did an ls -l on the /usr/bin directory and
python was linked to python2.5. So I started python by just typing
python2.5....and it brought up python2.4.....python2.5 does not show a link
to anything, it is just a binary executable file....

I decided I should try and reload the python2.5 package so I typed
dpkg-reconfigure python2.5....and I get an exception...this is what i get:

Error in sys.excepthook:
Traceback (most recent call last):
  File "/var/lib/python-support/python2.4/apport_python_hook.py", line 30,
in ap port_excepthook
    import apport.report, apport.fileutils
  File "/var/lib/python-support/python2.4/apport/__init__.py", line 1, in ?
    from apport.report import Report
  File "/var/lib/python-support/python2.4/apport/report.py", line 14, in ?
    import subprocess, tempfile, os.path, urllib, re, pwd, grp, os, sys
  File "/usr/lib/python2.5/subprocess.py", line 403, in ?
    import pickle
  File "/usr/lib/python2.5/pickle.py", line 34, in ?
    import struct
  File "/usr/lib/python2.5/struct.py", line 30, in ?
    from _struct import Struct, error
ImportError: No module named _struct

Original exception was:
Traceback (most recent call last):
  File "/usr/lib/python2.5/py_compile.py", line 164, in ?
    main()
  File "/usr/lib/python2.5/py_compile.py", line 159, in main
    compile(filename, doraise=True)
  File "/usr/lib/python2.5/py_compile.py", line 127, in compile
    py_exc = PyCompileError(err.__class__,err.args,dfile or file)
  File "/usr/lib/python2.5/py_compile.py", line 48, in __init__
    tbtext = ''.join(traceback.format_exception_only(exc_type, exc_value))
  File "/usr/lib/python2.5/traceback.py", line 171, in format_exception_only
    if (isinstance(etype, BaseException) or
NameError: global name 'BaseException' is not defined


Any ideas of what I can do?
Thanks
--------------------
BYU Unix Users Group 
http://uug.byu.edu/ 

The opinions expressed in this message are the responsibility of their
author.  They are not endorsed by BYU, the BYU CS Department or BYU-UUG. 
___________________________________________________________________
List Info: http://uug.byu.edu/cgi-bin/mailman/listinfo/uug-list

Reply via email to