Installation of thinkdsp
WuodOdhis opened this issue · 7 comments
I am writing to express my disappointment and frustration with trying to install thinkdsp on my system. I have followed the instructions on the GitHub page, but I am still unable to get thinkdsp working. I have tried troubleshooting the issue on my own, but I am unable to resolve it.
I am very disappointed in the difficulty I have had trying to install thinkdsp, and I am asking for your help in resolving this issue. I would appreciate if someone from your team could provide assistance or offer guidance on how to successfully install thinkdsp.
Thank you for your attention to this matter. I look forward to hearing from you and receiving help with this issue.
I'm sorry to hear that this has been frustrating. Are you following the instructions here?
https://allendowney.github.io/ThinkDSP/
If so, what have you tried and what went wrong?
Also, please consider running the notebooks on Colab (see the links on the page linked above). That way you don't have to install anything.
I understand. A key thing to understand is that thinkdsp.py
is not a package you have to install; it is just a module -- that is, a file that contain Python code.
So you have to download it and make sure it is in a place where Python finds it. The easiest way to do that is to run the notebook and let it download thinkdsp.py
, which it will do if it does not find the file already.
Which notebook are you running and where does it fail?
Don't install thinkx
.
When you run the notebook, it should download and then import thinkdsp.py
.
Does that work? If not, what happens?
I had similar issues with "installing" this module. But I donť use jupyter notebooks. I installed it with pip install thinkx
, but but thinkdsp won't import due to: ImportError: cannot import name 'gcd' from 'fractions
'. I found out that fractions.gcd(a, b) has been moved to math.gcd(a, b) in Python 3.9 in this link. So i replaced fractions on line 24 with from math import gcd
. And it is running. I still got warning about Wave.make_audio() but it is not an issue form me.
Thank you for this module and for the book!