[TxMt] Re: Problems with python bundle

Andrea Crotti kerny404 at gmail.com
Tue Dec 30 20:03:03 UTC 2008




Alex Ross-8 wrote:
> 
> On Dec 30, 2008, at 11:22 AM, Andrea Crotti wrote:
> 
>> So for some reasons I can not import the damn module...
> 
> wait, so you don't get the error when you import from interactive  
> python?  can you paste a minimal example of code that generates the  
> error you are getting?
> 
> 
> _______________________________________________
> textmate mailing list
> textmate at lists.macromates.com
> http://lists.macromates.com/listinfo/textmate
> 
> 
Actually I get this error only when I try a command-h on a word
(documentation for word in the python bundle).

This is the whole traceback
Traceback (most recent call last): File "", line 7, in File
"/Users/andrea/Library/Application Support/TextMate/Pristine
Copy/Bundles/Python.tmbundle/Support/DocMate/docmate.py", line 7, in import
urllib2 File
"/opt/local/Library/Frameworks/Python.framework/Versions/2.5/lib/python2.5/urllib2.py",
line 91, in import hashlib File "hashlib.py", line 134, in md5 =
__get_builtin_constructor('md5') File "hashlib.py", line 60, in
__get_builtin_constructor import _md5 ImportError: No module named _md5


The problem is generated from urllib2..
Uhm maybe I'm starting to understand,
urllib2 is located in
/opt/local/Library/Frameworks/Python.framework/Versions/2.5/lib/python2.5/
with hashlib, BUT
_hashlib.so is in
/opt/local/lib/python2.5/site-packages

I don't understand why the hell of this mess but I'll try to fix it..

-- 
View this message in context: http://www.nabble.com/Problems-with-python-bundle-tp20577401p21222389.html
Sent from the textmate users mailing list archive at Nabble.com.




More information about the textmate mailing list