On Thursday, February 17, 2011 04:48:31 pm LJ wrote: > I installed the latest version of dajaxice, but I am still getting > Unresolved import errors. > My guess is that I need to remove and reinstall the Python > Interpreters. > Is there a some documentation somewhere that explains how to reinstall > the Python Interpreters, so I can resolve all of my Unresolved Import > errors?
I would first and foremost check out the PYTHONPATH [1] and make sure that is all kosher. This is something very important to understand about python. defining kosher as the modules you are trying to import are located within the PYTHONPATH. By default the packages should been installed by to site-packages within the python lib dir. in *nix this is normally /usr/lib/python$VERSION}/site-packages i.e. /usr/lib/python2.6/site-packages/ for python 2.6 in Windows this would be C:\Python${VERSION}\Lib\site-packages the python interpretter will search these by default for 3rd party modules and install them to this directory if using python install or easy_install/pip If your modules still aren't importing correctly make sure that if you do have different versions of python installed then you're using the one you installed it with. if you installed the broken modules to another path, you'll need to set the PYTHONPATH manually in your environment. After all this, if it's still broken (and youre 100% you've done this all correctly), then reinstall according to your operating systems needs. *note apple/macs have a default interpretter that's apple specific and in the past people have installed pythong from macports. if you've done this, go back and make sure you're using the correct python interpretter version, or reinstall your broken modules with this version. *DISCLAIMER: I do not use or own a mac, this is mostly hersay and you can find other posts on this list or blogs for macs." IF none of this fixes your problem (which I doubt you should get here, unless you just don't understand your operating system), reinstall python according to the operating system in question, i.e. in redhat use yum reinstall python, apt-get for ubuntu/debian, for windows use the installer from python.org, mac I'm not sure for macs what is best, see disclaimer above, [1] http://docs.python.org/using/cmdline.html#envvar-PYTHONPATH -- People need good lies. There are too many bad ones. -- Bokonon, "Cat's Cradle" by Kurt Vonnegut, Jr. -- You received this message because you are subscribed to the Google Groups "Django users" group. To post to this group, send email to django-users@googlegroups.com. To unsubscribe from this group, send email to django-users+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/django-users?hl=en.