[TriLUG] Python site-packages problems on FC3
Brian Weaver
cmdrclueless at gmail.com
Wed May 25 13:34:51 EDT 2005
Actually,
the problem was that I didn't have a file named '__init__.py' in the
'package' directory. Doesn't even have to contain any statments. Just
had to exists. Took me quite a bit of time searching to find it, and
then google only helped when I started to examine the site-packages
directory in more detail.
-Weave
On 5/25/05, Brent Verner <brent at rcfile.org> wrote:
> | I wanted to move the three modules into a namespace, say 'ns'. So I
> | made a directory '/usr/lib/python2.3/site-packages/ns' and move the
> | three py files there. Then I modified my main routine to import
> | 'ns.X', 'ns.Y', and 'ns.Z' from simply 'X', 'Y', and 'Z'.
>
> I _think_ you want to say
>
> from ns import X
> from ns import Y
>
> or even
>
> from ns import *
>
> instead of
>
> import ns.X
>
> hth
> b
>
> --
> TriLUG mailing list : http://www.trilug.org/mailman/listinfo/trilug
> TriLUG Organizational FAQ : http://trilug.org/faq/
> TriLUG Member Services FAQ : http://members.trilug.org/services_faq/
> TriLUG PGP Keyring : http://trilug.org/~chrish/trilug.asc
>
More information about the TriLUG
mailing list