[Edu-sig] K-16 CS/math hybrid

Kirby Urner urnerk at qwest.net
Tue May 10 09:51:23 CEST 2005



>  >>> obj = Foo()
>  >>> obj._Foo__bar('duh!")
                          ^
                          '

Yes, a syntax error.  In my cut 'n paste, I grabbed the one that didn't
work.

PS:  

I got interested in the mp3 lookup thing and tried to install the
python-musicbrainz-1.0b1.  However, the documentation is poor, in that it
doesn't explain where to put musicbrainz.dll (which has to be downloaded),
and once I put it in the package folder, I get an installation error:

D:\Python24\Lib\site-packages\python-musicbrainz-1.0b1>d:\python24\python
setup.py install
Traceback (most recent call last):
  File "setup.py", line 8, in ?
    import musicbrainz
ImportError: dynamic module does not define init function (initmusicbrainz)

However, the GUI front end to the musicbrainz utility gives me the
functionality I originally sketched in my scenario, creating TRM ids on the
fly and comparing them against the on-line database.  I tested with 3 Pink
Floyd mp3s, and it found them easily (but then, that's a popular band).

So this maybe wasn't a good example of a teen needing to program -- the
solution is already out there.  But other examples'd be easy enough to spell
out.  

Like, a lot of my friends on synergeo use Python because they want to
explore geometric ideas.  It's a means to an end.  They're not professional
programmers, at least not all of them.

Kirby

PPS:  google to the rescue on the setup musicbrainz install problem:
http://chatlogs.musicbrainz.org/2004/2004-04/2004-04-19.html

So then the build works:

D:\Python24\Lib\site-packages\python-musicbrainz-1.0b1>d:\python24\python
setup.py install
running install
running build
running build_py
creating build
creating build\lib
copying musicbrainz.py -> build\lib
running install_lib
copying build\lib\musicbrainz.py -> d:\python24\Lib\site-packages
byte-compiling d:\python24\Lib\site-packages\musicbrainz.py to
musicbrainz.pyc

But then I have other problems...  oh well, time to hit the hay, as they
say.




More information about the Edu-sig mailing list