Closed Cubostar closed 1 year ago
The version I've tried to install is 0.4.0. Here's the full trace, though with the path in the first call omitted:
`Traceback (most recent call last):
File "{omitted}", line 1, in
File "C:\Users\qarbolante\Anaconda3\envs\wafobuild37\lib\site-packages\wafo__init__.py", line 7, in
File "C:\Users\qarbolante\Anaconda3\envs\wafobuild37\lib\site-packages\wafo\objects.py", line 15, in
File "C:\Users\qarbolante\Anaconda3\envs\wafobuild37\lib\site-packages\wafo\transform__init__.py", line 7, in
File "C:\Users\qarbolante\Anaconda3\envs\wafobuild37\lib\site-packages\wafo\transform\estimation.py", line 8, in
File "C:\Users\qarbolante\Anaconda3\envs\wafobuild37\lib\site-packages\wafo\stats__init__.py", line 6, in
File "C:\Users\qarbolante\Anaconda3\envs\wafobuild37\lib\site-packages\wafo\stats\distributions.py", line 10, in
Hi @Cubostar , I ran into this recently as well. The solution I found was to add the line from scipy.stats import entropy
to the import block to the top of the wafo/stats/_distn_infrastructure.py
.
It appears that pywafo was relying on the entropy objecting being imported with the glob statement from scipy.stats._distn_infrastructure import *
, which no longer appears to work.
This was probably fixed in #54.
Indeed, it should have. Please report back if it hasn't.
After installing wafo on an Anaconda Python 3.7 environment with help from this thread, I tried
import wafo
and got the titular error. Any fix?