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
--- On Sun, 6/5/11, Alexandre Conrad <[email protected]> wrote:
> From: Alexandre Conrad <[email protected]>
> Subject: Re: [Tutor] No module named player_data
> To: "Michael bridges" <[email protected]>
> Cc: [email protected]
> Date: Sunday, June 5, 2011, 7:58 PM
> 2011/6/5 Michael bridges <[email protected]>:
> > 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
>
_______________________________________________
Tutor maillist - [email protected]
To unsubscribe or change subscription options:
http://mail.python.org/mailman/listinfo/tutor