module' object has no attribute 'ClientBizobj'

View: New views
2 Messages — Rating Filter:   Alert me  

module' object has no attribute 'ClientBizobj'

by jvandal :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

hi,
I tried running from my directory as Ed suggested I got this error , checked code and it seems as tutorial says
What to do?
JIm
 Directory of C:\dabo-0.9.2-win\dabo\projects\hour

10/30/2009  09:15 PM    <DIR>          .
10/30/2009  09:15 PM    <DIR>          ..
10/30/2009  09:09 PM    <DIR>          biz
10/30/2009  09:34 PM    <DIR>          db
10/30/2009  09:15 PM               296 main.py
10/30/2009  09:09 PM    <DIR>          reports
10/30/2009  09:09 PM    <DIR>          resources
10/30/2009  06:51 PM    <DIR>          test
10/30/2009  09:09 PM    <DIR>          ui
               1 File(s)            296 bytes
               8 Dir(s)  185,294,188,544 bytes free

C:\dabo-0.9.2-win\dabo\projects\hour>

C:\dabo-0.9.2-win\dabo\projects\hour>python main.py
c:\python25\lib\site-packages\dabo-0.9.2-py2.5.egg\dabo\lib\SimpleCrypt.py:32: U
serWarning:
WARNING:
Your application uses SimpleCrypt, which is fine for testing but should
not be used in production, because:

1) Anyone with a copy of Dabo could decrypt your password.

2) It isn't portable between 32-bit and 64-bit python. See the trac
   ticket at http://trac.dabodev.com/ticket/1179 for more information.

  """, UserWarning)
Traceback (most recent call last):
  File "main.py", line 13, in <module>
    app.start()
  File "C:\Python25\lib\site-packages\dabo-0.9.2-py2.5.egg\dabo\dApp.py", line 3
76, in start
    self.setup()
  File "C:\Python25\lib\site-packages\dabo-0.9.2-py2.5.egg\dabo\dApp.py", line 3
32, in setup
    self.initUIApp()
  File "C:\Python25\lib\site-packages\dabo-0.9.2-py2.5.egg\dabo\dApp.py", line 3
68, in initUIApp
    self.uiApp.setup()
  File "C:\Python25\lib\site-packages\dabo-0.9.2-py2.5.egg\dabo\ui\uiwx\uiApp.py
", line 406, in setup
    frm = self.dApp.MainForm = dabo.ui.createForm(mfc)
  File "C:\Python25\lib\site-packages\dabo-0.9.2-py2.5.egg\dabo\ui\uiwx\__init__
.py", line 1168, in createForm
    frm = cls(*args, **kwargs)
  File "c:\users\jim\appdata\local\temp\tmpzumopn.py", line 9, in __init__
    super(dForm_84489, self).__init__(parent=parent, attProperties=attProperties
, *args, **kwargs)
  File "C:\Python25\lib\site-packages\dabo-0.9.2-py2.5.egg\dabo\ui\uiwx\dForm.py
", line 933, in __init__
    BaseForm.__init__(self, preClass, parent, properties, attProperties, *args,
**kwargs)
  File "C:\Python25\lib\site-packages\dabo-0.9.2-py2.5.egg\dabo\ui\uiwx\dForm.py
", line 44, in __init__
    fm.dFormMixin.__init__(self, preClass, parent, properties, attProperties, *a
rgs, **kwargs)
  File "C:\Python25\lib\site-packages\dabo-0.9.2-py2.5.egg\dabo\ui\uiwx\dFormMix
in.py", line 89, in __init__
    attProperties, *args, **kwargs)
  File "C:\Python25\lib\site-packages\dabo-0.9.2-py2.5.egg\dabo\ui\uiwx\dPemMixi
n.py", line 186, in __init__
    self._afterInit()
  File "C:\Python25\lib\site-packages\dabo-0.9.2-py2.5.egg\dabo\ui\uiwx\dForm.py
", line 71, in _afterInit
    super(BaseForm, self)._afterInit()
  File "C:\Python25\lib\site-packages\dabo-0.9.2-py2.5.egg\dabo\ui\uiwx\dFormMix
in.py", line 139, in _afterInit
    self.createBizobjs()
  File "c:\users\jim\appdata\local\temp\tmpzumopn.py", line 292, in createBizobj
s
    bizClient = self.Application.biz.ClientBizobj(conn)
AttributeError: 'module' object has no attribute 'ClientBizobj'

C:\dabo-0.9.2-win\dabo\projects\hour>

Re: module' object has no attribute 'ClientBizobj'

by Ed Leafe :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

On Oct 31, 2009, at 12:03 AM, jvandal wrote:

>   bizClient = self.Application.biz.ClientBizobj(conn)
> AttributeError: 'module' object has no attribute 'ClientBizobj'

        OK, this is a different error than the last time. The last time,  
'self.Application.biz' was None; now it's a module, but it can't find  
'ClientBizobj'. The usual reason for this is that the import is  
missing from the biz/__init__.py file. Make sure that you have a file  
named 'ClientBizobj.py' in the biz directory, a class named  
'ClientBizobj' defined in that file, and that the __init__.py file has  
the line 'from ClientBizobj import ClientBizobj'.


-- Ed Leafe





_______________________________________________
Post Messages to: Dabo-users@...
Subscription Maintenance: http://leafe.com/mailman/listinfo/dabo-users
Searchable Archives: http://leafe.com/archives/search/dabo-users
This message: http://leafe.com/archives/byMID/3C2BAB6C-215D-4444-B43C-DDBE82CAB58C@...