At Friday 9/2/2007 02:10, you wrote:

Please keep posting on the list - you'll reach a whole lot of people there...

On 09/02/07, Gabriel Genellina <[EMAIL PROTECTED]> wrote:

It's a bit hard to tell from your description - would be better if you had
copied the exact error messages.
But the overall architecture looks wrong - a package is a *library*, and
it is *used* by others.
Your main application should be a standalone script that uses (imports)
the package.
Look at how other Python applications are structured.

yes I have a different script to run the package.  but I was just
checking the script because mainwindow is any ways the main window of
my application.
well, the error is,
import error: no module pbcf.
actually pbcf is the name of my package not the module.
is it because I am using a module on itself from within the package?

Using again my crystal ball I can see this statement: import pbcf
or perhaps: from pbcf import something (it's not so clear...)
written inside any module in your package. So, your package must be installed in any directory listed in sys.path, for python to be able to actually find it; perhaps in site-packages. Also, if you try to execute a module "inside" your package, it does not even *know* that it lives inside a package.


--
Gabriel Genellina
Softlab SRL

        

        
                
__________________________________________________ Preguntá. Respondé. Descubrí. Todo lo que querías saber, y lo que ni imaginabas, está en Yahoo! Respuestas (Beta). ¡Probalo ya! http://www.yahoo.com.ar/respuestas
-- 
http://mail.python.org/mailman/listinfo/python-list

Reply via email to