Just to be doubly certain, I created a brand new install of Linux Mint 12 in
Virtualbox.  I added no new software to default install.  I installed Dabo
using the following steps:

1. I installed the following packages through the package manager -
python-reportlab, python-wxgtk2.8, subversion and python-mysqldb.
2. svn checkout http://svn.dabodev.com/dabo/trunk dabo from my home
directory
3. I created a sym link in /usr/local/lib/python2.7/dist-packages to
$HOME/dabo/dabo 

DaboDemo.py worked fine.

I created an application in the interper by:
Import dabo
dabo.quickStart("test")

I changed into ~/test/db and fired up the conneciton editor by typing python
~/dabo/ide/CxnEditor.py (no alias).

I used the Pycon demo parameters to connect to the Pycon database.

The connection tested OK.

I tried to save and got:

dave@dave-test ~/test/db $ python ~/dabo/ide/CxnEditor.py
/usr/local/lib/python2.7/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")

(python:3455): Gtk-WARNING **: Unable to retrieve the file info for
`file:///home/dave/test/db/hours': Error stating file
'/home/dave/test/db/hours': No such file or directory
Traceback (most recent call last):
  File
"/usr/local/lib/python2.7/dist-packages/dabo/ui/uiwx/dControlMixin.py", line
27, in _onWxHit
    self.raiseEvent(dEvents.Hit, evt, *args, **kwargs)
  File "/usr/local/lib/python2.7/dist-packages/dabo/ui/uiwx/dPemMixin.py",
line 1074, in raiseEvent
    super(dPemMixin, self).raiseEvent(eventClass, nativeEvent, *args,
**kwargs)
  File "/usr/local/lib/python2.7/dist-packages/dabo/lib/eventMixin.py", line
81, in raiseEvent
    bindingFunction(event)
  File "/home/dave/dabo/ide/CxnEditor.py", line 278, in onSave
    self.saveFile()
  File "/home/dave/dabo/ide/CxnEditor.py", line 23, in _wrapped
    return fnc(self, *args, **kwargs)
  File "/home/dave/dabo/ide/CxnEditor.py", line 437, in saveFile
    self.writeChanges()
  File "/home/dave/dabo/ide/CxnEditor.py", line 552, in writeChanges
    vals = self.relPaths(self.connDict.values())
  File "/home/dave/dabo/ide/CxnEditor.py", line 565, in relPaths
    if self.isFileBasedBackend(val["dbtype"]):
KeyError: 'dbtype'

Dave Kelly
The Priory Inn
01666 502 251
www.theprioryinn.co.uk 
"Dining in a 30 Mile Food Zone"


> -----Original Message-----
> From: [email protected] [mailto:dabo-users-
> [email protected]] On Behalf Of Dave Kelly
> Sent: 26 July 2012 10:35
> To: 'Dabo Users list'
> Subject: Re: [dabo-users] Struggling with connection editor
> 
> Ed,
> 
> I was at 7210.  I had updated before I wrote the last email.
> 
> Just to make sure, I have now deleted the ~/src/ directories and
reinstalled
> into a new directory ~/dabo/ using the latest version from subversion.  I
> created a new app called test1.  The results when trying to connect to the
> pycon demo are as follows:
> 
> dave@dave-Mint ~/test1/db $ dconnect
> /usr/local/lib/python2.7/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")
> 
> (python:21520): Gtk-WARNING **: Unable to retrieve the file info for
> `file:///home/dave/test1/db/hours': Error stating file
> '/home/dave/test1/db/hours': No such file or directory Traceback (most
> recent call last):
>   File
> "/usr/local/lib/python2.7/dist-packages/dabo/ui/uiwx/dControlMixin.py",
> line 27, in _onWxHit
>     self.raiseEvent(dEvents.Hit, evt, *args, **kwargs)
>   File "/usr/local/lib/python2.7/dist-packages/dabo/ui/uiwx/dPemMixin.py",
> line 1074, in raiseEvent
>     super(dPemMixin, self).raiseEvent(eventClass, nativeEvent, *args,
> **kwargs)
>   File "/usr/local/lib/python2.7/dist-packages/dabo/lib/eventMixin.py",
line
> 81, in raiseEvent
>     bindingFunction(event)
>   File "/home/dave/dabo/ide/CxnEditor.py", line 278, in onSave
>     self.saveFile()
>   File "/home/dave/dabo/ide/CxnEditor.py", line 23, in _wrapped
>     return fnc(self, *args, **kwargs)
>   File "/home/dave/dabo/ide/CxnEditor.py", line 437, in saveFile
>     self.writeChanges()
>   File "/home/dave/dabo/ide/CxnEditor.py", line 552, in writeChanges
>     vals = self.relPaths(self.connDict.values())
>   File "/home/dave/dabo/ide/CxnEditor.py", line 565, in relPaths
>     if self.isFileBasedBackend(val["dbtype"]):
> KeyError: 'dbtype'
> 
> Dave Kelly
> The Priory Inn
> 01666 502 251
> www.theprioryinn.co.uk
> "Dining in a 30 Mile Food Zone"
> 
> 
> > -----Original Message-----
> > From: [email protected] [mailto:dabo-users-
> > [email protected]] On Behalf Of Ed Leafe
> > Sent: 25 July 2012 15:00
> > To: Dabo Users list
> > Subject: Re: [dabo-users] Struggling with connection editor
> >
> > On Jul 25, 2012, at 2:27 AM, Dave Kelly wrote:
> >
> > >  File "/home/dave/src/dabo/ide/CxnEditor.py", line 274, in onSave
> > >    self.saveFile()
> > >  File "/home/dave/src/dabo/ide/CxnEditor.py", line 430, in saveFile
> > >    self.writeChanges()
> > >  File "/home/dave/src/dabo/ide/CxnEditor.py", line 543, in
writeChanges
> > >    vals = self.relPaths(self.connDict.values())
> > >  File "/home/dave/src/dabo/ide/CxnEditor.py", line 556, in relPaths
> > >    if self.isFileBasedBackend(val["dbtype"]):
> > > KeyError: 'dbtype'
> >
> >     You seem to still have the previous version of the CxnEditor.py
> file:
> > the traceback shows that the call to 'self.saveFile()' is line 274, but
in
> the
> > updated version that line is line 278.
> >
> >     If you're using Subversion to update, go to the folder
> > '/home/dave/src/dabo/ide' and type:
> >
> > svn stat -u CxnEditor.py
> >
> >     My guess is that it says:
> >
> >         *     6587   CxnEditor.py
> > Status against revision:   7210
> >
> >     Try running 'svn up' to get revision 7210.
> >
> >
> > -- 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/658FF5C0-AB11-4F1C-
> 9639-
> > [email protected]
> 
> _______________________________________________
> 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/00dd01cd6b11$e90753c0$bb15fb40$@the
> prioryinn.co.uk

_______________________________________________
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