On 07/27/2010 02:54 PM, Mark Veldhuis wrote:
> On 07/27/2010 02:28 PM, Ed Leafe wrote:
>    
>> On Jul 26, 2010, at 5:36 PM, Mark Veldhuis wrote:
>>
>>
>>      
>>> First a thank you to the developpers of Dabo, I am hopeful and excited
>>> to realise some plans programming Python and databases!
>>> I followed the Pycon tutorial all the way to the appwizard demo, where I
>>> ran into a problem. I tried 3 ways of connecting to a database without
>>> good result: the furthest I got with SQLite.
>>> -I installed SQLite, created a database and started the appwizard. I
>>> connected to the database, checked the tables and continued to the
>>> create app lication page, I selected Finish. The appwizard keeps at that
>>> page until I cancel. I see there is a folder created, with 8 empty
>>> subfolders and an empty .py doc
>>> -maybe it is helpful to mention the other results, I followed the
>>> example (pycon database at dabodev.com) and the appwizard froze after
>>> Next on the database parameter page. I installed mysql server and
>>> created a database in it, appwizard froze at  the same point.
>>>
>>>        
>>      Was there any output to the terminal window from which you launched 
>> AppWizard? Sounds like something is preventing the templates from being 
>> populated and written to disk.
>>
>>
>> -- Ed Leafe
>>
>>
>>
>> _______________________________________________
>> Post Messages to: [email protected]
>> 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/[email protected]
>>
>>
>>      
> Here it is:
>
> Traceback (most recent call last):
>     File
> "/usr/local/lib/python2.6/dist-packages/dabo/ui/uiwx/dControlMixin.py",
> line 27, in _onWxHit
>       self.raiseEvent(dEvents.Hit, evt, *args, **kwargs)
>     File
> "/usr/local/lib/python2.6/dist-packages/dabo/ui/uiwx/dPemMixin.py", line
> 980, in raiseEvent
>       super(dPemMixin, self).raiseEvent(eventClass, nativeEvent, *args,
> **kwargs)
>     File "/usr/local/lib/python2.6/dist-packages/dabo/lib/eventMixin.py",
> line 93, in raiseEvent
>       bindingFunction(event)
>     File
> "/usr/local/lib/python2.6/dist-packages/dabo/ui/dialogs/Wizard.py", line
> 122, in onNext
>       self._finish()
>     File
> "/usr/local/lib/python2.6/dist-packages/dabo/ui/dialogs/Wizard.py", line
> 138, in _finish
>       ok = pg.onLeavePage("forward")
>     File "/home/mark/dabo/ide/wizards/AppWizard/AppWizard.py", line 549,
> in onLeavePage
>       if not self.Form.createApp():
>     File "/home/mark/dabo/ide/wizards/AppWizard/AppWizard.py", line 639,
> in createApp
>       f.write(self.getMain(ci.Name, selTb[0], appName))
>     File "/home/mark/dabo/ide/wizards/AppWizard/AppWizard.py", line 1006,
> in getMain
>       "spec-main.py.txt")).read() % locals()
> IOError: [Errno 2] No such file or directory:
> '/usr/lib/python2.6/dist-packages/wx-2.8-gtk2-unicode/spec-main.py.txt'
>
>
> _______________________________________________
> Post Messages to: [email protected]
> 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/[email protected]
>
>    
when trying to connect to the resipes database for the pycon demo, I got 
another message:
/usr/local/lib/python2.6/dist-packages/dabo/lib/SimpleCrypt.py:52: 
UserWarning: WARNING: SimpleCrypt is not secure. Please see 
http://wiki.dabodev.com/SimpleCrypt for more information
   warnings.warn("WARNING: SimpleCrypt is not secure. Please see 
http://wiki.dabodev.com/SimpleCrypt for more information")
Traceback (most recent call last):
   File 
"/usr/local/lib/python2.6/dist-packages/dabo/ui/uiwx/dControlMixin.py", 
line 27, in _onWxHit
     self.raiseEvent(dEvents.Hit, evt, *args, **kwargs)
   File 
"/usr/local/lib/python2.6/dist-packages/dabo/ui/uiwx/dPemMixin.py", line 
980, in raiseEvent
     super(dPemMixin, self).raiseEvent(eventClass, nativeEvent, *args, 
**kwargs)
   File "/usr/local/lib/python2.6/dist-packages/dabo/lib/eventMixin.py", 
line 93, in raiseEvent
     bindingFunction(event)
   File 
"/usr/local/lib/python2.6/dist-packages/dabo/ui/dialogs/Wizard.py", line 
124, in onNext
     self.CurrentPage += pg.nextPage()
   File 
"/usr/local/lib/python2.6/dist-packages/dabo/ui/dialogs/Wizard.py", line 
291, in _setCurrPage
     ok = self._pages[self._currentPage].onLeavePage(direction)
   File "/home/mark/dabo/ide/wizards/AppWizard/AppWizard.py", line 301, 
in onLeavePage
     conn = dabo.db.dConnection(ci)
   File "/usr/local/lib/python2.6/dist-packages/dabo/db/dConnection.py", 
line 32, in __init__
     self._connection = self._openConnection(**kwargs)
   File "/usr/local/lib/python2.6/dist-packages/dabo/db/dConnection.py", 
line 80, in _openConnection
     return 
self._connectInfo.getConnection(forceCreate=self._forceCreate, **kwargs)
   File 
"/usr/local/lib/python2.6/dist-packages/dabo/db/dConnectInfo.py", line 
105, in getConnection
     return self._backendObject.getConnection(self, **kwargs)
   File "/usr/local/lib/python2.6/dist-packages/dabo/db/dbMySQL.py", 
line 22, in getConnection
     import MySQLdb as dbapi
ImportError: No module named MySQLdb

I hope it helps, Mark
_______________________________________________
Post Messages to: [email protected]
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/[email protected]

Reply via email to