jsdpag / pysyncq

GNU General Public License v3.0
5 stars 1 forks source link

Windows compatability #2

Open jsdpag opened 1 year ago

jsdpag commented 1 year ago

There are at least two problems. 1) header.py uses Unix specific library resource. 2) memoryview cannot be pickled across the spawn to a child process.

Work arounds: 1) Check OS and assign hard-coded default value if Windows. 2) Check OS. Establish memoryview objects in call to .open( ) method if Windows, rather than during .__init__( ). If nix then do* establish memoryviews during init, for sharing amongst all child processes.

jsdpag commented 1 year ago

Problems 1 and 2 are resolved in v0.0.1. But there is an problem 3, now. There is some mysterious UTF encoding/decoding error when running demo.py. This crashes the parent process. And yet, the child processes continue to work as expected.