question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

ImportError: No module named 'filters'

See original GitHub issue

I just tried installing Commpy on my Macbook Pro (2015) using pip.

When I type import commpy I get the following error message (Python 3.5) :

/Library/Frameworks/Python.framework/Versions/3.5/bin/python3.5 "/Users/Eric/Dropbox/Python TIPE/Bruit/test pillow"
Traceback (most recent call last):
  File "/Users/User_name/path/file", line 1, in <module>
    import commpy.channels
  File "/Library/Frameworks/Python.framework/Versions/3.5/lib/python3.5/site-packages/commpy/__init__.py", line 17, in <module>
    from filters import *
ImportError: No module named 'filters'

Do anybody know how I can solve this issue ?

Thank you,

Eric

Issue Analytics

  • State:closed
  • Created 7 years ago
  • Comments:8

github_iconTop GitHub Comments

7reactions
jdemelcommented, Jul 11, 2017

The CommPy version installed via ‘pip3’ may still cause this error. It is version 0.3.0

The error is caused by implicit imports in __init__.py. The lines like: from filters import * need to be updated to: from commpy.filters import * This is fixed in the current master branch.

It would be great if a new commpy version would be released which includes this fix.

3reactions
BastienTrcommented, Mar 11, 2019

Yes the workaround is known. You must use the version from github as the version on pip is outdated. With the github version, rrcosfilter is imported without error.
Has you have some syntax errors, I could not test your code as a whole but it should work. If not, I could look more closely.

To @veeresht : it would be great to make a new realease on pip to avoid this kind of error

Read more comments on GitHub >

github_iconTop Results From Across the Web

ImportError: No module named filters - python - Stack Overflow
The problem is resolved now :D. What I found is that there is no module named 'filters' in skimage '0.10.1' as it has...
Read more >
No module named filters #188 - awslabs/aws-shell · GitHub
It may be a discrepancy between where python packages are located. I noticed the shell is installed to: /usr/local/lib/python2.7/dist-packages/ ...
Read more >
scikit-image/scikit-image - Gitter
This placeholder module will be removed in v0.13. ... import skimage.filter.rank as rank ImportError: No module named 'skimage.filter.rank'.
Read more >
questions about VCF filtering - Google Groups
I want to filter my VCF file according to the FILTER field (I keep when it's ... Do I have to filter this...
Read more >
ImportError: No module named skimage - PyTorch Forums
Hi, I am new to pythorch and I am trying to use it with virtualenvironment and a jupyter notebook, but all the time...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found