Hello everyone. I'm very excited to get this application running but I have not been sucessful thus far. Since I have no idea how to program in Python (but I'm pretty good with Perl), I'm afraid I'm gonna need some help here.
I followed the instructions in the README, which were the same as the instructions on the website. I ran the command:
python setup.py build_ext -i
Which seemed to build something sucessfully with gcc. Then I ran ./pytone and got the following:
[root@localhost PyTone-2.0.14]# ./pytone Traceback (most recent call last): File "src/pytone.py", line 115, in ? playerids = [services.player.initplayer("main", config.player.main), File "/usr/src/PyTone/PyTone-2.0.14/src/services/player.py", line 35, in initplayer import players.internal File "/usr/src/PyTone/PyTone-2.0.14/src/services/players/internal.py", line 26, in ? import decoder File "/usr/src/PyTone/PyTone-2.0.14/src/decoder.py", line 22, in ? import mad ImportError: No module named mad
Then I thought I needed to install mad so I went to the homepage and downloaded pymad-0.5.2.tar.gz, unpacked it and installed it according to the directions on that site, specifically:
python config_unix.py --prefix /usr/local python setup.py build python setup.py install --prefix /usr/local
The site also said: " Remember to make sure /usr/local/python/site-packages/ is in your Python search path.". Well, that path does not physically exist on my system, nor would I know what a "python search path" is or how to fix it.
Even after I installed pymad, I still get the same exact error. I even deleted PyTone, unpacked again and re-ran the setup. I still get the same error, No module named mad.
Can someone on the list help me out here. This is on a Fedora Core 3 system.
Hi Aaron,
On 02.02.05, Aaron Newsome wrote: [ snip ]
[root@localhost PyTone-2.0.14]# ./pytone Traceback (most recent call last): File "src/pytone.py", line 115, in ? playerids = [services.player.initplayer("main", config.player.main), File "/usr/src/PyTone/PyTone-2.0.14/src/services/player.py", line 35, in initplayer import players.internal File "/usr/src/PyTone/PyTone-2.0.14/src/services/players/internal.py", line 26, in ? import decoder File "/usr/src/PyTone/PyTone-2.0.14/src/decoder.py", line 22, in ? import mad ImportError: No module named mad
Then I thought I needed to install mad so I went to the homepage and downloaded pymad-0.5.2.tar.gz, unpacked it and installed it according to the directions on that site, specifically:
python config_unix.py --prefix /usr/local python setup.py build python setup.py install --prefix /usr/local
The site also said: " Remember to make sure /usr/local/python/site-packages/ is in your Python search path.". Well, that path does not physically exist on my system, nor would I know what a "python search path" is or how to fix it.
Just try
PYTHONPATH=/usr/local/python/site-packages ./pytone
HTH,
Jörg
PS: Btw, PyTone 2.0.14 is quite old. You might want to try the latest version 2.2.0, which was just released.