I prefer to think of myself as a code-ape - I look down on code-monkeys.
--
http://mail.python.org/mailman/listinfo/python-list
Mark Lawrence wrote:
I'm certain that members of the Guinea Pig Club might have something to
say on that one, see :-
http://en.wikipedia.org/wiki/Guinea_Pig_Club
You mean, something like: "That's not funny"?
--
http://mail.python.org/mailman/listinfo/python-list
Steven D'Aprano wrote:
As the old proverb goes: give a man a fish, and you feed him for a day.
Teach him how to fish, and he has food forever.
I like this version:
Light a man a fire, and you keep him warm for hours. Set a man on fire, and you
keep him warm for the rest of his life.
;-)
-
Paweł Banyś wrote:
...
How can it be achieved?
Very carefully.
--
http://mail.python.org/mailman/listinfo/python-list
Gib Bogle wrote:
I installed the latest PyQt (4.7-1), then PyQwt 5.2.0, which was built
with PyQt4.5.4. This line
import PyQt4.Qwt5 as Qwt
fails to load the DLL. Could this be the result of not using PyQt4 4.5.4?
I guess I can answer my own question. As far as I can determine, PyQwt
I installed the latest PyQt (4.7-1), then PyQwt 5.2.0, which was built with
PyQt4.5.4. This line
import PyQt4.Qwt5 as Qwt
fails to load the DLL. Could this be the result of not using PyQt4 4.5.4?
--
http://mail.python.org/mailman/listinfo/python-list
Dennis Lee Bieber wrote:
On Sat, 27 Feb 2010 13:00:32 +1300, Gib Bogle
declaimed the following in
gmane.comp.python.general:
The PyQt4 problem results from having copies of the Qt DLLs in directories that
are in the PATH, as Doug Bell discovered. In my case I have two programs that
use Qt
occur with Python 2.5 and the previous PyQt I was
using (4.5, I think), it seems that something has changed either with Python 2.6
or with PyQt 4.7.
It would be very nice to learn how to fix this without renaming directories,
since I use Matlab frequently.
Gib
--
http://mail.python.org/mailman
occur with Python 2.5 and the previous PyQt I was
using (4.5, I think), it seems that something has changed either with Python 2.6
or with PyQt 4.7.
It would be very nice to learn how to fix this without renaming directories,
since I use Matlab frequently.
Gib
--
http://mail.python.org/mailman
\site-packages\PyQt4\bin
to the path, but this has no effect. So far the only way I've found to make the
PyQt4 DLLs visible to Python is by copying them from PyQt4\bin into PyQt4.
I've tried adding stuff to the Windows PATH, but that has no effect.
Gib
Chris Rebert wrote:
On Fri, Fe
Chris Rebert wrote:
On Fri, Feb 26, 2010 at 12:45 PM, Gib Bogle
wrote:
How can I interrogate Python to find out where it is looking to find the
PyQt4 DLLs in a Windows installation?
import sys
print(sys.path)
Note this thread:
http://www.mail-archive.com/p...@riverbankcomputing.com
How can I interrogate Python to find out where it is looking to find the PyQt4
DLLs in a Windows installation? Secondarily, how is this search path set?
--
http://mail.python.org/mailman/listinfo/python-list
I've just installed Python 2.6.4 and PyQt 4.7 on my Windows machine, on which I
was using Python 2.5 and PyQt 4.5. Now 'from PyQt4 import QtGui'
fails to find the DLL. Some googling shows that others have encountered the
same problem, and a workaround is to copy QtGui4.dll (for example) from
D
MRAB wrote:
You could try Dependency Walker: http://dependencywalker.com/
I have (belatedly) read the py2exe tutorial:
http://www.py2exe.org/index.cgi/Tutorial#Step522
and learned about the msvcr90.dll issue. I haven't finished sorting this out
yet, but I did find that running vcredist_x86.
Sean DiZazzo wrote:
On Feb 24, 9:22 pm, Gib Bogle wrote:
The program doesn't fail with the write error on the other XP machine, it
actually fails to execute at all, complaining about the configuration
information. Therefore I'm seeing different behaviour on three XP machines:
The program doesn't fail with the write error on the other XP machine, it
actually fails to execute at all, complaining about the configuration
information. Therefore I'm seeing different behaviour on three XP machines:
Box 1 (SP2): runs OK
Box 2 (SP3): fails to start
Box 3 (SP3): starts up, a
MRAB wrote:
Gib Bogle wrote:
Hi,
My student has been developing a GUI (using PyQt and PyQwt) that runs
a model written in Fortran and built as a DLL. She has to present on
this work tomorrow. She makes an executable version of the Python
code with py2exe, and the executable runs fine on
ocket (communication from the DLL to Python is
via sockets). The only clue is that the machines that her program runs on have
Python installed, while the one that fails doesn't. Therefore I suspect that
py2exe has omitted a necessary Python DLL. How can I track down what might be
missing?
KIRAN wrote:
"I see lot of code with several files."
I had to laugh at this.
--
http://mail.python.org/mailman/listinfo/python-list
David Boddie wrote:
On Tuesday 23 February 2010 05:32, Gib Bogle wrote:
David Boddie wrote:
I have previously referred people with py2exe/PyQt issues to this page on
the PyQt Wiki:
http://www.py2exe.org/index.cgi/Py2exeAndPyQt
If you can somehow convince py2exe to include the QtSvg
W. eWatson wrote:
On 2/23/2010 11:14 AM, Gib Bogle wrote:
W. eWatson wrote:
On 2/23/2010 8:26 AM, Rick Dooling wrote:
No telling what Windows will do. :)
I am a mere hobbyist programmer, but I think real programmers will
tell you that it is a bad habit to use relative paths. Use absolute
W. eWatson wrote:
On 2/23/2010 8:26 AM, Rick Dooling wrote:
No telling what Windows will do. :)
I am a mere hobbyist programmer, but I think real programmers will
tell you that it is a bad habit to use relative paths. Use absolute
paths instead and remove all doubt.
http://docs.python.org/libr
Rick Dooling wrote:
No telling what Windows will do. :)
It isn't useful to respond to a serious question with OS bigotry.
--
http://mail.python.org/mailman/listinfo/python-list
chris grebeldinger wrote:
Have you tried opening file explorer in administrative mode before
performing the copy? I think if there isn't sufficient permissions,
it does something weird like that.
No
--
http://mail.python.org/mailman/listinfo/python-list
David Boddie wrote:
I have previously referred people with py2exe/PyQt issues to this page on
the PyQt Wiki:
http://www.py2exe.org/index.cgi/Py2exeAndPyQt
If you can somehow convince py2exe to include the QtSvg module (and
presumably the libQtSvg library as well) then perhaps that will solve
John Bokma wrote:
Gib Bogle writes:
MRAB wrote:
W. eWatson wrote:
Last night I copied a program from folder A to folder B. It
inspects the contents of files in a folder. When I ran it in B, it
gave the results for A! Out of frustration I changed the name in A,
and fired up the program in B
MRAB wrote:
W. eWatson wrote:
Last night I copied a program from folder A to folder B. It inspects
the contents of files in a folder. When I ran it in B, it gave the
results for A! Out of frustration I changed the name in A, and fired
up the program in B. Win7 went into search mode for the fil
irmed that this works for sip. I'm not
at all clear what "--includes" arguments might be needed for QtSvg (and
libQtSvg). I'll pass this info on to Helvin.
Gib
--
http://mail.python.org/mailman/listinfo/python-list
ings. When I tried running
it, it produces a log file, in which I find the error messages.
<\quote>
Perhaps someone can recognize these symptoms.
Thanks,
Gib
--
http://mail.python.org/mailman/listinfo/python-list
Steven D'Aprano wrote:
On Wed, 17 Feb 2010 02:00:59 -0500, geremy condra quoted Banibrata Dutta
:
BTW for people who are non-believers in something being worth stealing
needing protection, need to read about the Skype client.
Pardon me for breaking threading, but the original post has not com
Steven D'Aprano wrote:
def swap(a, b):
a, b = b, a
x = 1
y = 2
swap(x, y)
assert (x == 2) and (y==1)
Can't the same point be more simply made with this example:
def setval(a):
a = 12345
x = 1
setval(x)
print x
?
--
http://mail.python.org/mailman/listinfo/python-list
ooth last month:
http://comments.gmane.org/gmane.comp.python.general/650913 )
Thanks Gabriel. I didn't know about the drag&drop capability (learn something
every day, forget two things). BTW input() works for me in 2.5.
Cheers
Gib
--
http://mail.python.org/mailman/listinfo/python-list
Gabriel Genellina wrote:
But the associated program might change the current directory - that's
not the case with the default associations created by the Python
installer, but one should verify this.
To the OP: please create this small test script
import os
print("curdir=", os.getcwd())
print(
Paul Rubin wrote:
Ryan Kelly writes:
I know, I know, do not feed the trolls. But this is just so *wrong*
that I can't help myself.
See: http://xkcd.com/386/
:-)
--
http://mail.python.org/mailman/listinfo/python-list
Ethan Furman wrote:
Steven D'Aprano wrote:
4. Python 3 will make you irresistible to women.
FALSE
What?!? Drat!!! Guess I'll have to learn Lisp... ;)
~Ethan~
Learn to say this fast, you'll impress the hell out of them:
Chaps with chapped lips lisp.
--
http://mail.python.org/mailman
Luis M. González wrote:
Please don't post more noise and ad hominem attacks to the group, Steve.
"Ad hominem"?
Please, operor non utor lingua non notus per vulgaris populus.
Gratias ago vos...
"ad hominem" is "lingua notus per vulgaris populus", the vulgar pop of these
parts, anyway.
--
ht
Steven D'Aprano wrote:
On Wed, 27 Jan 2010 02:28:00 +0100, Alf P. Steinbach wrote:
* Print is now a function. Great, much improvement.
Actually not, IMHO. All it does is is to provide incompatibility. They
forgot Ronald Reagan's old maxim: if it don't need fixin', don't fix it.
The aphor
Gabriel Genellina wrote:
En Wed, 20 Jan 2010 21:22:19 -0300, Gib Bogle
escribió:
Gabriel Genellina wrote:
c:\temp>python -m pydoc sys
Help on built-in module sys:
[...same info...]
When I do this I get:
No module named tempfile
You found a bug. Looks like it depends on the environm
Gabriel Genellina wrote:
You found a bug. Looks like it depends on the environment, or what
packages are installed, or something like that, because it worked on my
other PC but not here.
Please report it at http://bugs.python.org so it doesn't get forgotten.
Done
--
http://mail.python.org/m
Gabriel Genellina wrote:
c:\temp>python -m pydoc sys
Help on built-in module sys:
[...same info...]
When I do this I get:
No module named tempfile
--
http://mail.python.org/mailman/listinfo/python-list
Looks like homework.
--
http://mail.python.org/mailman/listinfo/python-list
Kit wrote:
Thank you so much guys.
Just out of curiosity: can I do something like this to "square all
even numbers in the range 1-10"?
print [x^2 for x in range (1,11) if x % 2 == 0]
Why not try it?
--
http://mail.python.org/mailman/listinfo/python-list
Should there be a problem installing PyQwt5.2.0 with PyQt4.4.4 and Python2.6 on
Windows? My student is saying she can't get the Windows installer to work, and
she points out that the download site says "Binary installation of PyQwt-5.2.0
on Windows for Python-2.6.x, PyQt-4.5.4"
--
http://mail.
Gib Bogle wrote:
It has occurred to me that the error may have nothing to do with
ctypes. The DLL was built on one machine and copied to the other (which
doesn't have the compiler installed). Although both machines are
running Windows XP, there might be some subtle differences.
I see
It has occurred to me that the error may have nothing to do with ctypes. The
DLL was built on one machine and copied to the other (which doesn't have the
compiler installed). Although both machines are running Windows XP, there might
be some subtle differences.
I see that the build machine h
I have a simple demo program (on Windows XP) that uses the ctypes module to load
a DLL. This program works as expected with Python 2.5.4, but fails with Python
2.6.4 (on a different machine, each machine has only one Python version
installed), with these messages:
File "demo.py", line 37, in
Terry Reedy wrote:
On 1/13/2010 1:09 AM, Gib Bogle wrote:
I am learning Python, and using PyQt to develop a GUI that will be used
to run a Fortran program on Windows, Linux and Mac OS X (I think Python
is great, btw). Without thinking about it I downloaded and started
working with a fairly
Sridhar Ratnakumar wrote:
On 1/12/2010 10:09 PM, Gib Bogle wrote:
I am learning Python, and using PyQt to develop a GUI that will be used
to run a Fortran program on Windows, Linux and Mac OS X (I think Python
is great, btw). Without thinking about it I downloaded and started
working with a
I am learning Python, and using PyQt to develop a GUI that will be used to run a
Fortran program on Windows, Linux and Mac OS X (I think Python is great, btw).
Without thinking about it I downloaded and started working with a fairly recent
Python version, 2.5.4. I've now become aware of the exi
MRAB wrote:
Gib Bogle wrote:
The code below runs with Python 2.5.4, but gives the following error
messages with Python 2.6.1. What needs to be done to make it work?
Thanks.
C:\Summer09\Tutorials>python url_queue.pyw
Traceback (most recent call last):
File "url_queue.pyw"
The code below runs with Python 2.5.4, but gives the following error messages
with Python 2.6.1. What needs to be done to make it work? Thanks.
C:\Summer09\Tutorials>python url_queue.pyw
Traceback (most recent call last):
File "url_queue.pyw", line 3, in
import threading
File "C:\Summer09\Tut
r0g wrote:
Gib Bogle wrote:
No doubt a dumb question from a noob:
The following program (a cut down version of some test code) uses no
CPU, and does not terminate:
import sys
from PyQt4.QtCore import *
if __name__=="__main__":
app = QCoreApplication(sys.argv)
sys.exit
No doubt a dumb question from a noob:
The following program (a cut down version of some test code) uses no CPU, and
does not terminate:
import sys
from PyQt4.QtCore import *
if __name__=="__main__":
app = QCoreApplication(sys.argv)
sys.exit(app.exec_())
What is the program doing? Wh
Lie Ryan wrote:
On 12/22/2009 10:47 AM, Gib Bogle wrote:
This is indented over one indentation level too much. You want it to
be at the same level as the for above. Here, its at the same level
with "t" -- meaning this entire loop gets repeated five times.
I sorta really recommend a
David Cournapeau wrote:
On Sun, Dec 20, 2009 at 6:47 PM, Lie Ryan wrote:
On 12/20/2009 2:53 PM, sturlamolden wrote:
On 20 Des, 01:46, Lie Ryan wrote:
Not necessarily, you only need to be certain that the two streams don't
overlap in any reasonable amount of time. For that purpose, you can u
Stephen Hansen wrote:
On Mon, Dec 21, 2009 at 3:12 PM, Gib Bogle
wrote:
#spawn a pool of threads, and pass them queue instance
for i in range(5):
t = ThreadUrl(queue,i)
t.setDaemon(True)
t.start()
#populate queue with data
for host in hosts:
queue.put(host)
This is
Stephen Hansen wrote:
On Mon, Dec 21, 2009 at 3:12 PM, Gib Bogle
wrote:
#spawn a pool of threads, and pass them queue instance
for i in range(5):
t = ThreadUrl(queue,i)
t.setDaemon(True)
t.start()
#populate queue with data
for host in hosts:
queue.put(host)
This is
W. eWatson wrote:
Mensanator wrote:
On Dec 14, 8:14�pm, "W. eWatson" wrote:
I think Python is capable of executing a compiled C or FORTRAN program,
Sure, if it was compiled to an .exe file.
and maybe even getting some parameters passed back.
Sure, if the program prints to stdout.
Does
sturlamolden wrote:
On 19 Des, 22:58, sturlamolden wrote:
If you pick two random states (using any PRNG), you need error-
checking that states are always unique, i.e. that each PRNG never
reaches the starting state of the other(s).
Another note on this:
Ideally, we would e.g. know how to fi
sturlamolden wrote:
On 19 Des, 16:20, Carl Johan Rehn wrote:
How about mulit-core or (perhaps more exciting) GPU and CUDA? I must
admit that I am extremely interested in trying the CUDA-alternative.
Obviously, cuBLAS is not an option here, so what is the safest route
for a novice parallel-pro
sturlamolden wrote:
On 19 Des, 14:06, Carl Johan Rehn wrote:
Matlab and numpy have (by chance?) the exact names for the same
functionality,
Common ancenstry, NumPy and Matlab borrowed the name from IDL.
LabView, Octave and SciLab uses the name randn as well.
So the basioc question is, h
ems unlikely).
Naively, I would have expected the queue to enforce processing of its members
once only. Is there a simple change that will make this code execute as
required? Or is this author out to lunch?
Cheers
Gib
--
http://mail.python.org/mailman/listinfo/python-list
On Sep 16, 3:45 am, Robert Kern wrote:
> On 2009-09-14 23:07 PM, Gib wrote:
>
> > I am trying to follow the instructions for installing MayaVi given on
> > the Enthought site:
> >http://code.enthought.com/projects/mayavi/docs/development/html/mayav...
> >
On Sep 16, 12:28 am, Francesco Bochicchio wrote:
> On Sep 15, 6:29 am, Gib wrote:
>
> > As part of the MayaVi install, I need to install VTK.
>
> ...
>
> > Since VTK appears to be installed, I'm guessing that either the path
> > setting is wrong, or pyth
As part of the MayaVi install, I need to install VTK. Follwoing the
Enthought instructions, I went here:
http://cpbotha.net/2009/08/13/python-2-6-enabled-vtk-5-4-windows-binaries/
and installed vtk-5.4. I modified the PATH and also created an
environment variable PYTHONPATH as directed, setting i
I am trying to follow the instructions for installing MayaVi given on
the Enthought site:
http://code.enthought.com/projects/mayavi/docs/development/html/mayavi/installation.html
I'm following the step-by-step instructions to install with eggs under
Windows. When I get to this point:
easy_install
Ah, so the firefighters were in on the conspiracy!
--
http://mail.python.org/mailman/listinfo/python-list
[EMAIL PROTECTED] wrote:
> Cal Tech is the ELITE of ELITE in physics.
>
> If Feynman were alive, he would point his finger straight at the 911
> criminal operators, the yank bastards themselves ...
>
> http://www.911blogger.com/node/8101
>
> No self-respecting scientist should keep his mouth
68 matches
Mail list logo