[Pythonmac-SIG] Python Metadata Importer

Jonathan Wight jwight_lists at toxicsoftware.com
Thu May 26 16:54:59 CEST 2005


After adding Gideon's suggestion for CRLF ending file. My importer is  
failing on only 8 files out of 3084 files.

All the failures are with Python files that try to generate the  
__version__ attribute with code instead, e.g.:

__version__ = string.split('$Revision: 1.8 $')[1]
__version__ = '$Revision: 1.6 $'[11:-2]

And so on.

My options are:

#1 Continue to fail and not process the script any further (easiest  
solution ;-)
#2 Just ignore the attribute in question.
#3 Convert the attribute into a string even though it might not make  
much sense.
#4 Execute the line and get the computed value of the attribute.

I don't really want to execute the line - who the heck knows what it  
could do. Unless anyone has any better ideas I'm just going to try  
and gracefully ignore the attribute.

     Jon.


On May 26, 2005, at 09:37, Nicholas Riley wrote:


> On Thu, May 26, 2005 at 12:13:02AM -0400, Jonathan Wight wrote:
>
>
>> Just to let everyone know that my Python Metadata Importer plug-in
>> was released the other day.
>>
>>      http://toxicsoftware.com/blog/index.php/weblog/
>> python_metadata_importer_101_released/
>>
>>
>
> Since I installed this I got a continuous stream of:
>
> May 26 08:32:27 byron mdimportserver[29832]: Exception occured: ***
> -[NSCFArray addObject:]: attempt to insert nil
>
> in console.log.  I assume this will go away once the import finishes,
> but it's rather annoying at the moment.
>
> -- 
> Nicholas Riley <njriley at uiuc.edu> | <http://www.uiuc.edu/ph/www/ 
> njriley>
> _______________________________________________
> Pythonmac-SIG maillist  -  Pythonmac-SIG at python.org
> http://mail.python.org/mailman/listinfo/pythonmac-sig
>
>




More information about the Pythonmac-SIG mailing list