FX31337 / FX-BT-Scripts

:page_facing_up: Useful scripts for backtesting.
MIT License
34 stars 39 forks source link

AttributeError: mode 'mmap' has no attribute 'PROT_READ' #95

Closed kenorb closed 5 years ago

kenorb commented 5 years ago

image image

Tested on Windows, with Python 3.7.

Could it be Windows limitation of mmap. The script should have a fallback to use non-mmap approach.

Refs:

kenorb commented 5 years ago

Fix: mmap.mmap(self.path.fileno(), 0, access=mmap.ACCESS_READ)

kenorb commented 5 years ago

Fixed in ed85d20996e1cc73ffd38607a9bcf824f80d3c45