Author Forest Gregg
Recipients Forest Gregg
Date 2017-05-17.16:03:54
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1495037035.06.0.766456965201.issue30388@psf.upfronthosting.co.za>
In-reply-to
Content
On Mac OS 10.12.4, a large shelve, backed by ndbm, can be created. But when I attempt to iterate through the values of the shelve it raises this exception:


  File "/Library/Frameworks/Python.framework/Versions/3.5/lib/python3.5/site-packages/dedupe/api.py", line 281, in _blockData
    for block in viewvalues(blocks):
  File "/Library/Frameworks/Python.framework/Versions/3.5/lib/python3.5/_collections_abc.py", line 693, in __iter__
    for key in self._mapping:
  File "/Library/Frameworks/Python.framework/Versions/3.5/lib/python3.5/shelve.py", line 95, in __iter__
    for k in self.dict.keys():
SystemError: Negative size passed to PyBytes_FromStringAndSize

I've confirmed that this works with Python 3.6.1. All the Python versions were installed from homebrew.

I cannot reproduce on linux on windows machines. I've attached a zip file of the ndbm files that python created.
History
Date User Action Args
2017-05-17 16:03:55Forest Greggsetrecipients: + Forest Gregg
2017-05-17 16:03:55Forest Greggsetmessageid: <1495037035.06.0.766456965201.issue30388@psf.upfronthosting.co.za>
2017-05-17 16:03:55Forest Gregglinkissue30388 messages
2017-05-17 16:03:54Forest Greggcreate