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

Error on normalize_flow #15

Open
israelccarvalho opened this issue Dec 2, 2021 · 6 comments
Open

Error on normalize_flow #15

israelccarvalho opened this issue Dec 2, 2021 · 6 comments

Comments

@israelccarvalho
Copy link

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?

@git-artes
Copy link
Owner

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

@israelccarvalho
Copy link
Author

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.

@git-artes
Copy link
Owner

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.

@jlxsolutions
Copy link

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?

@israelccarvalho
Copy link
Author

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.

@MarcosRamo
Copy link

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!

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

4 participants