[issue37241] Item Count Error in Shelf

2019-06-13 Thread SilentGhost
Change by SilentGhost : -- stage: -> resolved status: open -> closed ___ Python tracker ___ ___ Python-bugs-list mailing list

[issue37241] Item Count Error in Shelf

2019-06-13 Thread Jesse Bacon
Change by Jesse Bacon : -- resolution: -> third party ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue37241] Item Count Error in Shelf

2019-06-13 Thread Jesse Bacon
Jesse Bacon added the comment: I was using anaconda distribution on OSX. It failed for 3.6 and 3.7. I pulled off anaconda and compiled from source and the script executed correctly regardless of whether or not "--enable-optimizations" was set. Anaconda claims to be geared towards

[issue37241] Item Count Error in Shelf

2019-06-12 Thread Eric V. Smith
Eric V. Smith added the comment: After fixing a missing import (import urllib.request), this is what I get: $ /usr/local/bin/python3.6 pbr37241_Jesse_Bacon.py Fetching nvdcve-1.0-2019.json.gz Storing Gzipped File Loading JSON Content 4275 records 4275 unique records Creating Shelve:

[issue37241] Item Count Error in Shelf

2019-06-12 Thread Jesse Bacon
Jesse Bacon added the comment: Eric, The interpreter said something about passing a negative value when I converted the db.keys to a list. I have attached a script in txt format and a Jupyter notebook for further analysis. I apologize for posting images, I just saw your note. I'll go

[issue37241] Item Count Error in Shelf

2019-06-12 Thread Jesse Bacon
Change by Jesse Bacon : Added file: https://bugs.python.org/file48415/pbr37241_Jesse_Bacon.py.txt ___ Python tracker ___ ___

[issue37241] Item Count Error in Shelf

2019-06-12 Thread Jesse Bacon
Change by Jesse Bacon : Added file: https://bugs.python.org/file48414/Python Proof.ipynb ___ Python tracker ___ ___ Python-bugs-list

[issue37241] Item Count Error in Shelf

2019-06-12 Thread Eric V. Smith
Eric V. Smith added the comment: This still isn't an example we can copy and paste to reproduce, so I'm going to be unable to help you. Sorry. Again: please don't post images, for the reasons I previously stated. -- ___ Python tracker

[issue37241] Item Count Error in Shelf

2019-06-12 Thread Jesse Bacon
Change by Jesse Bacon : Added file: https://bugs.python.org/file48413/ShelfKeys.png ___ Python tracker ___ ___ Python-bugs-list mailing

[issue37241] Item Count Error in Shelf

2019-06-12 Thread Jesse Bacon
Jesse Bacon added the comment: I am missing keys, when extracting the data back out with todays NVD pull. --- KeyError Traceback (most recent call last) ~/anaconda3/lib/python3.6/shelve.py

[issue37241] Item Count Error in Shelf

2019-06-11 Thread Eric V. Smith
Eric V. Smith added the comment: Please do not post images: we can't copy and paste from them, and they're unfriendly to visually impaired users. Can you create code that reproduces this? A small example, with no external dependencies would be best. Please attach the reproducer as a text

[issue37241] Item Count Error in Shelf

2019-06-11 Thread Jesse Bacon
New submission from Jesse Bacon : I have loaded the National Vulnerability Database from NIST for 2019 and it includes 3989 JSON Documents. This data I have placed in a shelf. when I run len(db.keys()) I get 3658. len(set(cves)) == 3989 : True When I extract the data from the shelf I have