hey yall. Im running python on a web server from dreamhost. I use their python installation and use the lastfm module which can be found here: http://code.google.com/p/python-lastfm/
to make it import correctly i do it
import sys
sys.path.append("/home/myusername/build/Python-2.5/Lib/site-packages/")
import lastfm
since the lastfm module is installed there.
When I use putty for ssh on my server, I can just run python test.py and it works fine. But when I run it from php script with
exec("python test.py");
it supposedly does not work, and the script does not run. it works fine when i do
import lastfm
and after that they have other things after, but when I'm actually trying to do something with a module, for example:
import lastfm
api=lastfm.Api(api_key)
. script, python , . - , , PHP . , . , , - , ive 777, . idk, . .