Page 1 of 1

build/install on BusyBox/Optware based NAS

Posted: Mon Feb 08, 2010 12:26 am
by pyroboy
Hi,

I am attempting to build/install/run Deluge on my QNAP NAS which uses a BusyBox/Optware distribution.

Deluge is the 1.2.0 source package. All the prerequisite packages have been either installed via ipkg or built locally.

Under python 2.5 everything builds and installs OK. When I attempt to run it however I get an error:

Code: Select all

crypto.so: undefined symbol: PyUnicodeUCS4_Decode
This is apparently due to my python being compiled with UCS2 rather than UCS4.

Rather than recompile python 2.5, my python 2.6 installation is in fact compiled with UCS4. So I'll just try that.

Everything once again builds fine but I get the following error when attempting to install:

Code: Select all

error: /opt/local/lib/python2.5/site-packages (in --site-dirs) is not on sys.path
This happens just after the installation of the Blocklist plugin. It looks like there is something wrong with the python setup configuration in that it is referencing the python 2.5 installation for some reason.

I have re-installed/re-built all the python 2.6 dependencies just to make sure they are all in the correct locations and still get this error.

Does anyone with knowledge of the inner-workings of python setup know where this reference could be coming from and how I could rectify it?

Update: Also tried Deluge 1.1.9 and it fails in the same place. Looks like it's a python setup configuration issue somewhere...

Cheers

Re: build/install on BusyBox/Optware based NAS

Posted: Mon Feb 08, 2010 10:04 am
by pyroboy
Looks like ipkg had not configured distutils.cfg correctly. It still had site-dirs pointing to the python 2.5 directories.

I updated site-dirs to reflect my python 2.6 installation and everything installed correctly.