Velocity Reviews - Computer Hardware Reviews

Velocity Reviews > Newsgroups > Programming > Python > Installing new module

Reply
Thread Tools

Installing new module

 
 
ronald brown
Guest
Posts: n/a
 
      10-12-2010
I uzipped to python Lib directory and try to run sample prog got this
error. What am I doing wrong?

Traceback (most recent call last):
File "F:/Python25/Lib/MIDIUtil-0.87/a11", line 3, in <module>
from midiutil.MidiFile import MIDIFile
ImportError: No module named midiutil.MidiFile
 
Reply With Quote
 
 
 
 
alex23
Guest
Posts: n/a
 
      10-12-2010
On Oct 12, 1:34*pm, ronald brown <(E-Mail Removed)> wrote:
> I uzipped to python Lib directory and try to run sample prog got this
> error. What am I doing wrong?


At a guess, you're not reading the documentation.

You should add modules to Lib/site-packages, not directly to Lib/
itself. In Python 2.6+, you can also place them in %USERPROFILE%/
Application Data/Python/site-packages.
 
Reply With Quote
 
 
 
Reply

Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Re: module docstring, documentation,anything? please note is the module type/object NOT some module Maric Michaud Python 0 06-24-2006 12:42 PM
PYTHON API : add new classes in a module from an other module mathieu gontier Python 1 09-01-2004 12:35 PM
installing my own module: module not recognized Darren Dale Python 2 07-20-2004 01:51 PM
Problem installing BerkeleyDB Module Gerard Perl 0 07-05-2004 12:06 AM
Python-2.3b1 bugs on Windows2000 with: the new csv module, stringreplace, and the re module Daniel Ortmann Python 4 07-02-2003 03:23 PM



Advertisments