-
Notifications
You must be signed in to change notification settings - Fork 29
Open
Description
Got an error like this
AttributeError: module 'mmap' has no attribute 'MAP_SHARED'
after change this line
self.raw = mmap.mmap(fd, fullsize, mmap.MAP_SHARED, mmap.PROT_READ)to
if sys.platform.startswith('win'):
# Windows
self.raw = mmap.mmap(fd, fullsize, access=mmap.ACCESS_READ)
else:
# Unix-like
self.raw = mmap.mmap(fd, fullsize, mmap.MAP_SHARED, mmap.PROT_READ)got an error like this
return struct.unpack_from('>H', self.raw,
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
TypeError: 'float' object cannot be interpreted as an integer
Could you assist in resolving this issue?
Metadata
Metadata
Assignees
Labels
No labels