more specific general info [do not want to copy/paste the whole files]: [\server_client_begining\server.py] from player_data import PlayerArmy
[\server_client_begining\player_data\PlayerArmy] #PlayerArmy playerName = "john" militia_amount = 100 military_amount = 10 [with more variables] [no classes, no functions, just variables] --- On Sun, 6/5/11, Alexandre Conrad <alexandre.con...@gmail.com> wrote: > From: Alexandre Conrad <alexandre.con...@gmail.com> > Subject: Re: [Tutor] No module named player_data > To: "Michael bridges" <micha_el2...@yahoo.com> > Cc: Tutor@python.org > Date: Sunday, June 5, 2011, 7:11 PM > 2011/6/5 Michael bridges <micha_el2...@yahoo.com>: > > 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 <module> > > from player_data import PlayerArmy > > ImportError: No module named player_data > > If player_data is a package (a folder containing an > __init__.py file), > I guess you have your class PlayerArmy defined inside the > __init__.py > file, or you are importing PlayerArmy from __init__.py. > > Could you provide more details on what the "player_data" > folder contains? > > -- > Alex | twitter.com/alexconrad > _______________________________________________ Tutor maillist - Tutor@python.org To unsubscribe or change subscription options: http://mail.python.org/mailman/listinfo/tutor