Re: Re: problems with trackback

Ted Leung <[email protected]>
Newsgroups gmane.comp.web.pyblosxom.user
Message-ID <[email protected]>
ImportError means that Python could not import (load) the module.  The  
reason that it's giving for failure looks like it's related to  
UNIX/Linux magic numbers in the .pyc (byte code compiled) file.   
According to the message you got, I'd expect there to be a trackback.py  
and trackback.pyc file in  
/home/reagle/data/2web/pyblosxom-1.2/contrib.1.2/plugins/comments/ 
plugins.  You should try removing that file and see if you still get  
the message.

Ted

On Apr 9, 2005, at 2:07 PM, Joseph Reagle wrote:

> On Saturday 09 April 2005 13:50, Eric Gaumer wrote:
>> Dumb question but are you sure the trackback plugin is actually there?
>
> Yep. BTW: the error message says:
> [[[
> ImportError: Bad magic number in  
> /home/reagle/data/2web/pyblosxom-1.2/contrib.1.2/plugins/comments/ 
> plugins/trackback.pyc
>       __doc__ = "Import can't find module, or can't find name in  
> module."
>       __getitem__ = <bound method ImportError.__getitem__ of  
> <exceptions.ImportError instance>>
>       __init__ = <bound method ImportError.__init__ of  
> <exceptions.ImportError instance>>
>       __module__ = 'exceptions'
>       __str__ = <bound method ImportError.__str__ of  
> <exceptions.ImportError instance>>
>       args = ('Bad magic number in  
> /home/reagle/data/2web/pyblo...ontrib.1.2/plugins/comments/plugins/ 
> trackback.pyc',)
> ]]]
>
> ***
> That's in  
> /home/reagle/data/2web/pyblosxom-1.2/contrib.1.2/plugins/comments/ 
> plugins/trackback.pyc which makes me think it can find it, but not  
> something else. In any case, it works fine from the command line:
>
> === plugin: 'trackback'
>     file:  
> /home/reagle/data/2web/pyblosxom-1.2/contrib.1.2/plugins/comments/ 
> plugins/trackback.pyc
>     plugin has no version.
>     PASS
>
> The one Ted send me is attached.
> <trackback.py>
----
Ted Leung                          Blog: <http://www.sauria.com/blog>
PGP Fingerprint: 1003 7870 251F FA71 A59A  CEE3 BEBA 2B87 F5FC 4B42



-------------------------------------------------------
SF email is sponsored by - The IT Product Guide
Read honest & candid reviews on hundreds of IT Products from real users.
Discover which products truly live up to the hype. Start reading now.
http://ads.osdn.com/?ad_id=6595&alloc_id=14396&op=click
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.