[Tutor] No module named player_data

Michael bridges micha_el2003 at yahoo.com
Mon Jun 6 05:14:06 CEST 2011


simple
file was named __ init __.py not __init__.py
restored from recycle bin showed the error

thanks for your help


--- On Sun, 6/5/11, Alexandre Conrad <alexandre.conrad at gmail.com> wrote:

> From: Alexandre Conrad <alexandre.conrad at gmail.com>
> Subject: Re: [Tutor] No module named player_data
> To: "Michael bridges" <micha_el2003 at yahoo.com>
> Cc: Tutor at python.org
> Date: Sunday, June 5, 2011, 7:58 PM
> 2011/6/5 Michael bridges <micha_el2003 at yahoo.com>:
> > one of the things i deleted was __init__.py &
> __init__.pyc [thought it was not used, then read import
> again and put it back. still not working]
> 
> You always need an __init__.py file in a folder that you
> want to
> import in Python. That tells Python to consider the folder
> as a Pyton
> package.
> 
> http://effbot.org/pyfaq/what-is-init-py-used-for.htm
> 
> Your original error was: "ImportError: No module named
> player_data".
> Now you have the file back, I now suspect the error message
> might be
> slightly different. Could you copy/paste it please?
> 
> 
> -- 
> Alex | twitter.com/alexconrad
> 


More information about the Tutor mailing list