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 wrote:
> From: Alexandre Conrad
> Subject: Re: [Tutor] No module named player_data
> To: "Michael bridges"
> Cc: T
om: Alexandre Conrad
> Subject: Re: [Tutor] No module named player_data
> To: "Michael bridges"
> Cc: Tutor@python.org
> Date: Sunday, June 5, 2011, 7:58 PM
> 2011/6/5 Michael bridges :
> > one of the things i deleted was __init__.py &
> __init__.pyc [thought i
ables]
[no classes, no functions, just variables]
--- On Sun, 6/5/11, Alexandre Conrad wrote:
> From: Alexandre Conrad
> Subject: Re: [Tutor] No module named player_data
> To: "Michael bridges"
> Cc: Tutor@python.org
> Date: Sunday, June 5, 2011, 7:11 PM
> 2011/6/5 Mich
2011/6/5 Michael bridges :
> 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 folde
> Subject: Re: [Tutor] No module named player_data
> To: "Michael bridges"
> Cc: Tutor@python.org
> Date: Sunday, June 5, 2011, 7:11 PM
> 2011/6/5 Michael bridges :
> > why does this happen?
> >
> > server [folder]
> > player_data [folder]
2011/6/5 Michael bridges :
> why does this happen?
>
> server [folder]
> player_data [folder]
> server.py
>
> Traceback (most recent call last):
> File
> "C:\Users\MySelf\Program\game_stuff\Game_28_02_11\Servers\server_client_begining\server.py",
> line 3, in
> from player_data i
why does this happen?
server [folder]
player_data [folder]
server.py
Traceback (most recent call last):
File
"C:\Users\MySelf\Program\game_stuff\Game_28_02_11\Servers\server_client_begining\server.py",
line 3, in
from player_data import PlayerArmy
ImportError: No module nam