You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I'm using a package that uses pybloomfilter. That package is poorly documented and when I guess wrong at some command-line parameters it used pybloomfilter to start overwriting the test bloom filter file it had included in the package.
So after re-downloading the package, I disabled write access for the test files before trying again. This time I got the command-line parameters right, and it tried to use pybloomfilter to read the existing BF file.
But the open called from line 325 in pybloomfilter.pyx doesn't appear to give the caller any way to specify a read-only file. So in cinit at line 52 and/or line 57 and/or line 62 it decides the filemode is read-write. And then os.access (correctly) refuses to open the file, and the OSError("Insufficient permissions...") exception is raised.
Is a read-only BF an unanticipated use case?
The text was updated successfully, but these errors were encountered:
I'm using a package that uses pybloomfilter. That package is poorly documented and when I guess wrong at some command-line parameters it used pybloomfilter to start overwriting the test bloom filter file it had included in the package.
So after re-downloading the package, I disabled write access for the test files before trying again. This time I got the command-line parameters right, and it tried to use pybloomfilter to read the existing BF file.
But the open called from line 325 in pybloomfilter.pyx doesn't appear to give the caller any way to specify a read-only file. So in cinit at line 52 and/or line 57 and/or line 62 it decides the filemode is read-write. And then os.access (correctly) refuses to open the file, and the OSError("Insufficient permissions...") exception is raised.
Is a read-only BF an unanticipated use case?
The text was updated successfully, but these errors were encountered: