Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

AttributeError: module 'stem.util.log' has no attribute 'LogBuffer' #15

Open
dgoulet-tor opened this issue Apr 28, 2020 · 5 comments
Open

Comments

@dgoulet-tor
Copy link

Latest git master of both Stem and Nyx gives me this error:

Traceback (most recent call last):
  File "/usr/local/bin/nyx", line 11, in <module>
    load_entry_point('nyx==2.1.0.dev0', 'console_scripts', 'nyx')()
  File "/usr/lib/python3/dist-packages/pkg_resources/__init__.py", line 480, in load_entry_point
    return get_distribution(dist).load_entry_point(group, name)
  File "/usr/lib/python3/dist-packages/pkg_resources/__init__.py", line 2693, in load_entry_point
    return ep.load()
  File "/usr/lib/python3/dist-packages/pkg_resources/__init__.py", line 2324, in load
    return self.resolve()
  File "/usr/lib/python3/dist-packages/pkg_resources/__init__.py", line 2330, in resolve
    module = __import__(self.module_name, fromlist=['__name__'], level=0)
  File "/usr/local/lib/python3.6/dist-packages/nyx-2.1.0.dev0-py3.6.egg/nyx/__init__.py", line 779, in <module>
    import nyx.panel.log
  File "/usr/local/lib/python3.6/dist-packages/nyx-2.1.0.dev0-py3.6.egg/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'

Stem: d1174a83c2dcb7b855d8fc986be3ab8f8d88d68c
Nyx: 796089d

@atagar
Copy link
Collaborator

atagar commented Apr 28, 2020

Thanks David! Stem 2.x breaks backward compatibility in several ways so Nyx is not expected to work with the git codebase. Once we have a Stem release I'll update Nyx to use the new codebase.

In the meantime please run Nyx with Stem 1.8.

@atagar atagar closed this as completed Apr 28, 2020
@teor2345
Copy link

Hi @atagar,

In the meantime, can you change nyx's requirements to include stem < 2 ?
https://github.com/torproject/nyx/blob/master/setup.py#L82

@teor2345 teor2345 reopened this Apr 29, 2020
@atagar
Copy link
Collaborator

atagar commented Apr 29, 2020

Good point teor, can do. That said, it don't make a meaningful impact (that governs pip behavior, there there won't be a stem 2.0 release before nyx's codebase supports it).

@teor2345
Copy link

Is it possible to produce a more meaningful error message in nyx?

(That could be hard, because the error happens at import time.)

@atagar
Copy link
Collaborator

atagar commented Apr 29, 2020

That's a great idea. When we add Stem 2.x compatibility I'll add a message when we have a version mismatch (since we'll lose 1.x support).

gentoo-bot pushed a commit to gentoo/gentoo that referenced this issue Mar 6, 2022
Had a report on #gentoo a week or two ago but forgot
to address this.

Bug: torproject/nyx#15
See: https://forums.gentoo.org/viewtopic-t-1147568.html
Signed-off-by: Sam James <sam@gentoo.org>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants