<div dir="ltr"><div><div><div><div><div><div>Hi all,<br><br></div>I'm trying to populate a new geonode instance (v2.4) with some shapefiles from another geonode (v2.4).<br><br>I have all the shapefiles in a directory so I'm inclined to use the importlayers command. And to make things easier, I've downloaded the metadata (ISO format, XML file) from the former geonode and placed it with the shapefiles that will be imported.<br><br></div>The importlayers command fails with the following message<br><br>./par_a01_2013_inventoryplotsubplot.shp<br>================<br>Traceback (most recent call last):<br>  File "/usr/local/lib/python2.7/dist-packages/geonode/layers/utils.py", line 588, in upload<br>    title=title<br>  File "/usr/local/lib/python2.7/dist-packages/geonode/layers/utils.py", line 429, in file_upload<br>    vals, regions, keywords = set_metadata(xml_file.read())<br>  File "/usr/local/lib/python2.7/dist-packages/geonode/layers/metadata.py", line 62, in set_metadata<br>    vals, regions, keywords = dc2dict(exml)<br>  File "/usr/local/lib/python2.7/dist-packages/geonode/layers/metadata.py", line 198, in dc2dict<br>    vals['date'] = sniff_date(mdata.modified)<br>  File "/usr/local/lib/python2.7/dist-packages/geonode/layers/metadata.py", line 222, in sniff_date<br>    return datetime.datetime.strptime(datestr.strip(), dfmt)<br>AttributeError: 'NoneType' object has no attribute 'strip'<br><br></div>If I remove the XML file from the shapefile directory, the importlayers command works OK.<br><br></div>Any idea what is wrong? Attached is the offending metadata file, just in case.<br></div>Cheers<br></div>Daniel<br></div>