[issue30388] ndbm can't iterate through values on OS X

2017-06-09 Thread Forest Gregg

Forest Gregg added the comment:

A different user:

otool -L $(python3.6 -c 'import _dbm;print(_dbm.file)')
/usr/local/var/pyenv/versions/3.6.1/lib/python3.6/lib-dynload/_dbm.cpython-36m-darwin.so:
/usr/lib/libSystem.B.dylib (compatibility version 1.0.0, current version 
1238.50.2)

--

___
Python tracker 
<http://bugs.python.org/issue30388>
___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue30388] ndbm can't iterate through values on OS X

2017-06-06 Thread Forest Gregg

Forest Gregg added the comment:

>From one user who had problems under both 3.5 and 3.6

otool -L $(python3.5 -c 'import _dbm;print(_dbm.__file__)')

/Library/Frameworks/Python.framework/Versions/3.5/lib/python3.5/lib-dynload/_dbm.cpython-35m-darwin.so:
/usr/lib/libSystem.B.dylib (compatibility version 1.0.0,
current version 125.2.0)

otool -L $(python3.6 -c 'import _dbm;print(_dbm.__file__)')

/Library/Frameworks/Python.framework/Versions/3.6/lib/python3.6/lib-dynload/_
dbm.cpython-36m-darwin.so:

/usr/lib/libSystem.B.dylib (compatibility version 1.0.0, current version
125.2.0)

--

___
Python tracker 
<http://bugs.python.org/issue30388>
___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue30388] ndbm can't iterate through values on OS X

2017-06-05 Thread Forest Gregg

Forest Gregg added the comment:

I have been trying to make a small reproducible example, but haven't been able 
to isolate it. 

Running this script [1] csv_example on mac os x under either py27 or py3 does 
seem *often* cause this problem [2], [3]:

[1] 
https://github.com/dedupeio/dedupe-examples/blob/master/csv_example/csv_example.py
[2] https://github.com/dedupeio/dedupe/issues/571
[3] https://github.com/dedupeio/dedupe-examples/issues/54

--

___
Python tracker 
<http://bugs.python.org/issue30388>
___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue30388] ndbm can't iterate through values on OS X

2017-05-19 Thread Forest Gregg

Forest Gregg added the comment:

Very sorry for the ambiguity. 

The bug appears for both python 3.5 and python 3.6.1 on OS X. I have not tried 
other versions of python on OS X.

--

___
Python tracker 
<http://bugs.python.org/issue30388>
___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue30388] ndbm can't iterate through values on OS X

2017-05-18 Thread Forest Gregg

Forest Gregg added the comment:

The ndbm db's two files (in the attachment) have the following size

tmp___otctx 0 bytes
tmp___otctx.db 12857344 bytes

--

___
Python tracker 
<http://bugs.python.org/issue30388>
___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue30388] ndbm can't iterate through values on OS X

2017-05-17 Thread Forest Gregg

Changes by Forest Gregg :


--
type:  -> behavior

___
Python tracker 
<http://bugs.python.org/issue30388>
___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue30388] ndbm can't iterate through values on OS X

2017-05-17 Thread Forest Gregg

New submission from Forest Gregg:

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.

--
components: Library (Lib)
files: ndbm.zip
messages: 293858
nosy: Forest Gregg
priority: normal
severity: normal
status: open
title: ndbm can't iterate through values on OS X
versions: Python 3.5
Added file: http://bugs.python.org/file46872/ndbm.zip

___
Python tracker 
<http://bugs.python.org/issue30388>
___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com