Hi Sergei - i've had a quick look go at building this library on a Ubuntu machine.
An easy problem to fix was that line 16 of setup.py has '_Hyphy' when it should be '_HyPhy' for case-sensitive file systems. I also needed to install a new version of libcurl.. the library then seems to build okay, but when I try running the example, I get an error:
Quote:james@james-desktop:~/Desktop/HyPhyLibrary/Examples/Python$ python BasicHyPhy.py
Traceback (most recent call last):
File "BasicHyPhy.py", line 4, in <module>
import os, HyPhy
File "/usr/lib/python2.5/site-packages/HyPhy/__init__.py", line 51, in <module>
THYPHY_TYPE_COUNT = _HyPhy.THYPHY_TYPE_COUNT
AttributeError: 'module' object has no attribute 'THYPHY_TYPE_COUNT'
When I try and build the R library on the same machine, the build fails with an error message:
Quote:LibraryModules/Source/THyPhy_R.o: file not recognized: File format not recognized
collect2: ld returned 1 exit status
make: *** [LibraryModules/R/HyPhy.so] Error 1
R library written to /home/james/Desktop/HyPhyLibrary/LibraryModules/R/HyPhy.so
Finished
I don't know anything about SWIG, and don't really use python much, so I'm not well qualified to try and fix these,. it could be something really obvious, but I hope these reports help. It would be really exciting to have hyphy available in R - in particular it might make it really easy to do Bayesian inference under some of the rich models that hyphy makes possible.
Thanks for this! - I'm surprised it hasn't attracted much attention - although I only just noticed the post.
Yours,
James