2011-03-04, 05:01
outleradam Wrote:I have heard that there is a manual installation procedure. I am not really good with mac. . Could you look into installation of python bindings? Apparently, direct mysql access will not be possible with
got it. the osx builds on sourceforge don't contain the python bindings (i suspect because it's hard to overcome the 32bit mysql), but it's possible to link in them from source. thanks to this thread for the clue http://www.gossamer-threads.com/lists/mythtv/dev/389569
Code:
easy_install pip
export VERSIONER_PYTHON_PREFER_32_BIT=yes
defaults write com.apple.versioner.python Prefer-32-Bit -bool yes
sudo pip install MySQL-python
sudo pip install lxml
git clone -b fixes/0.24 git://github.com/MythTV/mythtv.git
cd mythtv/bindings/python
sudo python setup.py install
to test it:
Code:
python
>>>from MythTV import MythDB
>>>mythdb = MythDB()
>>>mythdb
<MythDB 'sql://[email protected]:3306/' at 0xffff10>
if python keeps tries to use 64 bit to access mysql (still 32 bit), you'll see this during mythicalSetup (even if MythDataGrabber works) -- i think it's about the visibility of the two prefer32 flags.
Code:
Traceback (most recent call last):
File "/usr/local/bin/MythDataGrabber", line 167, in <module>
from MythTV import MythDB
File "/Library/Python/2.6/site-packages/MythTV/__init__.py", line 55, in <module>
exec(import26)
File "<string>", line 5, in <module>
File "<string>", line 7, in <module>
File "/Library/Python/2.6/site-packages/MythTV/connections.py", line 17, in <module>
import MySQLdb, MySQLdb.cursors
File "/Library/Python/2.6/site-packages/MySQLdb/__init__.py", line 19, in <module>
import _mysql
ImportError: dlopen(/Library/Python/2.6/site-packages/_mysql.so, 2): no suitable image found. Did find:
/Library/Python/2.6/site-packages/_mysql.so: mach-o, but wrong architecture