Re: [linux-minidisc] netmdpython


Hello Adrian,

thanks again for the help.

Running the lsmd.py script with /opt/local/bin/python2.6 now produces correct output.

Following the instructions on https://wiki.physik.fu-berlin.de/linux-minidisc/doku.php?id=netmdpython I downloaded SoX v14.3.1 and, although it is not mentioned explicitly, I added <sox install dir> to $PATH in .profile.

Running dump_md.py -t 1 gives me the following output

Storing in MyMD Recording 01 - LP:ATA.ogg ( 00:06:52.041 ) Waiting for MD... [0, 0, 0, 0, 2
...
0, 0, 0, 0, 68] Input File : 'default' (coreaudio) Channels : 2 Sample Rate : 44100 Precision : 16-bit Sample Encoding: 16-bit Signed Integer PCM In:0.00% 00:00:00.00 [00:00:00.00] Out:0 [ | ] Clip:0 Done, waiting for sox to return... Finished.

The MD MZ-910 connected by USB runs  for the length of time of track one before "Finished" is logged, but no progression of time is logged and  MyMD/01\ -\ LP\:ATA.ogg is empty.

Am I missing some parameter?

Regards, Michael


Am 10.04.2011 um 18:09 schrieb Adrian Glaubitz:

On Apr 10, 2011, at 3:33 PM, Michael Earley wrote:

thanks for the speedy reply.

I'm still getting the same error after sudo port install py26-crypto


The problem is obviously, that your installed version of Python is not looking
for the installed extra packages at the correct location. Macports installs all
it's packages under /opt/local, including the packages for Python while the
default version of Python of MacOS looks for the packages under:

/Library/Python/2.6/site-packages

I'm currently not sure how to properly fix that on MacOS X, but you can
use the Python version from MacPorts in the meantime by calling the
script with /opt/local/bin/python2.6:

/opt/local/bin/python2.6 ~/linux-minidisc/netmd/lsmd.py -hUsage: lsmd.py [options]

Options:
 -h, --help            show this help message and exit
 -b BUS, --bus=BUS     
 -d DEVICE, --device=DEVICE
 -u, --uuids

I just tested that on Snow Leopard and it works fine. Just haven't found out yet
how to fix it permanently, but I will investigate into that.

If I type python in the Terminal window, I get

Python 2.6.1 (r261:67515, Jun 24 2010, 21:47:49)
[GCC 4.2.1 (Apple Inc. build 5646)] on darwin

Yes. The version is correct.

Adrian