diging / tethne

Python module for bibliographic network analysis.
http://diging.github.io/tethne/
GNU General Public License v3.0
82 stars 32 forks source link

The zotero reader breaks while loading a corpus. #80

Closed nischalsamji closed 9 years ago

nischalsamji commented 9 years ago

When trying to import a corpus generated from a corpus getting the following error. The folder contains a rdf exported from zotero.

Traceback (most recent call last):
  File "<stdin>", line 1, in <module>
  File "/home/nischal/diging/tethne/tethne/readers/zotero.py", line 177, in read
    papers = ZoteroParser(path).parse()
  File "/home/nischal/diging/tethne/tethne/readers/base.py", line 278, in parse
    self.handle(tag, o)    
  File "/home/nischal/diging/tethne/tethne/readers/base.py", line 287, in handle
    data = handler(data)
  File "/home/nischal/diging/tethne/tethne/readers/zotero.py", line 86, in handle_date
    return datetime.strptime(str(value), "%m/%d/%Y").date().year
  File "/usr/lib/python2.7/_strptime.py", line 325, in _strptime
    (data_string, format))
ValueError: time data 'December 23, 2014' does not match format '%m/%d/%Y'
nischalsamji commented 9 years ago

Updated the branch bugfix- #80 with a fix. Testing in progress.

nischalsamji commented 9 years ago

Fixed the Issue bugfix-#80 merged with develop