kbrafford / pyfly2

Python wrapper for Point Grey Research's FlyCapture2 C API
18 stars 10 forks source link

Module 'pyfly2' has no attribute 'Context' #11

Open Greg-Roberts opened 8 years ago

Greg-Roberts commented 8 years ago

Anaconda 4.1.1 64bit Python3.5 OpenCV 3.1.0 64bit Windows 10 Visual Studio 2015 Community version Blackfly GigE color. The build had no errors. Trying the example-grab.py resulted in module not found. Renamed the directory from pyfly2-master to pyfly2, deleted pyfly2.c, and ran the build again. Had to add parenthesis to all the print statements. Now the error is 'pyfly2' has no attribute 'Context' I'm a NOOB at python so it's probably something simple but any help would be greatly appreciated.

sharmisthasg commented 5 years ago

Hi I'm facing the same error. Were you able to fix this? Is it because the functions in pyfly2.pyx are declared as cdef?

kbrafford commented 5 years ago

I haven't set pyfly2 up on my new computer, so it will be difficult for me to test, but I don't think that's the reason.

sharmisthasg commented 5 years ago

Can you give me some headway as to what could be the error? I've tried multiple things but nothing seems to solve this issue. Please help me fix this.