4

I have python 2.7 installed in my system and I need to use the audiolab module. I downloaded from the following site: http://www.lfd.uci.edu/~gohlke/pythonlibs/#scikits.audiolab

When I import scikits.audiolab I get the following error:

    Traceback (most recent call last):
    File "C:/Python27/trystuff", line 1, in <module>

    from scikits.audiolab import formatinfo as format

     File "C:\Python27\lib\site-packages\scikits\__init__.py", line 1, in <module>

    __import__('pkg_resources').declare_namespace(__name__)

    ImportError: No module named pkg_resources

What should I do?

psubsee2003
  • 8,563
  • 8
  • 61
  • 79

2 Answers2

5

There is a Windows binary build of scikits.audiolab (and a whole lot of other stuff) for python 2.7 here:
http://www.lfd.uci.edu/~gohlke/pythonlibs/#scikits.audiolab

audiolab will also require libsndfile. The link is right there on that page, but I'll put it here too since libsndfile is great:
http://www.mega-nerd.com/libsndfile/#Download

PS: You will need to put the libsndfile-1.dll someplace python can find it. If you don't mind wasting at tiny bit of disk space, you can drop a copy of it in the Python27\Lib\site-packages\scikits\audiolab\pysndfile directory.

travc
  • 1,788
  • 1
  • 18
  • 9
0

You need pkg_resources module which is a part of setup_tools or the newer fork distribute. The site you linked also has Windows binaries for you to install. I'd recommend the distribute module. They also provide you easy install/uninstall capabilities for third-party modules.

Avaris
  • 35,883
  • 7
  • 81
  • 72