Textualize / toolong

A terminal application to view, tail, merge, and search log files (plus JSONL).

Home Page:https://www.textualize.io/

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Windows Support?

nzsmith1 opened this issue · comments

First off - thank you for this project and your others (we use Textual a lot!)

Having some issues using this in Windows, not sure if Windows is supposed to be supported or not.

Installation:

  • pipx 1.4.3
  • Windows 11
  • Python 3.11.2

Issues so far:

  • mmap.mmap call is a little different on Windows or atleast on my machine?
    Had to change prot=mmap.PROT_READ to access=mmap.ACCESS_READ - found this error here: mvt-project/mvt#61

Now I am getting - AttributeError: module 'os' has no attribute 'pread'

It is unclear to me how I can edit this to work on Windows because I am not confident I understand what you are doing here with os.preread

  • Cheers

It doesn't run on Windows yet. I've updated the README.

The file watcher will also need updating. It uses the selectors API which only works with sockets on Windows.

It will be a little work for Windows, but it is coming.

Toolong runs on Windows from 1.2.0 onwards...