Skip to content

Commit

Permalink
Fix #1
Browse files Browse the repository at this point in the history
  • Loading branch information
DandelionSprout authored Feb 9, 2022
1 parent 30925d1 commit 4393f66
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
# Nyx for Windows

The two main files in this repo, [starter.py](https://raw.githubusercontent.com/DandelionSprout/NyxForWindows/main/starter.py) and [header.py](https://raw.githubusercontent.com/DandelionSprout/NyxForWindows/main/header.py), can be used to patch and get the `pip` version of Nyx 2.1.0 (A monitor tool for Tor) to run natively on Windows 11, Windows 10, or Windows 8.
The three main files in this repo, [starter.py](https://raw.githubusercontent.com/DandelionSprout/NyxForWindows/main/starter.py), [header.py](https://raw.githubusercontent.com/DandelionSprout/NyxForWindows/main/header.py), and [tracker.py](https://raw.githubusercontent.com/DandelionSprout/NyxForWindows/main/tracker.py), can be used to patch and get the `pip` version of Nyx 2.1.0 (A monitor tool for Tor) to run natively on Windows 11, Windows 10, or Windows 8.

This is done by simply removing the scripts' dependency on the `get_uid` and `uname` attributes in order to run to completion. Not exactly a strategy that expert coders would've used (which I'm probably not), but it works in this case.
This is done by simply removing the scripts' dependency on the `get_uid` attribute, and replacing instances of `os.uname` with `platform.name`, in order to run to completion. Not exactly a strategy that expert coders would've used (which I'm probably not), but it works in this case.

### Prerequisites

Expand All @@ -18,8 +18,8 @@ This is done by simply removing the scripts' dependency on the `get_uid` and `un
4) If you encounter an error about not being able to find `control_auth_cookie`: My understanding is that this can occur if Tor has been placed in `C:\Program Files`, since Tor on Windows lacks admin rights and will save new files to `%LOCALAPPDATA%\VirtualStore` instead. This can be fixed by pointing to the file's actual location in `torrc` with `CookieAuthFile ______________\Data\control_auth_cookie`
5) If you receive an error about `get_uid`: Right-click on [header.py](https://raw.githubusercontent.com/DandelionSprout/NyxForWindows/main/header.py), choose `Save As...`, and overwrite the default `header.py` file. In my case with Python 3.9, it was in `%LOCALAPPDATA%\Programs\Python\Python39\Lib\site-packages\nyx\panel\header.py`
6) If you receive an error about `uname`: Right-click on [starter.py](https://raw.githubusercontent.com/DandelionSprout/NyxForWindows/main/starter.py), choose `Save as...`, and overwrite the default `starter.py` file. In my case with Python 3.9, it was in `%LOCALAPPDATA%\Programs\Python\Python39\Lib\site-packages\nyx\starter.py`
7) If the "Graph / Log" page gets clogged with `[NYX_Warning] Event listener raised an uncaught exception (module 'os' has no attribute 'uname'): BW x x` every 1-2 seconds: Right-click on [tracker.py](https://raw.githubusercontent.com/DandelionSprout/NyxForWindows/main/tracker.py), choose `Save as...`, and overwrite the default `tracker.py` file. In my case with Python 3.9, it was in `%LOCALAPPDATA%\Programs\Python\Python39\Lib\site-packages\nyx\tracker.py`

## Known issues

* On the "Graph / Log" page, the events log will quickly get filled up with `[NYX_Warning] Event listener raised an uncaught exception (module 'os' has no attribute 'uname'): BW x x`.
* In PowerShell 7.2, the bandwidth graphs do not automatically refresh. To refresh them, switch back and forth between menus with the ← and → arrow keys.
None as of 9th of February 2022.

0 comments on commit 4393f66

Please sign in to comment.