schmichael / mmstats

Memory Mapped Stats Tools
Other
100 stars 8 forks source link

mmap not usable from windows #18

Open Gloombloom opened 12 years ago

Gloombloom commented 12 years ago

Python 2.7.2

(mmstats) C:\REPO\mmstats>python mmstats\mmash.py Traceback (most recent call last): File "mmstats\mmash.py", line 11, in from mmstats import reader as mmstats_reader File "C:\REPO\mmstats\mmstatsinit.py", line 5, in from .models import * File "C:\REPO\mmstats\mmstats\models.py", line 6, in from . import fields, libgettid, _mmap File "C:\REPO\mmstats\mmstats_mmap.py", line 47, in libc.mmap.restype = ctypes.c_void_p File "c:\Python27\Lib\ctypesinit.py", line 366, in getattr func = self.getitem(name) File "c:\Python27\Lib\ctypesinit.py", line 371, in getitem func = self._FuncPtr((name_or_ordinal, self)) AttributeError: function 'mmap' not found

schmichael commented 12 years ago

I've started a first attempt, but I don't have Windows handy to test it on:

https://github.com/schmichael/mmstats/compare/windows-mmap#L0R43

My guess is that 2 things will definitely need fixing: