Python and Snow Leopard?

Moderator: Telldus

Python and Snow Leopard?

Postby boxed » Sun Aug 22, 2010 9:22 pm

I have been trying to get a python interface to tellstick on my mac running Snow Leopard. First I found some script that tries to open /dev/tellstick, but that does not exist on my system so that was out. Then I found the seemingly more complete library from you guys, but that's when you start to run into problems:
1. the TellStick class requires an argument in the construction which is the path to libTelldusCorePlugin.dylib, which is not easy to find. After a lot of digging I found it is at /Applications/
2. When trying to run this script you get the message "mach-o, but wrong architecture". This turns out to be because libTelldusCorePlugin.dylib is 32 bit and Snow Leopard ships with 64 bit python 2.6 by default. I tried to go around this by running python 2.5 which is 32 but but then I get the following stack trace: File "", line 188, in <module>
File "", line 83, in LoadLibrary
self.library = cdll.LoadLibrary(self.GetLibraryPath())
File "/System/Library/Frameworks/Python.framework/Versions/2.5/lib/python2.5/ctypes/", line 416, in LoadLibrary
return self._dlltype(name)
File "/System/Library/Frameworks/Python.framework/Versions/2.5/lib/python2.5/ctypes/", line 333, in __init__
self._handle = _dlopen(self._name, mode)
OSError: dlopen(/Applications/, 6): Library not loaded: @executable_path/../Frameworks/QtScript.framework/Versions/4.0/QtScript
Referenced from: /Applications/
Reason: image not found

So that's where I am now. It seems to me that libTelldusCorePlugin.dylib should not be trying to load Qt libs, seeing as this is a GUI library right? Or am I missing something?

(I _really_ would like to do this all in python, I do enough C++ at work :P )
Posts: 5
Joined: Sun Aug 22, 2010 9:04 pm

Re: Python and Snow Leopard?

Postby micke.prag » Mon Aug 23, 2010 6:53 am

The name libTelldusCorePlugin.dylib might be a bit confusing but this is not telldus-core. This is just an internal plugin for TelldusCenter so access telldus-core.
The plugin you are looking for is:

(check the path, I am not on a Mac right now)
Micke Prag
Telldus Technologies
Site Admin
Posts: 2208
Joined: Thu Jul 27, 2006 8:25 pm
Location: Lund

Re: Python and Snow Leopard?

Postby boxed » Mon Aug 23, 2010 7:16 am

Ah ok. Yea that works perfectly, thank you.
Posts: 5
Joined: Sun Aug 22, 2010 9:04 pm

Return to Mac OS X

Who is online

Users browsing this forum: No registered users and 1 guest