-
Notifications
You must be signed in to change notification settings - Fork 1
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Replace pickle
with shelve
#4
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Please fix this error:
Traceback (most recent call last):
File "", line 1, in
File "/Users/bahar/Documents/1-UIUC/Analytics/pyhcp/zipshelve.py", line 359, in open
return ZipShelf(filename, mode, protocol, compress_level, writeback, silent)
File "/Users/bahar/Documents/1-UIUC/Analytics/pyhcp/zipshelve.py", line 107, in init
shelve.Shelf.init(self, dbm.open(self.__filename, mode), protocol, writeback)
File "/anaconda3/envs/botohcp/lib/python3.7/dbm/init.py", line 88, in open
raise error[0]("db type could not be determined")
dbm.error: db type could not be determined
This error is caused by a file-naming issue. Dropping the extension from the name
on MacOS machines. See here for more details. |
But reading the database is a MacOS issue caused by STEP 1 - Getting brew Python
which may tell you Python is already installed with some version of Python 2.7.X. Then we need to follow instruction and run
which should install Python 3.7.X correctly. BUT the brew recipe seems to include the
but hopefully those commands won't be required. Sometimes you will have to fix a permission denied error. STEP 2 - Linking gdbm to AnacondaNext activate the
on the terminal. The output is your destination folder. Then deactivate the environment and run:
That is our source folder. Sometimes you may have to use REMARK: Confirm that |
Reviewer(s), please try to break this branch before approving merge-request. See issue for details. In short, legacy code was modified/updated and used to compress shelve files.
Suggested actions:
automate.py
on a fresh Anaconda environment to generate the shelve files inHCP_1200
folder.HCP_1200/README.md
to ensure generated binaries are accessible.zipshelve.py
from the repo.test.py
file in the new folder. In that file, importzipshelve
and run all sorts of crazy tests on the binaries to see what can be made broken.