chromatic_aberration_filtering icon indicating copy to clipboard operation
chromatic_aberration_filtering copied to clipboard

Import Error after building

Open mitch-galea opened this issue 2 years ago • 1 comments

Hello,

Really interested in this application, and nice online demo! Trying to build this on my ubuntu 20.04 machine. After runnings compile_cython.sh and opening a python terminal to import I get the following error:

>>> import chromatic_aberration_filtering
Traceback (most recent call last):
  File "<stdin>", line 1, in <module>
  File "/home/mga/src/local/chromatic_aberration_filtering/chromatic_aberration_filtering/__init__.py", line 1, in <module>
    from .filter_cython import chromatic_removal
ModuleNotFoundError: No module named 'chromatic_aberration_filtering.filter_cython'

Any help would be appreciated, cheers

mitch-galea avatar Mar 21 '23 21:03 mitch-galea

Hi, thanks for your interest. Did you raise the error by running the main.py file or importing the package in you own code?

What you could try first is to install the code with python setup.py install

Let me know if it works. Otherwise I will have a look at the imports.

Best,

Thomas

teboli avatar Mar 28 '23 19:03 teboli