gr-tempest
gr-tempest copied to clipboard
Error on normalize_flow
File "/home/kali/gr-tempest/examples/semi_automatic_tempest_example.py", line 149, in init self.tempest_normalize_flow_0 = tempest.normalize_flow(10, 245, interpolatedHsize, 1e-2, 0.1) AttributeError: module 'tempest' has no attribute 'normalize_flow'
every time, on every sample that i try, it gives this error. any idea of what it could be?
Hi, See the FAQ at the end of the README. I'm copying it here:
Q: I got the following error: "AttributeError: 'module' object has no attribute 'sampling_synchronization'" (or some other block). Why? A: This problem may be generated by several factors. Did you "sudo ldconfig"? Another possibility is that you don't have swig installed (in this case, you must uninstall gr-tempest, delete CMakeCache.txt in the build directory, and re-install; that is, after installing swig).
Let me know if any of the above solved the problem. best
I saw other person's comment about the same problem. Well i'm using Kali linux, debian, and the path to gnuradio is different. Well think that should be the problem. You work with ubuntu 18? have you ever thought about tempest on smartphones? Thanks for the support. I really liked your research.
Glad you liked the project.
Let me know if you solved the problem so that we may close this issue. I've tested gr-tempest with both Ubuntu 20 and 18.
Regarding tempest on smartphones, sure thing we have thought about it. There are a couple of papers on this sense, for instance https://arxiv.org/abs/2011.09877, but we haven't tried it yet. Next year we should start experiments on this direction.
Using Debian Bullseye and having same error and ldconfig has been run and swig is installed. Anyway i could provide more info on what is going wrong?
Jlxsolutions, my problem was compiling the code. On debian you have to install manualy some packets. Pay attention when you compile the code with make command. Some erros may occur on some libraries. You will have to install then manualy and then run the script again. Worked for me.
File "/home/kali/gr-tempest/examples/semi_automatic_tempest_example.py", line 149, in init self.tempest_normalize_flow_0 = tempest.normalize_flow(10, 245, interpolatedHsize, 1e-2, 0.1) AttributeError: module 'tempest' has no attribute 'normalize_flow'
every time, on every sample that i try, it gives this error. any idea of what it could be?
I was having the same trouble here and I fixed by this way bellow:
When you run executes the flow graph on GNURADIO, he generates first of all the .py file of the flow graph on your specific folder
But analyzing the python code generated I found out that there is an "import of tempest" (I don't know the reason), after the import of tempest from gnuradio
I fixed just deleting the second import "import tempest", maintaining only the tempest import from gnuradio. But in this case you need to run the code after on terminal using the command "python3 <name_of_file.py>, because if you try to run on GnuRadio again, he going rewrite the file with the incorrect import again and it probably gonna fail again.
I hope can helped you!