Skip to content Skip to sidebar Skip to footer

How To Use Uuid Lib With Mod_wsgi?

This is the traceback: mod_wsgi: Target WSGI script '/[..]/project/wsgi.py' cannot be loaded as Python module. mod_wsgi: Exception occurred processing WSGI script '/[..]/project/ws

Solution 1:

uuid is bundled with python since version 2.5, see docs, you should not install it in your virtual environment.

There is no need to install it.

Solution 2:

After wrestling with this today, what solved it for me was actually Daniel Roseman's comment.

If you're getting this error in Python 3, it's because you've inadvertently installed the uuid Python 2 backport, which is masking the standard library uuid, which is what you presumably want to import.

So:

  1. Run pip uninstall uuid to uninstall the extraneous backport.
  2. Make sure none of your packages list uuid as a requirement for python versions greater than 2.5.

Post a Comment for "How To Use Uuid Lib With Mod_wsgi?"