Description of problem: The Phidgets Python example code causes a crash in combination with the libphidget rpm supplied by Fedora 14. Version-Release number of selected component (if applicable): libphidget.x86_64 2.1.7.20100621-5.fc14 How reproducible: Always (see steps below) Steps to Reproduce: 0. Buy a Phidget Interface Kit 8/8/8 ;) 1. yum install libphidget libphidget-devel 2. cd /usr/src 3. wget http://www.phidgets.com/downloads/examples/Python_2.1.7.20101103.zip 4. unzip Python_2.1.7.20101103.zip 5. cd Python 6. python InterfaceKit-simple.py Actual results: # python InterfaceKit-simple.py Traceback (most recent call last): File "InterfaceKit-simple.py", line 23, in <module> interfaceKit = InterfaceKit() File "/usr/lib64/python2.7/site-packages/Phidgets/Devices/InterfaceKit.py", line 47, in __init__ PhidgetLibrary.getDll().CPhidgetInterfaceKit_create(byref(self.handle)) File "/usr/lib64/python2.7/site-packages/Phidgets/PhidgetLibrary.py", line 24, in getDll PhidgetLibrary.__dll = cdll.LoadLibrary("libphidget21.so") File "/usr/lib64/python2.7/ctypes/__init__.py", line 431, in LoadLibrary return self._dlltype(name) File "/usr/lib64/python2.7/ctypes/__init__.py", line 353, in __init__ self._handle = _dlopen(self._name, mode) OSError: /usr/lib64/libphidget21.so: undefined symbol: DNSServiceRefSockFD # Expected results: # python InterfaceKit-simple.py Opening phidget object.... Waiting for attach.... InterfaceKit 37168 Attached! InterfaceKit 37168: Input 0: False InterfaceKit 37168: Input 1: False InterfaceKit 37168: Input 2: False InterfaceKit 37168: Input 3: False InterfaceKit 37168: Input 4: False InterfaceKit 37168: Input 5: False InterfaceKit 37168: Input 6: False InterfaceKit 37168: Input 7: False InterfaceKit 37168: Output 0: False InterfaceKit 37168: Output 1: False InterfaceKit 37168: Output 2: False InterfaceKit 37168: Output 3: False InterfaceKit 37168: Output 4: False InterfaceKit 37168: Output 5: False InterfaceKit 37168: Output 6: False InterfaceKit 37168: Output 7: False InterfaceKit 37168: Sensor 0: 5 InterfaceKit 37168: Sensor 1: 6 InterfaceKit 37168: Sensor 2: 532 InterfaceKit 37168: Sensor 3: 499 InterfaceKit 37168: Sensor 4: 2 InterfaceKit 37168: Sensor 5: 0 InterfaceKit 37168: Sensor 6: 1 InterfaceKit 37168: Sensor 7: 0 |------------|----------------------------------|--------------|------------| |- Attached -|- Type -|- Serial No. -|- Version -| |------------|----------------------------------|--------------|------------| |- True -|- Phidget InterfaceKit 8/8/8 -|- 37168 -|- 824 -| |------------|----------------------------------|--------------|------------| Number of Digital Inputs: 8 Number of Digital Outputs: 8 Number of Sensor Inputs: 8 Additional info: I found out that this problem does not occur when I download the newest source code from phidgets.com: http://www.phidgets.com/downloads/libraries/libphidget_2.1.7.20101103.tar.gz ./configure make make install After that the Python example code works fine.
Thanks for the report. I updated the libphidget package to the latest version, and I think I've solved the error you're encountering. I guess you downloaded and installed the python modules from the phidget website; I did the same and the example you tried to run seems to work fine now. The new builds are located at http://koji.fedoraproject.org/koji/taskinfo?taskID=2665003, could you please test them and see if this solves your issue?
Cool! Thnx. I downloaded the RPMs you generated and installed them. The Python example works fine now. The C/C++ example also works. Great! I'll see if I can find some Karma around here, once the update pops up on Bodhi. ;) kind regards, Egon
Thanks for getting back to me so quickly! I'll go ahead and submit the updates, please file more bugs should any more problems arise.
libphidget-2.1.7.20101103-1.fc13 has been submitted as an update for Fedora 13. https://admin.fedoraproject.org/updates/libphidget-2.1.7.20101103-1.fc13
libphidget-2.1.7.20101103-1.fc14 has been submitted as an update for Fedora 14. https://admin.fedoraproject.org/updates/libphidget-2.1.7.20101103-1.fc14
libphidget-2.1.7.20101103-1.fc14 has been pushed to the Fedora 14 testing repository. If problems still persist, please make note of it in this bug report. If you want to test the update, you can install it with su -c 'yum --enablerepo=updates-testing update libphidget'. You can provide feedback for this update here: https://admin.fedoraproject.org/updates/libphidget-2.1.7.20101103-1.fc14
libphidget-2.1.7.20101103-1.fc13 has been pushed to the Fedora 13 stable repository. If problems still persist, please make note of it in this bug report.
libphidget-2.1.7.20101103-1.fc14 has been pushed to the Fedora 14 stable repository. If problems still persist, please make note of it in this bug report.