boa-constructor-users Mailing List for Boa Constructor - wxPython GUI Builder (Page 132)
Status: Beta
Brought to you by:
riaan
You can subscribe to this list here.
2000 |
Jan
|
Feb
(1) |
Mar
(18) |
Apr
(4) |
May
(17) |
Jun
(14) |
Jul
(18) |
Aug
(3) |
Sep
(30) |
Oct
(16) |
Nov
(11) |
Dec
(9) |
---|---|---|---|---|---|---|---|---|---|---|---|---|
2001 |
Jan
(19) |
Feb
(10) |
Mar
(4) |
Apr
(6) |
May
(27) |
Jun
(37) |
Jul
(44) |
Aug
(44) |
Sep
(49) |
Oct
(4) |
Nov
(6) |
Dec
(12) |
2002 |
Jan
(27) |
Feb
(22) |
Mar
(48) |
Apr
(21) |
May
(20) |
Jun
(6) |
Jul
(33) |
Aug
(34) |
Sep
(9) |
Oct
(41) |
Nov
(14) |
Dec
(35) |
2003 |
Jan
(75) |
Feb
(75) |
Mar
(59) |
Apr
(22) |
May
(18) |
Jun
(36) |
Jul
(50) |
Aug
(106) |
Sep
(71) |
Oct
(63) |
Nov
(81) |
Dec
(58) |
2004 |
Jan
(48) |
Feb
(42) |
Mar
(57) |
Apr
(64) |
May
(81) |
Jun
(30) |
Jul
(15) |
Aug
(39) |
Sep
(56) |
Oct
(61) |
Nov
(27) |
Dec
(20) |
2005 |
Jan
(74) |
Feb
(62) |
Mar
(237) |
Apr
(83) |
May
(138) |
Jun
(132) |
Jul
(61) |
Aug
(51) |
Sep
(17) |
Oct
(22) |
Nov
(59) |
Dec
(32) |
2006 |
Jan
(7) |
Feb
(7) |
Mar
(24) |
Apr
(15) |
May
(19) |
Jun
(46) |
Jul
(26) |
Aug
(51) |
Sep
(35) |
Oct
(90) |
Nov
(27) |
Dec
(23) |
2007 |
Jan
(22) |
Feb
(17) |
Mar
(14) |
Apr
(28) |
May
(38) |
Jun
(44) |
Jul
(34) |
Aug
(40) |
Sep
(29) |
Oct
(44) |
Nov
(16) |
Dec
(15) |
2008 |
Jan
(12) |
Feb
(37) |
Mar
(48) |
Apr
(35) |
May
(37) |
Jun
(32) |
Jul
(30) |
Aug
(28) |
Sep
(33) |
Oct
(19) |
Nov
(44) |
Dec
(45) |
2009 |
Jan
(30) |
Feb
(16) |
Mar
(48) |
Apr
(56) |
May
(100) |
Jun
(4) |
Jul
(1) |
Aug
|
Sep
|
Oct
(7) |
Nov
|
Dec
(3) |
2010 |
Jan
(8) |
Feb
(3) |
Mar
(4) |
Apr
|
May
|
Jun
|
Jul
|
Aug
|
Sep
(1) |
Oct
(6) |
Nov
(22) |
Dec
|
2011 |
Jan
|
Feb
(4) |
Mar
|
Apr
|
May
(1) |
Jun
(2) |
Jul
|
Aug
|
Sep
|
Oct
(1) |
Nov
(2) |
Dec
(1) |
2012 |
Jan
|
Feb
|
Mar
(2) |
Apr
|
May
|
Jun
|
Jul
(1) |
Aug
|
Sep
|
Oct
|
Nov
|
Dec
|
2013 |
Jan
(5) |
Feb
(1) |
Mar
|
Apr
|
May
(3) |
Jun
|
Jul
|
Aug
|
Sep
|
Oct
|
Nov
|
Dec
|
2017 |
Jan
|
Feb
|
Mar
|
Apr
|
May
|
Jun
(2) |
Jul
|
Aug
|
Sep
|
Oct
|
Nov
|
Dec
|
From: Carlos R. <cri...@ma...> - 2002-11-30 01:37:47
|
Well, I've just downloaded a CVS snapshot of Boa (version 0.1.3, I think). I would like to contribute with my first impressions. Some personal info first... I have a *lot* of experience with Delphi (since the first betas, pre-1.0). - Boa is really nice and well structured. But documentation is lacking; I could not access any help information. I assume some doc is already available, but I don't know how to download it from CVS. - For people used to popular two-way RAD GUI tools (such as Delphi and VB), the 'commit'/'cancel' nature of the Frame Designer looks strange at first. [In Delphi, the source code is automatically updated when you drop a component on the designer view]. But it works nicely, and it does not seriously affect productivity - it's just a matter of adaptation. - The Frame Designer has a few problems, though. Some components proved difficult to select once put onto the designer., specially static text boxes. I tried clicking the mouse on some locations, but could not select it. Moving an edit box (the one called 'wxTextBox') was also difficult, but I managed to make it. - I could not select more than one component at a time. Is it a 'feature', or is it going to be fixed? - Changing the structure of the form also proved to be a little bit difficult. For example, I would like to put some components that were designed into the form inside a panel (I forgot to add the panel first :-) I know how to convince Delphi to let me do just that; not only cut & paste works fine in Delphi for multiple component selection, you can easily edit the form description, which sometimes is better than the visual form designer for some changes. - I took a look at the code generated by Boa. I guess that the code was intended for processing by Boa alone, but it would not hurt if the code was formatted a little bit better. Breaking the long lines would help a lot for us to read and understand what's going on. - Probably, my main gripe is with the lack of online documentation for the wxWindows library. I have heard how good wxWindows is, but a better documentation is really needed. I sincerely don't know where to start, and please bear in mind that I'm no novice in this stuff. - Last but not least, I could not debug my first app and I have no idea why. I just clicked on the 'debug app' button, the mouse cursor went clocking, and Boa just froze - no redraws, no response to any command. Had to kill -9 it. - Back to the textual description of the form, as available in Delphi... and to the code generated by Boa. I think that it would be interesting to describe the components using a dictionary, and then feeding this dictionary to a initialization procedure that would create the window using the information. It would make reading/editing the properties of the visual components a little bit easier. Form creation could be slowed down a little bit though. I assume that this topic was already discussed on the list before, could someone give me a few pointers? - Back to the wxWindows documentations issues: one of the main problems with GUI libraries is that it's not enough to know the library functions; one has to understand how things do fit together, how do they interact. I'll give one example. I know that wxWindows has some layout classes. The application that I am designing now calls for relatively complex windows, with panels with grids and buttons to act on particular records shown on those grids. The basic point here is that the window has to be structured the right way. In Delphi, I developed my own way to make it work - I make extensive use of panels as containers for rows of buttons, pseudo-title-bars for sections of the form, etc. The question is, is this the correct technique for wxWindows? Many thanks for the dev guys for Boa - it's already in a pretty usable state, and it will help me to write my new Python app very, very quickly. Carlos Ribeiro InfTec |
From: Eric W. <ewa...@ya...> - 2002-11-20 00:57:50
|
Thanks Gerrit, that solved my problem. Sorry I didn't find the message in the archives myself. FWIW, I added something like the following line to my ~/.bashrc file: alias boa='env LANG=en_US /path/to/python /path/to/Boa.py' Now when I want to run boa constructor, I simply type 'boa' at the command line and I'm all set. Best regards, Eric. Message: 2 From: Gerrit Van Dyk <Ger...@de...> To: "Boa Users (E-mail)" <boa...@li...> Date: Mon, 18 Nov 2002 09:56:34 +0200 Subject: [Boa Constr] Re: Fonts displaying wrong on RH8.0 I lost the original message for this problem. I hereby forward a message that was posted to the wx-users mailing list a while ago. Hopefully this will solve the problem with fonts on RH8.0. I haven't tried it yet, as I haven't had a chance yet to install RH8.0. Please let me know if this solves the problem. Regards Gerrit van Dyk -----Original Message----- From: Rob...@t-... [mailto:Rob...@t-...] Sent: Thursday, October 17, 2002 8:54 PM To: wx-...@li... Subject: Re: Upgrading from RH 7.0 to RH 8.0 Alfredo Cole wrote: > I'm planning on upgrading (actually, reinstall) all of our servers > from RH 7.0 to 8.0. Are there any problems that I should be aware of > in terms of incompatibilities or other issues? When using the default ....utf8 locales, characters will display as junk. The short term remedy is to set the LANG variable to en_US or whatever you need instead of en_US.utf8 __________________________________________________ Do you Yahoo!? Yahoo! Web Hosting - Let the expert host your site http://webhosting.yahoo.com |
From: Christian T. <ti...@ti...> - 2002-11-19 15:26:24
|
Riaan Booysen wrote: ...big snip... > Ok I installed the OpenSSH that you are using (I think). > > It was unable to use my current public/private keys so I uninstalled it. > I'm *not* going thru that whole new key process now. > (Also it's cygwin based and I really prefer the simple > scp.exe/ssh.exe setup I had) Well, my experience with OpenSSH under cygwin is very good. One fine thing is that it supports ssh-agent. This will work with any process, given that you start it from a cygwin shell. For instance, I use it with WinCVS. Starting a cygwin shell, I run ssh-agent bash ssh-add (type your phrase) and then I call the WinCVS executable from that shell. Works fine, authentication works behind the scenes like a charm. I haven't seen a package yet that does this for plain windows, alone. cheers - chris -- Christian Tismer :^) <mailto:ti...@ti...> Mission Impossible 5oftware : Have a break! Take a ride on Python's Johannes-Niemeyer-Weg 9a : *Starship* http://starship.python.net/ 14109 Berlin : PGP key -> http://wwwkeys.pgp.net/ work +49 30 89 09 53 34 home +49 30 802 86 56 pager +49 173 24 18 776 PGP 0x57F3BF04 9064 F4E1 D754 C2FF 1619 305B C09C 5A3B 57F3 BF04 whom do you want to sponsor today? http://www.stackless.com/ |
From: Yuppie <sc...@we...> - 2002-11-19 15:05:53
|
Hi! I'd like to use my news reader to read this list. I propose to subscribe this list to <http://gmane.org> as "gmane.comp.ide.boa-constructor". If there are no objections and Riaan gives his OK, I'll subscribe this list to gmane. Cheers, Yuppie |
From: Gerrit V. D. <Ger...@de...> - 2002-11-18 07:45:22
|
I lost the original message for this problem. I hereby forward a message that was posted to the wx-users mailing list a while ago. Hopefully this will solve the problem with fonts on RH8.0. I haven't tried it yet, as I haven't had a chance yet to install RH8.0. Please let me know if this solves the problem. Regards Gerrit van Dyk -----Original Message----- From: Rob...@t-... [mailto:Rob...@t-...] Sent: Thursday, October 17, 2002 8:54 PM To: wx-...@li... Subject: Re: Upgrading from RH 7.0 to RH 8.0 Alfredo Cole wrote: > I'm planning on upgrading (actually, reinstall) all of our servers > from RH 7.0 to 8.0. Are there any problems that I should be aware of > in terms of incompatibilities or other issues? When using the default ....utf8 locales, characters will display as junk. The short term remedy is to set the LANG variable to en_US or whatever you need instead of en_US.utf8 ------------------------------------------------------------------------- This e-mail is intended only for the use of the individual or entity named above and may contain information that is confidential and privileged, proprietary to the company and protected by law. If you are not the intended recipient, you are hereby notified that any dissemination, distribution or copying of this e-mail is strictly prohibited. Opinions, conclusions and other information in this message that do not relate to the official business of our company shall be understood as neither given nor endorsed by it. |
From: Eric W. <ewa...@ya...> - 2002-11-18 05:45:56
|
Hi All, I'm a boa constructor newbie. I have boa installed and running nicely on a RedHat 7.3 (upgraded to RH8) box and on Windows 98. I've an application that runs nicely on both these boxes. On a new IBM Thinkpad A31 with a fresh install of RedHat 8 I'm having trouble with what I think is a font problem. In a nut shell, all the source code is invisible and some of the text in the "File Open" dialog is unreadable. Each character looks like a box made of dashed lines. What's strange is that some of the text looks fine but some looks like these little boxes. Please see the screen shot to see what I mean. Thanks for any pointers you can give. Eric. I've posted a screen shot of the problem here: http://63.203.42.146/walstads/eric/images/boa_prob.png __________________________________________________ Do you Yahoo!? Yahoo! Web Hosting - Let the expert host your site http://webhosting.yahoo.com |
From: Neil H. <nho...@bi...> - 2002-11-15 23:10:06
|
Blaine Lee: > I use Boa to develop on NT, and Linux is the deployment platform. One > big annoyance has been the fact I don't know how to choose fonts that > appear the same on both machines. Does anyone have similar experience > and can shead some light? This is a difficult problem to solve completely because the set of fonts commonly available on Linux is different to Windows. It may be best to explicitly choose fonts depending on platform. This is how Boa itself handles the problem: common.defs.msw={'size': 10, 'backcol': '#FFFFFF', 'ln-font': 'Lucida Console', 'mono': 'Courier New', 'ln2-size': 7, 'plaintext-size': 10, 'ln-size': 8} common.defs.gtk={'mono': 'Courier', 'ln-font': 'Helvetica', 'size': 12, 'ln-size': 10, 'backcol': '#FFFFFF', 'ln2-size': 9, 'plaintext-size': 12} There are a few names that have approximate equivalents (Arial, Helvetica, Helvetic, Helmet, Geneva), (Courier, Courier New), (Times, Times New Roman, Timmons). > One of the constraints I try and keep is using mono spaced, bit map > fonts. I do this because I believe this minimizes the overhead. > (please tell me if I am off here...) Overhead isn't much of a problem. The problem is the dearth of high quality *hinted* outline fonts on Linux. There are actually quite a few good outline fonts bundled with Linux distributions or available on the web which look great in large sizes or when printed but look poor on the screen due to lack of hinting. For personal use many download Microsoft's core web fonts from http://corefonts.sourceforge.net/ and then use these on Linux. However, there are distribution restrictions that make it difficult to use these in a product. Neil |
From: Blaine L. <bl...@te...> - 2002-11-14 23:22:39
|
I use Boa to develop on NT, and Linux is the deployment platform. One big annoyance has been the fact I don't know how to choose fonts that appear the same on both machines. Does anyone have similar experience and can shead some light? One of the constraints I try and keep is using mono spaced, bit map fonts. I do this because I believe this minimizes the overhead. (please tell me if I am off here...) Thanks Blaine Lee |
From: Nigel S. <nig...@ya...> - 2002-11-07 00:50:23
|
Kingsley, Are you running the CVS or the Tarball version? Also what version of wx are you running. I remember getting that error when I upgrated to wx 2.3.3, but the latest CVS versions dosn't have this problem. (instead mine crashes at a later stage). Nigel. __________________________________________________ Do you Yahoo!? U2 on LAUNCH - Exclusive greatest hits videos http://launch.yahoo.com/u2 |
From: Brian L. <the...@ms...> - 2002-11-06 21:13:15
|
Did you download the binaries from the sourceforge site? If so, they are a bit out of date and you need to get a copy from CVS. >From: boa...@li... >Reply-To: boa...@li... >To: boa...@li... >Subject: Boa-constructor-users digest, Vol 1 #269 - 1 msg >Date: Wed, 06 Nov 2002 12:12:45 -0800 > >Send Boa-constructor-users mailing list submissions to > boa...@li... > >To subscribe or unsubscribe via the World Wide Web, visit > https://lists.sourceforge.net/lists/listinfo/boa-constructor-users >or, via email, send a message with subject or body 'help' to > boa...@li... > >You can reach the person managing the list at > boa...@li... > >When replying, please edit your Subject line so it is more specific >than "Re: Contents of Boa-constructor-users digest..." > > >Today's Topics: > > 1. Python 2.2 - can't run Boa - (Kingsley) > >--__--__-- > >Message: 1 >Date: Wed, 06 Nov 2002 13:25:55 +1100 >From: Kingsley <kt...@eb...> >To: boa...@li... >Subject: [Boa Constr] Python 2.2 - can't run Boa - > >it pops up a window saying [Error on Startup] "'flags' is an invalid >keyword >argument for this function. Clicking [Ok] makes it exit. > >Here's the stacktrace: > >~/Software/Boa/boa >[elephant] python2.2 Boa.py >Starting Boa Constructor v0.1.0-alpha >importing wxPython >setting user preferences >running main... >Traceback (most recent call last): > File "Boa.py", line 495, in ? > main() > File "Boa.py", line 475, in main > app = BoaApp() > File "Boa.py", line 310, in __init__ > wxApp.__init__(self, false) > File "/usr/lib/python2.2/site-packages/wxPython/wx.py", line 1705, in >__init__ > _wxStart(self.OnInit) > File "Boa.py", line 321, in OnInit > abt = About.createSplash(None, modTot, fileTot) > File "About.py", line 132, in createSplash > return AboutBoxSplash(parent, modTot, fileTot) > File "About.py", line 151, in __init__ > self.html = Utils.wxUrlClickHtmlWindow(self.blackback, -1, >flags=wxCLIP_CHILDREN) > File "/usr/lib/python2.2/site-packages/wxPython/html.py", line 609, in >__init__ > self.this = apply(htmlc.new_wxHtmlWindow,_args,_kwargs) >TypeError: 'flags' is an invalid keyword argument for this function >Exception exceptions.TypeError: "'NoneType' object is not callable" in >ignored > > >I commented out the problematic line (and the one after it) >but this just lead load a problem somwhere else. > >Any ideas ? > >-kt > > > > > > >--__--__-- > >_______________________________________________ >Boa-constructor-users mailing list >Boa...@li... >https://lists.sourceforge.net/lists/listinfo/boa-constructor-users > > >End of Boa-constructor-users Digest _________________________________________________________________ The new MSN 8: smart spam protection and 2 months FREE* http://join.msn.com/?page=features/junkmail |
From: Kingsley <kt...@eb...> - 2002-11-06 02:26:21
|
it pops up a window saying [Error on Startup] "'flags' is an invalid keyword argument for this function. Clicking [Ok] makes it exit. Here's the stacktrace: ~/Software/Boa/boa [elephant] python2.2 Boa.py Starting Boa Constructor v0.1.0-alpha importing wxPython setting user preferences running main... Traceback (most recent call last): File "Boa.py", line 495, in ? main() File "Boa.py", line 475, in main app = BoaApp() File "Boa.py", line 310, in __init__ wxApp.__init__(self, false) File "/usr/lib/python2.2/site-packages/wxPython/wx.py", line 1705, in __init__ _wxStart(self.OnInit) File "Boa.py", line 321, in OnInit abt = About.createSplash(None, modTot, fileTot) File "About.py", line 132, in createSplash return AboutBoxSplash(parent, modTot, fileTot) File "About.py", line 151, in __init__ self.html = Utils.wxUrlClickHtmlWindow(self.blackback, -1, flags=wxCLIP_CHILDREN) File "/usr/lib/python2.2/site-packages/wxPython/html.py", line 609, in __init__ self.this = apply(htmlc.new_wxHtmlWindow,_args,_kwargs) TypeError: 'flags' is an invalid keyword argument for this function Exception exceptions.TypeError: "'NoneType' object is not callable" in ignored I commented out the problematic line (and the one after it) but this just lead load a problem somwhere else. Any ideas ? -kt |
From: Nigel S. <nig...@ya...> - 2002-11-05 11:37:18
|
Hi, I just CVSed down the boa so I could run it with wx2.3.3. However when boa is starting it segfaults just after it loads Editor. By a process of placing print statements through the code I have found the offending command is line 667 of Views/StyledTextCtrls.py. The line reads as follows. self.language = language (cfg, self.commonDefs, self.styleIdNames, self.styles, psgn, psg, olsgn, olsg, ds, self.lexer, self.keywords, bi) = \ self.getSTCStyles(config, language) Any ideas as to the cause, fix, etc... I am using python 2.2.2, all from the unstable debian tree. Thanks __________________________________________________ Do you Yahoo!? HotJobs - Search new jobs daily now http://hotjobs.yahoo.com/ |
From: Antoni A. <al...@ct...> - 2002-11-01 20:49:26
|
Hi! I'm trying to figure how to use the Zope widgets. I have tried to add the= m to=20 an empty editor, to the data part of a form. Any help would be greatly appreciated! --=20 Antoni Aloy L=F3pez Binissalem - Mallorca Linux Registered User # 210825 Gentoo Powered |
From: Riaan B. <riaan@e.co.za> - 2002-10-30 09:26:16
|
Hi Yuppie, Yuppie wrote: > > Please also test and drop me a note if it doesn't work as expected. > > Much better now. The discussed problems are solved! > > But I found some other bugs: > > 1.) Deleting folders doesn't work with 'rm'. What about using 'rm -r' or > 'rm -rf'? Added -rf, thanks. > > 2.) Opening files doesn't work: > Explorers.ExplorerNodes.TransportError: Catalog transport could not be > found: label~ || folder/test.txt Opening files works for me. From the error message it was trying to open folder/test.txt from a SSHConnection named "label~". I doubt you actually had a SSHConnection named like that so the URL splitting logic is somehow not handling your path. Please mail me (directly) your connection info (from Explorer.msw.cfg). Remove sensitive info. Also note something I failed to mention before; you may now safely remove the scp_pass property from any SSHConnection definition in Explorer.msw.cfg. As a workaround for now, use A simple alpha-numeric connection name and avoid ~ (I don't know why it would break anything, but "label~" seems to indicate it as a possible culprit) > > 3.) scp from one remote host to another doesn't work. You mean when you copy/paste from one SSHConnection to another? That's not supported no. scp does not seem to support copying from one remote server to another. If you are interested: SSHExplorer.SSHExpClipboard.clipPaste_SSHExpClipboard must: * Check if the pasted node is from a different SSHConnection * SCP it to a local temp file * SCP the temp file to the second remote server. I've no plans to do this soon. > 4.) The irix host returns folder names with trailing slash. The explorer > shows "./", "../", "folder/" and the paths contain "//". I don't know > how many unix platforms do this, but filtering out trailing slashs would > be nice. I've added this. (untested, please test) Both fixes checked into CVS. > Connecting and authenticating seems to be an expensive process: About 30 > seconds on my accounts. So browsing doesn't make much fun. Whould it be > possible to keep the ssh connections alive? Perhaps in a future release? Can't see how to do that without a rewrite and much pain. (With Rasjid's PySSH, maybe not too much pain :) Patches welcome ;) Cheers, Riaan. |
From: Riaan B. <riaan@e.co.za> - 2002-10-30 09:26:11
|
Hi Rasjid, Rasjid Wilcox wrote: > > On Tue, 29 Oct 2002 2:01 am, Yuppie wrote: > <snip> > > Connecting and authenticating seems to be an expensive process: About 30 > > seconds on my accounts. So browsing doesn't make much fun. Whould it be > > possible to keep the ssh connections alive? Perhaps in a future release? > > > > Perhaps Riaan could have a look at PySSH > (http://sourceforge.net/projects/pyssh). This makes it relatively easy to > send a number of commands over a single SSH session, and view (from within > Python) the output. Cool! > It is still Beta, but should work well with ssh on Linux and on Windows using > Cygwin. It does support Putty on Windows, but that is still Alpha, although > its main shortcoming is in forcing the SSH session to close. At the end of this thread Boa no longer supported putty, so that doesn't bother me :) > I am the current maintainer (took over in August this year), and if there is > interest and feedback I'd be fairly likely to put in the work to get the > Putty integration up to the desired level. OTOH, in my experience ssh under > cygwin is more powerful than putty for command line usage, and in this case > pyssh should work well. Personally I don't want to tie Boa to cygwin. Can't your library also use a single ssh.exe/scp.exe setup. (I can mail these exes to you if you don't have them) I will put PySSH integration on my todo list, but be warned the list is huge so I won't get to it anytime soon. I strongly urge you to attempt the integration! Make a copy of Explorers/SSHExplorer.py and call it Explorers/PySSHExplorer.py. Keep all the class names the same. In Explorer.*.cfg, in the installedtransports list under the [explorer] section, just change 'Exporers.SSHExplorer' to 'Exporers.PySSHExplorer'. Now the PySSHExplorer will be a drop-in replacement for SSH. I assume for your purposes the current connection properties will be sufficient. You don't have to know about the rest of the Boa code base to implement this, just reimplement the current interface. One small complication is that SSH support (like most others) is currently a stateless transport. Only the FTP transport is statefull. You'll have to use tricks similar to FTPExplorer to automatically do the connection when necessary. > By the way, Boa rocks big time. I used it while writing pyssh 0.2. Thanks, that's great to hear! > > Cheers, > > Rasjid. > Cheers, Riaan. |
From: Rasjid W. <ra...@op...> - 2002-10-29 09:45:35
|
On Tue, 29 Oct 2002 2:01 am, Yuppie wrote: <snip> > Connecting and authenticating seems to be an expensive process: About 30 > seconds on my accounts. So browsing doesn't make much fun. Whould it be > possible to keep the ssh connections alive? Perhaps in a future release? > Perhaps Riaan could have a look at PySSH (http://sourceforge.net/projects/pyssh). This makes it relatively easy to send a number of commands over a single SSH session, and view (from within Python) the output. It is still Beta, but should work well with ssh on Linux and on Windows using Cygwin. It does support Putty on Windows, but that is still Alpha, although its main shortcoming is in forcing the SSH session to close. I am the current maintainer (took over in August this year), and if there is interest and feedback I'd be fairly likely to put in the work to get the Putty integration up to the desired level. OTOH, in my experience ssh under cygwin is more powerful than putty for command line usage, and in this case pyssh should work well. By the way, Boa rocks big time. I used it while writing pyssh 0.2. Cheers, Rasjid. |
From: Yuppie <sc...@we...> - 2002-10-28 15:05:24
|
Hi Riaan! > Ok, all discussed changes are implemented, tested and checked into CVS. Great! > Please also test and drop me a note if it doesn't work as expected. Much better now. The discussed problems are solved! But I found some other bugs: 1.) Deleting folders doesn't work with 'rm'. What about using 'rm -r' or 'rm -rf'? 2.) Opening files doesn't work: Explorers.ExplorerNodes.TransportError: Catalog transport could not be found: label~ || folder/test.txt 3.) scp from one remote host to another doesn't work. 4.) The irix host returns folder names with trailing slash. The explorer shows "./", "../", "folder/" and the paths contain "//". I don't know how many unix platforms do this, but filtering out trailing slashs would be nice. Connecting and authenticating seems to be an expensive process: About 30 seconds on my accounts. So browsing doesn't make much fun. Whould it be possible to keep the ssh connections alive? Perhaps in a future release? > I have *many* other local changes to other parts of Boa, but have > not had time for a mega checkin, hope to get to it soon! Looking forward to it! Cheers, Yuppie |
From: Riaan B. <riaan@e.co.za> - 2002-10-28 04:32:59
|
Hi Yuppie, Yuppie wrote: > > Hi Riaan! > > Many thanks for your reply! No problem, glad this might be useful to more than 1 person :) > The '~'-problem: > ================ Interesting that unquoted paths are locally expanded, I would never have guessed, but I suppose it makes sense. > [user@windowshost]: ssh -l <user> <linuxhost> 'ls -la ~/folder' > works This is the one I'm going to use, thanks for the testing! (after testing) Damn! This does not work for the source forge server. This variation does work (I'm now using it): [user@windowshost]: ssh -l <user> <linuxhost> ls -la '~/folder' I've added quoting to all SSH commands that uses paths. > > I'll implement the current directory hack, that should work for both > > of us and also on Linux. > > +1 OK. > > > For you this change should be sufficient: > > > > def buildSCPStrs(self, source, dest): > > return 'scp %s %s'%(source, dest), 'scp %s %s'%(source, dest) > > Well. Actually that's the last thing I tried before writing to the > mailinglist. My comment above was under the assumption that your OpenSSH accepted windows paths. If it doesn't, then agreed, more than just the above changes are needed. > > The ':'-problem: > ================ > scp syntax uses ':' to seperate <host> from <file>. c:\filename is > interpreted as host = "c" and file = "\filename". Understood, although the @ could be used to distinguish between local and remote parts. pscp handles local windows paths correctly. > Any hints where to change the local path? When I implemement the proposed "current directory hack" there will be no more local paths only a filename ;) ... Ok, all discussed changes are implemented, tested and checked into CVS. Please also test and drop me a note if it doesn't work as expected. I have *many* other local changes to other parts of Boa, but have not had time for a mega checkin, hope to get to it soon! Thanks for the feedback, Riaan. |
From: Yuppie <sc...@we...> - 2002-10-27 15:26:27
|
Hi Riaan! Many thanks for your reply! > Me! I use it to browse my SourceForge shell account and copy files > to/from it. My one and only test case :) Interested in some more test results? Today I took a closer look at SSH. I tested on 3 accounts: user@irixhost: irix, OpenSSH user@linuxhost: linux, OpenSSH user@windowshost: windows, OpenSSH/cygwin, boa > >My experiments: > > > >- I managed to browse the remote filesystem > > o using the absolute root path ("/home/user", not "~") > > > I assume you mean you changed the property 'root' of the SSH > connection. Right. > You *should* change this (as you did) to wherever you need. > It's a property in the Inspector after all! > ~ still sounds like a valid default that has a better chance > of working that any other default value. Yes and no. The '~'-problem: ================ ~ is expanded on the local machine. If home path is not the same on local and remote machine, SSHExplorer fails. [user@irixhost]: echo $home /home/u/user [user@linuxhost]: echo $home /home/user [user@windowshost]: echo %home% C:\myhome [user@irixhost]: ssh -l <user> <linuxhost> ls -la ~ ls: /home/u/user: not found [user@windowshost]: ssh -l <user> <linuxhost> ls -la ~ ls: /myhome: not found [user@irixhost]: ssh -l <user> <linuxhost> ls -la \~ works [user@windowshost]: ssh -l <user> <linuxhost> ls -la \~ ls: ~: not found [user@irixhost]: ssh -l <user> <linuxhost> ls -la '~' works [user@windowshost]: ssh -l <user> <linuxhost> ls -la '~' works [user@windowshost]: ssh -l <user> <linuxhost> ls -la '~'/folder works [user@windowshost]: ssh -l <user> <linuxhost> 'ls -la ~/folder' works Quoting seems to be the solution, at least on cygwin and unix. Changed the property 'root' from "~" to "'~'" and browsing works fine for me. > >- I tried to open files from remote filesystem > > o copyToFS and copyFromFS seem to use pscp, not my scp > > > >My questions: > > > >- Is pscp PuTTY-scp? Does SSHExplorer work if I install this? > > > Yes, it's putty scp. The only scp I could get to work (see below). Did not install this so far. > After testing scp again it seems to be working now! > Granted I'm not on the same machine I was when I wrote SSHExplorer, > but I have no idea what has changed in the meanwhile. > > The new problem I now have is that scp does not accept windows > paths. (Seems to be a quick and dirty port) > > e.g. > scp text.txt > > copies fine, but > > scp c:\text.txt > > gives an error :/ > > One way to work around this would be to change the current directory > to the localpath directory before running the command. Same Problem with OpenSSH. > I'll implement the current directory hack, that should work for both > of us and also on Linux. +1 > For you this change should be sufficient: > > def buildSCPStrs(self, source, dest): > return 'scp %s %s'%(source, dest), 'scp %s %s'%(source, dest) Well. Actually that's the last thing I tried before writing to the mailinglist. The ':'-problem: ================ scp syntax uses ':' to seperate <host> from <file>. c:\filename is interpreted as host = "c" and file = "\filename". [user@windowshost]: scp <user>@<linuxhost>:file c:\folder ssh: c: no address associated with hostname. [user@windowshost]: scp <user>@<linuxhost>:file /folder works [user@windowshost]: scp <user>@<linuxhost>:file /cygdrive/c/folder works Any hints where to change the local path? TIA, Yuppie |
From: Riaan B. <riaan@e.co.za> - 2002-10-27 08:03:13
|
Hi Robin, Robin Dunn wrote: > > Riaan Booysen wrote: > > This is the error I get when I try to build a Boa rpm: > > > > distutils.errors.DistutilsPlatformError: invalid Python installation: > > unable to open /usr/lib/python2.2/config/Makefile (No such file or > > directory) > > > > Which is completely true, I have binary rpm installation of Python, > > but surely you don't need to build you own Python before you can > > build rpm files with distutils! > > You just need to install the python-devel rpm. Ah, cool! It works now. Thanks. Cheers, Riaan. |
From: Riaan B. <riaan@e.co.za> - 2002-10-27 08:03:09
|
Hi Yuppie, Yuppie wrote: > > Hi! > > Does anyone use the SSHExplorer? Me! I use it to browse my SourceForge shell account and copy files to/from it. My one and only test case :) > My environment: > > - Boa 0.1.3 a > - Windows 98 SE > - OpenSSH on Windows v3.4-2 > > My experiments: > > - I managed to browse the remote filesystem > o using the absolute root path ("/home/user", not "~") I assume you mean you changed the property 'root' of the SSH connection. You *should* change this (as you did) to wherever you need. It's a property in the Inspector after all! ~ still sounds like a valid default that has a better chance of working that any other default value. > o changing 'ls %s -la' to 'ls -la %s' in the source It worked for me, but yes, 'ls -la %s' is better (at least that's the way I usually list files ;) > - I tried to open files from remote filesystem > o copyToFS and copyFromFS seem to use pscp, not my scp > > My questions: > > - Is pscp PuTTY-scp? Does SSHExplorer work if I install this? Yes, it's putty scp. The only scp I could get to work (see below). > - So SSHExplorer doesn't work on unix platforms? The browsing part should work. The copying part won't (as it is currently). As these tools are actually unix tools, there is no reason for it not to work there if you change the strings in the buildSCPStrs method. I've actually forgotten about this issue (pscp) thanks! In my defence, this is the first feedback I've received about SSH support. Under 2.3.3.1/wxGTK Boa's SSH support is currently broken on unix anyway due to different issue (Problem with wxProcess and it's streams) so you won't even get this far. > - Why do I need scp_pass? scp does key authorization like ssh. Mine doesn't, not exactly the same. The biggest issue (if I recall correctly) was that scp always prompts for a password/passphrase and would not use the stored key without prompting. When running it from another process, It is impossible to 'feed' scp a password/passphrase on stdin as password input is handled handled differently by the shell than normal input. (With a blank passphrase and the identity file ssh does not prompt) That's why I chose pscp that accepts a password on the command line. (later, the above left in for historical purposes ;) After testing scp again it seems to be working now! Granted I'm not on the same machine I was when I wrote SSHExplorer, but I have no idea what has changed in the meanwhile. The new problem I now have is that scp does not accept windows paths. (Seems to be a quick and dirty port) e.g. scp <remotepath> text.txt copies fine, but scp <remotepath> c:\text.txt gives an error :/ One way to work around this would be to change the current directory to the localpath directory before running the command. (later again) Ok I installed the OpenSSH that you are using (I think). It was unable to use my current public/private keys so I uninstalled it. I'm *not* going thru that whole new key process now. (Also it's cygwin based and I really prefer the simple scp.exe/ssh.exe setup I had) I'll implement the current directory hack, that should work for both of us and also on Linux. For you this change should be sufficient: def buildSCPStrs(self, source, dest): return 'scp %s %s'%(source, dest), 'scp %s %s'%(source, dest) Cheers, Riaan. |
From: Ryurick M. H. <ryu...@ca...> - 2002-10-24 19:54:29
|
On Wed, 23 Oct 2002, Riaan Booysen wrote: [...] > Ask Google to find you this file (plenty of hits): > > wxGTK-2.3.2-1.i386.rpm I'm being silly, Ok, found it, managed to compile with --disable-joystick (no big loss here). Unfortunately wxPython 2.3.2 is nowhere to be seen, only 2.3.2.1 which doesn't compile. Nevermind, I think I'll have to pass on this one for the time being :-( [...] > > Whatever but there should be an executable somewhere in the path. > > Put it on your path then :) Well, yes, sure. I was still thinking of an rpm. > > > Luckily Python has distutils which can build rpms for you. > > > The Boa 0.1.0 release was built with distutils, but unfortunately > > > I could not get the bdist_rpm option to work (it should tho!). > > > > OK, I'll have to dig that one up, may take a while tho. > > Dig for what? :) Dig to understand how it works. As I said I am just starting to learn Python. > This is the error I get when I try to build a Boa rpm: > > distutils.errors.DistutilsPlatformError: invalid Python installation: > unable to open /usr/lib/python2.2/config/Makefile (No such file or > directory) > > Which is completely true, I have binary rpm installation of Python, > but surely you don't need to build you own Python before you can > build rpm files with distutils! As somebody else already pointed out, at least in RedHat 8.0 this is in the python-devel package. Thanks again for your prompt replies :-) Faster than the speed at which I can digest them :-) Cheers, -- Ryurick M. Hristev mailto:ryu...@ca... Computer Systems Manager University of Canterbury, Physics & Astronomy Dept., New Zealand |
From: Yuppie <sc...@we...> - 2002-10-24 17:28:41
|
Hi! Does anyone use the SSHExplorer? My environment: - Boa 0.1.3 a - Windows 98 SE - OpenSSH on Windows v3.4-2 My experiments: - I managed to browse the remote filesystem o using the absolute root path ("/home/user", not "~") o changing 'ls %s -la' to 'ls -la %s' in the source - I tried to open files from remote filesystem o copyToFS and copyFromFS seem to use pscp, not my scp My questions: - Is pscp PuTTY-scp? Does SSHExplorer work if I install this? - So SSHExplorer doesn't work on unix platforms? - Why do I need scp_pass? scp does key authorization like ssh. TIA, Yuppie |
From: Robin D. <ro...@al...> - 2002-10-23 16:36:54
|
Riaan Booysen wrote: > This is the error I get when I try to build a Boa rpm: > > distutils.errors.DistutilsPlatformError: invalid Python installation: > unable to open /usr/lib/python2.2/config/Makefile (No such file or > directory) > > Which is completely true, I have binary rpm installation of Python, > but surely you don't need to build you own Python before you can > build rpm files with distutils! You just need to install the python-devel rpm. -- Robin Dunn Software Craftsman http://wxPython.org Java give you jitters? Relax with wxPython! |
From: Riaan B. <riaan@e.co.za> - 2002-10-23 04:38:59
|
Hi Ryurick, "Ryurick M. Hristev" wrote: > > On Wed, 23 Oct 2002, Riaan Booysen wrote: > > > you have) is fully usable and stable, but unfortunately a change in > > wxWindows/wxPython 2.3.3 breaks async process management under Linux > > (I cannot work around it). > > > > The best advice I have for now is to revert to wxPython 2.3.2. > > [...] > > > Yes, this is also a new issue introduced by 2.3.3. > > Robin has helped me track it down, and I will try to find a workaround. > > [...] > > So let see if I can summarize; I _know_ is _NOT_ your fault but ... ;-V > > In order to run boa I need wxPython 2.3.2 which is available. > However wxWindows 2.3.2 is nowhere to be seen, only 2.2.9 and 2.3.3 > Ask Google to find you this file (plenty of hits): wxGTK-2.3.2-1.i386.rpm > [...] > > > bcrtl == Boa Constructor Run Time Library > > > It's absolutely optional ;) > > > Currently it adds a few extra controls as examples of how to extend Boa. > > > What problems are you having with the bcrtl? > > "Permission denied: '/usr/lib/python2.2/site-packages/wxPython/lib/bcrtl'" > > Before installing it system-wide I want to understand what it does. Like I said, these are optional example components. (not Boa spesific) The bcrtl also contains COM components which you certainly don't need ;) > I know it can be disabled but I don't understand yet how important it is. The plug-in under: Plug-ins/UserCompanions.plug-in.py defines the Boa wrappers so that these components can be created from the Palette. Hint: To disable a plug-in, rename the file, I rename them to e.g.: Plug-ins/UserCompanions.plug-in.disabled.py Boa itself does not rely on them. > Does it require write access all the time or just once to install its stuff ? If the preference to installBCRTL is on, the filedates are checked at startup and updated if needed, but if you aren't editing them, it will only copy them the first time. > Can it be installed somewhere in user's directory ? Not currently no, the bcrtl components generate source like this: from wxPython.lib.bcrtl.user.ExampleST import * > > Boa can go anywhere as it is an application, not a library. > > > > I decided before the last release that wxPython/tools/boa is a > > nice default location. > > Whatever but there should be an executable somewhere in the path. Put it on your path then :) > > Luckily Python has distutils which can build rpms for you. > > The Boa 0.1.0 release was built with distutils, but unfortunately > > I could not get the bdist_rpm option to work (it should tho!). > > OK, I'll have to dig that one up, may take a while tho. Dig for what? :) This is the error I get when I try to build a Boa rpm: distutils.errors.DistutilsPlatformError: invalid Python installation: unable to open /usr/lib/python2.2/config/Makefile (No such file or directory) Which is completely true, I have binary rpm installation of Python, but surely you don't need to build you own Python before you can build rpm files with distutils! > To end up on a positive note: many, many thanks for your prompt reply, > it was really very helpful :-) Cool! > > Cheers, > -- > Ryurick M. Hristev mailto:ryu...@ca... > Computer Systems Manager > University of Canterbury, Physics & Astronomy Dept., New Zealand Cheers, Riaan. |