gr-tempest icon indicating copy to clipboard operation
gr-tempest copied to clipboard

Error on normalize_flow

Open israelccarvalho opened this issue 3 years ago • 6 comments

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?

israelccarvalho avatar Dec 02 '21 17:12 israelccarvalho

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

git-artes avatar Dec 02 '21 17:12 git-artes

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.

israelccarvalho avatar Dec 02 '21 20:12 israelccarvalho

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.

git-artes avatar Dec 08 '21 13:12 git-artes

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 avatar Jan 15 '22 11:01 jlxsolutions

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.

israelccarvalho avatar Jan 15 '22 12:01 israelccarvalho

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 image

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 image

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!

MarcosRamo avatar May 16 '23 11:05 MarcosRamo