I have successfully compiled and installed python-fsps. To do that, I had to make a slight change to the init.py file and add the line os.environ["SPS_HOME"] = "/home/nevil/fsps".
I did this because even after several attempts of adding a export SPS_HOME="/home/nevil/fsps", while running the installation python-fsps setup, I used to get the error SPS_HOME environment not found or not defined. This tweak allows me to successfully install python FSPS, but I am facing an issue when I import fsps. I am getting the following error when I import fsps in python2.7
import fsps
File "build/bdist.linux-x86_64/egg/fsps/init.py", line 62, in
File "build/bdist.linux-x86_64/egg/fsps/fsps.py", line 9, in
File "build/bdist.linux-x86_64/egg/fsps/_fsps.py", line 7, in
File "build/bdist.linux-x86_64/egg/fsps/_fsps.py", line 6, in bootstrap
ImportError: /home/nevil/.cache/Python-Eggs/fsps-0.3.0-py2.7-linux-x86_64.egg-tmp/fsps/_fsps.so: undefined symbol: spssetup
I have successfully compiled and installed python-fsps. To do that, I had to make a slight change to the init.py file and add the line os.environ["SPS_HOME"] = "/home/nevil/fsps". I did this because even after several attempts of adding a export SPS_HOME="/home/nevil/fsps", while running the installation python-fsps setup, I used to get the error SPS_HOME environment not found or not defined. This tweak allows me to successfully install python FSPS, but I am facing an issue when I import fsps. I am getting the following error when I import fsps in python2.7
File "build/bdist.linux-x86_64/egg/fsps/init.py", line 62, in
File "build/bdist.linux-x86_64/egg/fsps/fsps.py", line 9, in
File "build/bdist.linux-x86_64/egg/fsps/_fsps.py", line 7, in
File "build/bdist.linux-x86_64/egg/fsps/_fsps.py", line 6, in bootstrap
ImportError: /home/nevil/.cache/Python-Eggs/fsps-0.3.0-py2.7-linux-x86_64.egg-tmp/fsps/_fsps.so: undefined symbol: spssetup
undefined symbol: spssetup
Please can somebody help me resolve this issue.