Re: [Tutor] No module named player_data

2011-06-05 Thread Michael bridges
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

Re: [Tutor] No module named player_data

2011-06-05 Thread Michael bridges
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

Re: [Tutor] No module named player_data

2011-06-05 Thread Michael bridges
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

Re: [Tutor] No module named player_data

2011-06-05 Thread Alexandre Conrad
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

Re: [Tutor] No module named player_data

2011-06-05 Thread Michael bridges
> 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]

Re: [Tutor] No module named player_data

2011-06-05 Thread Alexandre Conrad
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

[Tutor] No module named player_data

2011-06-05 Thread 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 import PlayerArmy ImportError: No module nam