Where can I get the module MyUtils?

Discussion in 'Python' started by Python_Doctor, Feb 16, 2008.

  1. I inherited a piece of python code which imports "MyUtils" i.e. it has
    a line:

    import MyUtils

    When I execute the code I get:

    ImportError: No module named MyUtils

    I assume the code is looking for another module called MyUtils.py. Is
    this a standard Python module? Where can I download this module from?

    Many thanks

    Monty
    Python_Doctor, Feb 16, 2008
    #1
    1. Advertising

  2. Python_Doctor schrieb:
    > I inherited a piece of python code which imports "MyUtils" i.e. it has
    > a line:
    >
    > import MyUtils
    >
    > When I execute the code I get:
    >
    > ImportError: No module named MyUtils
    >
    > I assume the code is looking for another module called MyUtils.py. Is
    > this a standard Python module? Where can I download this module from?


    How large are the chances that something called "MyUtils" is a
    standard-module? And if it were - you wouldn't miss it, wouldn't you?

    I suggest you ask the one you inherited the code from - it's mosp
    probably his/hers.

    Diez
    Diez B. Roggisch, Feb 16, 2008
    #2
    1. Advertising

Want to reply to this thread or ask your own question?

It takes just 2 minutes to sign up (and it's free!). Just click the sign up button to choose a username and then you can ask your own questions on the forum.
Similar Threads
  1. dody suria wijaya

    Get importer module from imported module

    dody suria wijaya, Feb 7, 2005, in forum: Python
    Replies:
    5
    Views:
    382
    dody suria wijaya
    Feb 8, 2005
  2. Maric Michaud
    Replies:
    0
    Views:
    7,179
    Maric Michaud
    Jun 24, 2006
  3. Alex Gusarov
    Replies:
    3
    Views:
    268
    Alex Gusarov
    Oct 21, 2008
  4. Rafe
    Replies:
    3
    Views:
    270
    Jeremy Sanders
    Dec 1, 2008
  5. Justin Wyllie
    Replies:
    5
    Views:
    232
    Peter Pan
    Jan 11, 2005
Loading...

Share This Page