pmelchior / scarlet

hyperspectral galaxy modeling and deblending
MIT License
50 stars 22 forks source link

ModuleNotFoundError: No module named 'scarlet.operators_pybind11' #251

Closed tcollett closed 3 years ago

tcollett commented 3 years ago

I ran through the install with no errors or warnings, but when I import scarlet I get this:

File "/users/tec/scarlet/scarlet/init.py", line 2, in from .blend import Blend File "/users/tec/scarlet/scarlet/blend.py", line 10, in from .component import CombinedComponent File "/users/tec/scarlet/scarlet/component.py", line 9, in from .morphology import Morphology File "/users/tec/scarlet/scarlet/morphology.py", line 20, in from . import initialization File "/users/tec/scarlet/scarlet/initialization.py", line 6, in from .renderer import NullRenderer, ConvolutionRenderer File "/users/tec/scarlet/scarlet/renderer.py", line 9, in from scarlet.operators_pybind11 import apply_filter ModuleNotFoundError: No module named 'scarlet.operators_pybind11'

I have operators_pybind11.cc in my scarlet folder, so I wonder if something in the install didn't wrap this correctly?

herjy commented 3 years ago

Hey Tom, sorry for not coming back earlier on this. What's your OS and python version?

tcollett commented 3 years ago

No problem. It's Python 3.7 and CentOS Linux 7

herjy commented 3 years ago

Are you running this in a conda environment? And are you trying to import scarlet from within the scarlet repo? (If yes, try importing it from somewhere else)

pmelchior commented 3 years ago

@tcollett Did that help? If so, please close the issue.

tcollett commented 3 years ago

Thanks @herjy, that seems to be importing now that I'm in a different directory.

I'll start running through the tutorials. Fingers crossed.