You seem to be right, like executing the two command which you asked
produces the same type of error shown in the backtrace of cherokee-admin.

/python/lib/python2.6# python -c "import hashlib"
Traceback (most recent call last):
  File "<string>", line 1, in <module>
  File "hashlib.py", line 136, in <module>
    md5 = __get_builtin_constructor('md5')
  File "hashlib.py", line 63, in __get_builtin_constructor
    import _md5
ImportError: No module named _md5


/python/lib/python2.6# python -c "import urllib2"
Traceback (most recent call last):
  File "<string>", line 1, in <module>
  File "urllib2.py", line 91, in <module>
    import hashlib
  File "hashlib.py", line 136, in <module>
    md5 = __get_builtin_constructor('md5')
  File "hashlib.py", line 63, in __get_builtin_constructor
    import _md5
ImportError: No module named _md5


I have no idea as to how can I solve this error.

Thank you for your time and efforts.

> On 21/12/2010, at 10:48, Mahendra Liya wrote:
>
>> What I believe is that at runtime, cherokee-admin tries to look for
>> "md5"
>> module of Python in the "lib" folder of the file system, but as I have
>> installed Python at a different location ( in my case: /python ), it is
>> not able to find "md5" module and import it. I hope this is the problem.
>>
>> Do you have any idea how can this be resolved?
>
> There is a single place in the Cherokee-admin code the md5 module is
> loaded. However, that code is only executed on Python 2.4, so in this case
> we can be certain that isn't the problem.
>
> Actually, according with the backtraces you posted, the import of _md5 is
> triggered by both the hashlib and urllib2 modules (Python modules part of
> the standard library that is shipped with the interpreter).
>
> Try to execute: python -c "import hashlib"   or   python -c "import
> urllib2"  and you will be what I'm talking about. The bug is hidden within
> your Python installation. It is not a Cherokee issue, actually.
>
> Good luck!
>
> --
> Octality
> http://www.octality.com/
>

_______________________________________________
Cherokee mailing list
[email protected]
http://lists.octality.com/listinfo/cherokee

Reply via email to