Installing java2python (Newbie)

2007-02-27 Thread loveline17
Hi guys, I'm having a hard time installing java2python ( http://code.google.com/p/java2python/ ) on my Windows XP 32-bit machine. I double click setup.py but nothing happens. Is there any specific Python sub-folder where I should put it and install using command line? Even when I use command-line,

Re: Walk thru each subdirectory from a top directory

2007-02-27 Thread Scott David Daniels
Adam wrote: > On Feb 26, 9:28 pm, [EMAIL PROTECTED] wrote: >> i am trying to use python to walk thru each subdirectory from a top >> directory. Here is my script: > > This bit below is from one of my first programs as I'm currently > learning. It is designed to go form the root down and retu

Re: Installing java2python (Newbie)

2007-02-27 Thread Jeremy Dillworth
I haven't used that particular package, but the norm for setup.py is this command line: python setup.py install Hope this helps, Jeremy -- http://mail.python.org/mailman/listinfo/python-list

[ANN] mlabrap-1.0b: a high level python to matlab bridge

2007-02-27 Thread Alexander Schmolck
URL --- Description --- Mlabwrap-1.0 is a high-level python to matlab(tm) bridge that makes calling matlab functions from python almost as convenient as using a normal python library. It is available under a very liberal license (BSD/MIT) and should work

Re: Installing java2python (Newbie)

2007-02-27 Thread [EMAIL PROTECTED]
Hi Jeremy, that's the problem I'm having. Where should I type that " python setup.py install" ? Once again I'm using Windows system and not Unix. Should I move the file to a specific folder under Python 2.5 and then type " python setup.py install" in IDLE or Command Line window? I get the error "S

Re: What is bad with "Relative imports"

2007-02-27 Thread Aahz
In article <[EMAIL PROTECTED]>, Alexander Eisenhuth <[EMAIL PROTECTED]> wrote: > >PyLint says that "Relative imports" ... are worth to be warned . > >And I ask myself why? http://www.python.org/dev/peps/pep-0328 -- Aahz ([EMAIL PROTECTED]) <*> http://www.pythoncraft.com/ "I di

Re: PyCon blogs?

2007-02-27 Thread johnf
[EMAIL PROTECTED] wrote: > Was anybody blogging about PyCon (talks and/or sprints)? Got any > pointers? > > Thanks, > > Skip At least one session was posted on YouTube http://dabodev.com/pycon2007 Johnf -- http://mail.python.org/mailman/listinfo/python-list

Re: Installing java2python (Newbie)

2007-02-27 Thread Jeremy Dillworth
You'll need to run the command in the command-line window. If you're unfamiliar, here's how to start it up: Click "Start" then "Run..." then type "Cmd" in the open field. Click OK. Once you're at the command line there will be a little variation depending on where things are located on your PC.

f2py and Fortran90 gfortran_filename error

2007-02-27 Thread Tyler
Hello All: Since my last post I have attempted to use the f2py program which comes with numpy. I am able to create a .so file fine; however, when I import it into Python, I receive the following message: >>> import matsolve2 Traceback (most recent call last): File "", line 1, in ? ImportError

Changing directories in oswalk [was Re: Walk thru each subdirectory from a top directory]

2007-02-27 Thread Steven D'Aprano
On Tue, 27 Feb 2007 20:31:43 -0800, Scott David Daniels wrote: >> def findallfiles(self, base): >> self.results = [] >> for root,dirs,files in os.walk(base): >> os.chdir(root) >^^^ Mistake here, don't change directories during os.walk ^^^ I came across this

Re: Installing java2python (Newbie)

2007-02-27 Thread [EMAIL PROTECTED]
> Hi Jeremy, that's the problem I'm having. Where should I type that " > python setup.py install" ? Once again I'm using Windows system and not > Unix. Should I move the file to a specific folder under Python 2.5 and > then type " python setup.py install" in IDLE or Command Line window? > I get th

Re: Running Python scripts from BASH

2007-02-27 Thread Ross Ridge
Ishpeck <[EMAIL PROTECTED]> wrote: >': [Errno 22] Invalid argumentopen file 'foo.py The problem is that Python is using the standard Windows CRLF line endings, while Cygwin bash expects Unix LF-only line endings. Your script ends up trying run the script "foo.y\r" instead of "foo.y", and since CR

Re: f2py and Fortran90 gfortran_filename error

2007-02-27 Thread Robert Kern
Tyler wrote: > Hello All: > > Since my last post I have attempted to use the f2py program which > comes with numpy. It's better to ask these questions on numpy-discussion, instead. There are more f2py users per capita there. http://www.scipy.org/Mailing_Lists > I am able to create a .so file

Re: Installing java2python (Newbie)

2007-02-27 Thread [EMAIL PROTECTED]
Hi Troy, once again thanks for the quickie. I installed everything properly now (error free!! yay) and the j2py script is located under : C:\Documents and Settings\Ujjal Pathak\Desktop\java2python-0.2\build \scripts-2.5 Meaning under scripts-2.5 folder, there are two files j2py and jast_print but

Re: Installing java2python (Newbie)

2007-02-27 Thread [EMAIL PROTECTED]
This is my friend's computer, BTW! -- http://mail.python.org/mailman/listinfo/python-list

Re: Yet another unique() function...

2007-02-27 Thread Paul McGuire
On Feb 27, 8:55 pm, Paul Rubin wrote: > Paul Rubin writes: > > def unique(seq, keepstr=True): > > t = type(seq) > > if t==str: > > t = (list, ''.join)[bool(keepstr)] > > seen = [] > > return t(c for c in seq if (c not in

Re: Walk thru each subdirectory from a top directory

2007-02-27 Thread Steven D'Aprano
On Tue, 27 Feb 2007 06:22:51 +, Dennis Lee Bieber wrote: [snip 350-odd file names] > Just a sample of the start of a very long listing... Thanks for sharing. What's with the nude ferret? -- Steven D'Aprano -- http://mail.python.org/mailman/listinfo/python-list

Re: Installing java2python (Newbie)

2007-02-27 Thread Troy Melhase
> properly now (error free!! yay) and the j2py script is located under : > C:\Documents and Settings\Ujjal Pathak\Desktop\java2python-0.2\build > \scripts-2.5 that doesn't look right -- it looks like you found what the setup script left behind. what you should look for is j2py in either (a) your

Re: Python, Embedded linux and web development

2007-02-27 Thread Tzury
On Feb 27, 2:27 pm, "Paul Boddie" <[EMAIL PROTECTED]> wrote: > On 27 Feb, 13:12, "Tzury" <[EMAIL PROTECTED]> wrote: > > > > > c) small web application that will be used as front end to configure > > the system (flat files and sqlite3 db are the back-end). > > > Our platform is base on the Intel PXA

Re: Yet another unique() function...

2007-02-27 Thread Paul Rubin
"Paul McGuire" <[EMAIL PROTECTED]> writes: > Any reason not to use a set for the 'seen' variable? Yes, the sequence can contain non-hashable elements. See the test vectors for examples. -- http://mail.python.org/mailman/listinfo/python-list

Re: Yet another unique() function...

2007-02-27 Thread bearophileHUGS
MonkeeSage: > Here's yet another take on a unique() function for sequences. It's > more terse than others I've seen and works for all the common use > cases (please report any errors on the recipe page): It's more terse, but my version is built to be faster in the more common cases of all hashable

Re: Changing directories in oswalk [was Re: Walk thru each subdirectory from a top directory]

2007-02-27 Thread Peter Otten
Steven D'Aprano wrote: > On Tue, 27 Feb 2007 20:31:43 -0800, Scott David Daniels wrote: > >>> def findallfiles(self, base): >>> self.results = [] >>> for root,dirs,files in os.walk(base): >>> os.chdir(root) >>^^^ Mistake here, don't change directories durin

Re: [OT] python notation in new NVIDIA architecture

2007-02-27 Thread Tim Roberts
"Daniel Nogradi" <[EMAIL PROTECTED]> wrote: >Something funny: > >The new programming model of NVIDIA GPU's is called CUDA and I've >noticed that they use the same __special__ notation for certain things >as does python. For instance their modified C language has identifiers >such as __device__, __

Re: database without installation again

2007-02-27 Thread [EMAIL PROTECTED]
On 28 fév, 00:06, "andrew_s" <[EMAIL PROTECTED]> wrote: > Hi! > > I'm looking for any database which I could use without need of instalation. > I've read some threads here but I couldn't find any complete answer. > On my ISP's server I can use Python throu cgi only. There is Python 2.4.3 > and it h

Re: QPaintDevice: Must construct a QApplication before a QPaintDevice

2007-02-27 Thread Phil Thompson
On Tuesday 27 February 2007 11:09 pm, shredwheat wrote: > When your programs stops with the error, it should also be printing a > stack trace. This is a list of all the functions that have been called > when Python had the problem. > > You shouldn't have to do anything extra to get the stack trace.

<    1   2   3