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

NameError: name 'xrange' is not defined #3

Open
nocomp opened this issue Jul 15, 2021 · 2 comments
Open

NameError: name 'xrange' is not defined #3

nocomp opened this issue Jul 15, 2021 · 2 comments

Comments

@nocomp
Copy link

nocomp commented Jul 15, 2021

hi folks,
thxx for this great tool, just a note, facing an issue on kali, first install, no issues but when i run it
sudo ooktools signal record --frequency 433920000 --framecount 60 --destination bell.json

i get

┌──(nocomp㉿R3dB0x)-[~/tools/sdr/ooktools]
└─$ sudo ooktools signal record --frequency 433920000 --framecount 60 --destination bell.json 130 ⨯
_ _ _
___ | || | ___ | |
| . | . | '
| | . | . | | -|
|||,|| ||||___| v1.4
On-off keying tools for your SD-arrrR
https://github.com/leonjza/ooktools

Recording on frequency: 433920000 to /home/nocomp/tools/sdr/ooktools/bell.json
Configuring Radio
[radio] Frequency: 433920000
[radio] MdmModulation: 48
[radio] PktFLEN: 0
[radio] MdmDRate: 38400
[radio] MdmSyncMode: 0
[radio] Lowball: True
For maximum frames, press and release the remote multiple times.
Traceback (most recent call last):
File "/usr/local/bin/ooktools", line 8, in
sys.exit(cli())
File "/usr/lib/python3/dist-packages/click/core.py", line 829, in call
return self.main(*args, **kwargs)
File "/usr/lib/python3/dist-packages/click/core.py", line 782, in main
rv = self.invoke(ctx)
File "/usr/lib/python3/dist-packages/click/core.py", line 1259, in invoke
return _process_result(sub_ctx.command.invoke(sub_ctx))
File "/usr/lib/python3/dist-packages/click/core.py", line 1259, in invoke
return _process_result(sub_ctx.command.invoke(sub_ctx))
File "/usr/lib/python3/dist-packages/click/core.py", line 1066, in invoke
return ctx.invoke(self.callback, **ctx.params)
File "/usr/lib/python3/dist-packages/click/core.py", line 610, in invoke
return callback(*args, **kwargs)
File "/usr/local/lib/python3.9/dist-packages/ooktools/console.py", line 166, in record
signalling.record(**locals())
File "/usr/local/lib/python3.9/dist-packages/ooktools/commands/signalling.py", line 190, in record
for c in xrange(0, framecount):
NameError: name 'xrange' is not defined
===== RESETUP set from recv thread
python3: ../../libusb/os/threads_posix.h:46: usbi_mutex_lock: Assertion `pthread_mutex_lock(mutex) == 0' failed.
zsh: abort sudo ooktools signal record --frequency 433920000 --framecount 60 bell.json

any idea about what can be wrong?

thxx for your support

@ghost
Copy link

ghost commented Aug 12, 2021

I have the same issue here
The only thing that resolve it sometimes is to replug the YS1 many times before it works

Any ideas ?

@gruber2000
Copy link

File "/Library/Frameworks/Python.framework/Versions/3.12/lib/python3.12/site-packages/ooktools/console.py", line 148, in search
signalling.search(**locals())
TypeError: search() missing 1 required positional argument: 'xrange'

the same
:)

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