pseyepy icon indicating copy to clipboard operation
pseyepy copied to clipboard

Importing Library

Open ghost opened this issue 6 years ago • 3 comments

from .cameras import Camera, cam_count ModuleNotFoundError: No module named 'pseyepy.cameras' Error showing always

ghost avatar Jan 07 '19 15:01 ghost

@nurullah312 Which directory are you running that import statement from? From your error, I suspect you're doing it in the pseyepy-master directory, so your Python interpreter resolves "pseyepy" to mean the pseyepy directory within pseyepy-master and then can't find a cameras module in there. You'd want it instead to resolve to the pseyepy module that you just installed in the prior step (by doing the setup.py install part)

If I'm right, you can resolve your issue by just cd'ing to any directory that doesn't contain a pseyepy file or directory. So if you're in pseyepy-master, cd one level up.

ghost avatar Apr 10 '19 23:04 ghost

I had the same problem as @nurullah312 , but your suggestion worked for me @ghost.

kootsoop avatar May 29 '20 00:05 kootsoop

find print exc and replace it with print (ecx) ;(this is for python3) and also find print count and replace it with print (count) in the cameras.pyx file and save it

thesis09 avatar Aug 17 '24 17:08 thesis09