Module Not Found Error
Opened this issue ยท 7 comments
chiboreache commented
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'
HackNet1997 commented
Same issue
wangkai326 commented
same issue
wangkai326 commented
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 *
ixtiyoruz commented
install it from source the issue was fixed
shreyas23 commented
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.
hpc203 commented
pip install ocrd-fork-pylsd==0.0.3
from pylsd.lsd import lsd
konsnos commented
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.