Bug: tg-admin can't make 'test' project -- "The package name 'test' is already in use"

1 view
Skip to first unread message

Mats

unread,
Mar 16, 2008, 3:47:47 PM3/16/08
to TurboGears
[ This bug was unable to be reported via Trac due to the draconian
spam filter. The spam filter is preventing users from submitting valid
bugs! Users are unceremoniously dumped without being given any sort of
email to send their bug reports to, which is likely to drastically
reduce quantity and quality of community feedback. ]

Possible signs of namespace occlusion bugs; you may wish to look for
similar namespace occlusion bugs while fixing this.

Can be a potentially serious source of confusion for new users who
want to make their first project named 'test'.

$ tg-admin quickstart --sqlalchemy
Enter project name: test
Enter package name [test]:
Do you need Identity (usernames/passwords) in this project? [no] yes
The package name "test" is already in use

Jorge Godoy

unread,
Mar 17, 2008, 6:43:42 AM3/17/08
to turbo...@googlegroups.com
Em Sunday 16 March 2008 16:47:47 Mats escreveu:
> [ This bug was unable to be reported via Trac due to the draconian
> spam filter. The spam filter is preventing users from submitting valid
> bugs! Users are unceremoniously dumped without being given any sort of
> email to send their bug reports to, which is likely to drastically
> reduce quantity and quality of community feedback. ]
>
> Possible signs of namespace occlusion bugs; you may wish to look for
> similar namespace occlusion bugs while fixing this.
>
> Can be a potentially serious source of confusion for new users who
> want to make their first project named 'test'.

I believe that the best solution in this case is special casing "test". It
was a design decision a long time ago to prevent you -- the user of TG --
from creating any application with the name of an already installed module
otherwise you'd have problems after installing such an application.

Other than special casing, I also believe that documentation would do it.

--
Jorge Godoy <jgo...@gmail.com>

Christopher Arndt

unread,
Mar 17, 2008, 7:25:59 AM3/17/08
to turbo...@googlegroups.com
Jorge Godoy schrieb:

> It was a design decision a long time ago to prevent you -- the user of TG --
> from creating any application with the name of an already installed module
> otherwise you'd have problems after installing such an application.
>
> Other than special casing, I also believe that documentation would do it.

I added this to the list of topics to cover in a to-be-written
quickstart guide:

http://trac.turbogears.org/ticket/1744

Chris

Patrick Lewis

unread,
Mar 17, 2008, 10:26:03 AM3/17/08
to TurboGears
It is saying the package named 'test' is already in use. Which is
true.

http://docs.python.org/lib/module-test.html

Perhaps tg-admin could list out the file path of the package so it is
clearer where the conflict is occuring. But other than that, it's a
feature.
Reply all
Reply to author
Forward
0 new messages