torproject / nyx

Command-line monitor for Tor.

Home Page:https://nyx.torproject.org/

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Gentoo python issues

CCGLLC-knc opened this issue · comments

Just restarted my tor relay node and went to use nyx to check its status. Running 2.1.0-r2 (latest available on Gentoo). Getting:

kevinc@rackserv ~ $ nyx Traceback (most recent call last): File "/usr/lib/python-exec/python3.9/nyx", line 33, in <module> sys.exit(load_entry_point('nyx==2.1.0', 'console_scripts', 'nyx')()) File "/usr/lib/python-exec/python3.9/nyx", line 25, in importlib_load_entry_point return next(matches).load() File "/usr/lib/python3.9/importlib/metadata.py", line 77, in load module = import_module(match.group('module')) File "/usr/lib/python3.9/importlib/__init__.py", line 127, in import_module return _bootstrap._gcd_import(name[level:], package, level) File "<frozen importlib._bootstrap>", line 1030, in _gcd_import File "<frozen importlib._bootstrap>", line 1007, in _find_and_load File "<frozen importlib._bootstrap>", line 972, in _find_and_load_unlocked File "<frozen importlib._bootstrap>", line 228, in _call_with_frames_removed File "<frozen importlib._bootstrap>", line 1030, in _gcd_import File "<frozen importlib._bootstrap>", line 1007, in _find_and_load File "<frozen importlib._bootstrap>", line 986, in _find_and_load_unlocked File "<frozen importlib._bootstrap>", line 680, in _load_unlocked File "<frozen importlib._bootstrap_external>", line 850, in exec_module File "<frozen importlib._bootstrap>", line 228, in _call_with_frames_removed File "/usr/lib/python3.9/site-packages/nyx/__init__.py", line 767, in <module> import nyx.panel.log File "/usr/lib/python3.9/site-packages/nyx/panel/log.py", line 69, in <module> NYX_LOGGER = log.LogBuffer(log.Runlevel.DEBUG, yield_records = True) AttributeError: module 'stem.util.log' has no attribute 'LogBuffer'

All help would be appreciated.

Looks like the Gentoo people are on it. Apparently it needs an older stem release.

Hi Kevin, Stem's master branch is for a prospective 2.0 release which drops backward compatibility. Nyx needs Stem 1.8 which is still the latest release. If you want to use the git repository you should run "git checkout 1.8.0".

Feel free to reopen if you have any other questions.