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

ImportError: cannot import name _remove_dead_weakref #42

Closed
beriberikix opened this issue Aug 29, 2018 · 2 comments
Closed

ImportError: cannot import name _remove_dead_weakref #42

beriberikix opened this issue Aug 29, 2018 · 2 comments

Comments

@beriberikix
Copy link

I'm trying to run the sniffer per SNIFFER.md but I get an include error. I believe I followed all the steps and have all the dependencies. I noticed some of the files mentioned in the top-level have moved which makes me wonder if the .MD is out of date.

macOS 10.13.6
python 2.7.10

jberi:pyspinel 🚀  $ python ./sniffer.py -c 11 -n 1 -u /dev/cu.usbmodem1431 | wireshark -k -i -
Traceback (most recent call last):
  File "./sniffer.py", line 34, in <module>
    import spinel.config as CONFIG
  File "/Users/jberi/code/pyspinel/spinel/config.py", line 19, in <module>
    import logging
  File "/usr/local/Cellar/python@2/2.7.15_1/Frameworks/Python.framework/Versions/2.7/lib/python2.7/logging/__init__.py", line 26, in <module>
    import sys, os, time, cStringIO, traceback, warnings, weakref, collections
  File "/usr/local/Cellar/python@2/2.7.15_1/Frameworks/Python.framework/Versions/2.7/lib/python2.7/weakref.py", line 14, in <module>
    from _weakref import (
ImportError: cannot import name _remove_dead_weakref
@beriberikix
Copy link
Author

Re-reading the top-level readme it looks like pyspinel expects to be in the tools directory of OpenThread. I'll try moving it there when I get in the office.

@jwhui
Copy link
Member

jwhui commented Aug 29, 2018

@beriberikix, see this discussion.

Yes, the README being out of date was reported in #36 (admittedly a long time ago).

@jwhui jwhui closed this as completed Feb 1, 2019
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

2 participants