LSD-OpenCV-MATLAB icon indicating copy to clipboard operation
LSD-OpenCV-MATLAB copied to clipboard

module is not callable

Open AhmadShaik opened this issue 6 years ago • 2 comments

I am trying to execute a example script, but I am getting error "module is not callable" `runfile('/data/Work/workspace/seperator-detection/cap-python-lsd/pylsd/example/example_cv2.py') Traceback (most recent call last):

File "", line 1, in runfile('/data/Work/workspace/seperator-detection/cap-python-lsd/pylsd/example/example_cv2.py')

File "/data/repos/tfenv/lib/python3.6/site-packages/spyder_kernels/customize/spydercustomize.py", line 704, in runfile execfile(filename, namespace)

File "/data/repos/tfenv/lib/python3.6/site-packages/spyder_kernels/customize/spydercustomize.py", line 108, in execfile exec(compile(f.read(), filename, 'exec'), namespace)

File "/data/Work/workspace/seperator-detection/cap-python-lsd/pylsd/example/example_cv2.py", line 16, in lines = lsd(gray)

TypeError: 'module' object is not callable`

AhmadShaik avatar Jan 24 '19 11:01 AhmadShaik

I have the same problem, did you solve it?

Fansgithub2019 avatar Dec 29 '19 13:12 Fansgithub2019

Here lsd points to C: ...\pylsd-0.0.1-py3.8.egg \ pylsd \ lsd.py file, this is a module, I actually want to call the lsd function defined in it, so change it to lines = lsd. lsd (gray)

Fansgithub2019 avatar Dec 30 '19 11:12 Fansgithub2019