cihologramas / pyueye

Python wrapper for ueye cameras
BSD 3-Clause "New" or "Revised" License
5 stars 3 forks source link

Installation Fails #16

Open jtrexr2 opened 4 years ago

jtrexr2 commented 4 years ago

Hello, I am attempting to install this on a Raspberry Pi Compute Module 3+, and am having the following errors, which I've seen other people report:

['ueye.ueyeh', 'ueye.ueye']
running install
running build
running build_py
copying ueye/ueye.pxd -> build/lib.linux-armv7l-2.7/ueye
copying ueye/ueyeh.pxd -> build/lib.linux-armv7l-2.7/ueye
running build_ext
building 'ueye.ueyeh' extension
arm-linux-gnueabihf-gcc -pthread -DNDEBUG -g -fwrapv -O2 -Wall -Wstrict-prototypes -fno-strict-aliasing -Wdate-time -D_FORTIFY_SOURCE=2 -g -fdebug-prefix-map=/build/python2.7-Ub3vap/python2.7-2.7.13=. -fstack-protector-strong -Wformat -Werror=format-security -fPIC -I. -I/usr/include/python2.7 -c ueye/ueyeh.c -o build/temp.linux-armv7l-2.7/ueye/ueyeh.o -D__LINUX__
ueye/ueyeh.c: In function ‘initueyeh’:
ueye/ueyeh.c:12996:36: error: ‘IS_CALLBACK_CMD_INSTALL’ undeclared (first use in this function)
   __pyx_t_1 = __Pyx_PyInt_From_int(IS_CALLBACK_CMD_INSTALL); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 469, __pyx_L1_error)
                                    ^~~~~~~~~~~~~~~~~~~~~~~
ueye/ueyeh.c:12996:36: note: each undeclared identifier is reported only once for each function it appears in
ueye/ueyeh.c:13008:36: error: ‘IS_CALLBACK_CMD_UNINSTALL’ undeclared (first use in this function)
   __pyx_t_1 = __Pyx_PyInt_From_int(IS_CALLBACK_CMD_UNINSTALL); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 470, __pyx_L1_error)
                                    ^~~~~~~~~~~~~~~~~~~~~~~~~
ueye/ueyeh.c:13020:36: error: ‘IS_CALLBACK_EV_IMGPOSTPROC_START’ undeclared (first use in this function)
   __pyx_t_1 = __Pyx_PyInt_From_int(IS_CALLBACK_EV_IMGPOSTPROC_START); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 471, __pyx_L1_error)
                                    ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
error: command 'arm-linux-gnueabihf-gcc' failed with exit status 1

I have tried both master and 4.82.00 branches, though my uEye driver is 4.93.00. Any ideas here?

ramezquitao commented 4 years ago

Hello, I'm sorry to say that we are not using the cameras much lately so we have not updated the software. I think the problem is that UEYE api changes a little bit from version to version, and this makes it should be a little different version of pyueye to different drivers versions.

I would suggest checking the pxd files and compare to the .h files of the driver to see if you can find what changed.