[Tutor] problem importing class

shawn bright nephish at gmail.com
Thu Oct 26 18:54:28 CEST 2006


Hey thanks for the help, gents,
i renamed site.py to site_obj.py and my import and statement.
everything is working now. Thank you guys very very much.

shawn

On 10/26/06, Danny Yoo <dyoo at hkn.eecs.berkeley.edu> wrote:
>
>
> Hi Shawn,
>
> It looks like people have identified the problem, that your site.py module
> isn't being found because it conflicts with something from Python's
> Standard Library.
>
> This isn't the first time this kind of problem has hit people.  This
> problem is well known and is the subject of a Python Enhancement Proposal
> (PEP 328).  If you're using Python 2.5, you can use a new feature called
> 'absolute_import' to avoid the import problem.  See:
>
>      http://docs.python.org/whatsnew/pep-328.html
>
> for more details.
>
> In the meantime, if you can't depend on using Python 2.5 yet, just rename
> your site.py module to something else to avoid the collision between
> Python's own site.py module and your own.
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://mail.python.org/pipermail/tutor/attachments/20061026/58841993/attachment-0001.html 


More information about the Tutor mailing list