bensondaled / pseyepy

PSEye-py: a python interface to the PS3Eye camera
Apache License 2.0
78 stars 26 forks source link

Importing Library #5

Open ghost opened 5 years ago

ghost commented 5 years ago

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

ghost commented 5 years ago

@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.

kootsoop commented 4 years ago

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

thesis09 commented 1 month ago

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