primetang/LSD-OpenCV-MATLAB

Module Not Found Error

Opened this issue ยท 7 comments

Traceback (most recent call last):
  File "/home/userbest/Work/ocv-python/6_LSD.py", line 4, in <module>
    from pylsd import lsd
  File "/usr/lib/python3.7/site-packages/pylsd/__init__.py", line 8, in <module>
    from lsd import lsd
ModuleNotFoundError: No module named 'lsd'

Same issue

same issue

Traceback (most recent call last):
  File "/home/userbest/Work/ocv-python/6_LSD.py", line 4, in <module>
    from pylsd import lsd
  File "/usr/lib/python3.7/site-packages/pylsd/__init__.py", line 8, in <module>
    from lsd import lsd
ModuleNotFoundError: No module named 'lsd'

``
from pylsd.bindings.lsd_ctypes import *

install it from source the issue was fixed

Or if you installed it through pip in my case: change all the imports to relative imports.

Ex. from from lsd import lsd to from .lsd import lsd and same for the module errors for the bindings afterwards.

pip install ocrd-fork-pylsd==0.0.3
from pylsd.lsd import lsd

pip install ocrd-fork-pylsd==0.0.3 from pylsd.lsd import lsd

I've updated the version to 0.0.8 and it worked.