How to Test GUI Apps for many Python X GUI toolkits

2012-06-03 Thread Mark Summerfield
Hi,

There are many options for writing desktop GUI applications with
Python and I'd like to explore some of them. However, to do this I
need to be able to test various Python 3.x X GUI toolkit y.z
combinations.

With PyQt4 this is easy. (Example given at the end.)

I'd like to be able to do the same with other Python GUI toolkits.

- For PyGObject (PyGtk's successor) it seems that you have to do a
local build of Gtk+ and the PyGObject. I've tried and failed on this.
(And even if I'd succeeded, I don't see how to do this for local
Pythons.)

- I haven't tried this for wxPython (& anyway they don't seem to have
a Python 3 version).

- I've also failed to do this for Tcl/Tk (as per my posting "Use a
locally built Tk for Python?". It is easy to build local versions of
Tcl/Tk using --prefix; but I don't see how to make the Python build
process use a locally built Tcl/Tk.

- I haven't tried this for PySide.

Has anyone else succeeded for any of these? Surely they must have;
otherwise how could they test their PyGObject/wxPython/Tkinter
applications?

I'd appreciate suggestions/links.

Thanks!

Example: build two Python 3.2s one with Qt 4.7 and one with Qt 4.8:

- Build local pythons, e.g.,
  ./configure --prefix=/home/me/opt/py32qt47
  ./configure --prefix=/home/me/opt/py32qt48
- Build local Qts, e.g.,
  ./configure --prefix=/home/me/opt/qt47
  ./configure --prefix=/home/me/opt/qt48
- Build PyQts specifying which Python & Qt to use, e.g.,
  /home/me/opt/py32qt47/bin/python3 configure.py --qmake=/home/me/opt/
qt47/bin/qmake
  /home/me/opt/py32qt48/bin/python3 configure.py --qmake=/home/me/opt/
qt48/bin/qmake

This makes it easy to test PyQt GUI applications. And, of course, if a
user reports a problem with some other combination, it is easy (if
time consuming) to create a matching combination to test.
-- 
http://mail.python.org/mailman/listinfo/python-list


Re: Tkinter deadlock on graceful exit

2012-06-03 Thread Matteo Landi
On Jun/02, Dennis Lee Bieber wrote:
> On Sat, 2 Jun 2012 14:57:17 +0200, Matteo Landi 
> declaimed the following in gmane.comp.python.general:
> 
> 
> > Lesson learned:  never invoke Tkinter functions / methods outside the 
> > mainloop
> > thread.. NEVER!
> >
> 
>   Typically, that advice would apply to ANY GUI library...
> 
>   The exception being operations that /add/ an event to the pending
> unprocessed GUI events, thereby signaling the GUI to perform the desired
> function.

You right, definitely!

I made a bit of GTK programming before, and if I remember correctly, there is
a *thread-safe* function, `gobject.idle_add`, that let you queue functions to be
executed by the main thread.  For that reason, I thought it was safe to invoke
`tk.after_idle` outside the mainloop's thread, but oviously I was wrong!

> 
>   If you want a head-ache... Try coding an application in which the
> old GKS is used for the main data display (I needed display-list
> capability with identified "segments" so I could "blank"/"show"
> different aspects of the data -- without rerunning some 15-minute
> process read months of data points) on top of a nearly raw X-Window
> systems (xt and DECWindows). AND the graphics commands for the data to
> be plotted were coming in as ASCII text over a VMS mailbox. Oh, and no
> threading -- the graphics commands had to be processed a few at a time
> via an xt idle event handler (if there were no GUI events, call my
> handler to read a command from the mailbox, dispatch to the GKS
> emulation of the command [the commands mapped to Ramtek 9300 graphics
> engine -- the original implementation], and return to check for next
> event). This was ca. 1990!
> 

Nice, good job!

> 
> 
> -- 
>   Wulfraed Dennis Lee Bieber AF6VN
> [email protected]://wlfraed.home.netcom.com/
> 
> -- 
> http://mail.python.org/mailman/listinfo/python-list


Cheers,
Matteo

-- 
http://www.matteolandi.net
-- 
http://mail.python.org/mailman/listinfo/python-list


Re: usenet reading

2012-06-03 Thread Colin Higwell
On Fri, 25 May 2012 15:38:55 -0700, Jon Clements wrote:

> 
> Is there a server out there where I can get my news groups? I use to be
> with an ISP that hosted usenet servers, but alas, it's no longer
> around...
> 
I use Albasani.net (free and very reliable), as well as gmane.org.

Google Groups is an abomination IMHO, and I find it much easier to read 
mailing lists via a newsreader. I highly recommend Pan, by the way.

-- 
http://mail.python.org/mailman/listinfo/python-list


Re: usenet reading

2012-06-03 Thread Matej Cepl

On 03/06/12 13:59, Colin Higwell wrote:

Google Groups is an abomination IMHO, and I find it much easier to read
mailing lists via a newsreader. I highly recommend Pan, by the way.


I am still surprised how good experience I have with reading news with 
Thunderbird. Yes, Pan is better, but it used to have some rough edges 
(e.g., it's offline qualities were a bit elusive), but of course 
generally it is quite more powerful as a NNTP reader.


Matěj
--
http://mail.python.org/mailman/listinfo/python-list


python View Controller for decoupled website architectures?

2012-06-03 Thread Alec Taylor
I'm developing a database (Model Controller) in Python (web2py) that exposes 
APIs in REST (HTTP)[CSV, XML, JSON] and RPC (XML, JSON).

The client I'm developing in JavaScript to interface with my remote database 
via its API.

Unfortunately JavaScript is rather troublesome when it comes to managing 
user-sessions, routing and RBACing templates (e.g.: `if "admin" in user.role: 
Caution: you are logged in as admin`).

Is there a Pythonic way of managing the client-side? - E.g.: Skulpt, Pyjamas or 
some way of getting web2py views to work with remote calls - If so, can you 
show me some boilerplate for session control, routing and RBAC templates?

Thanks,

Alec Taylor
-- 
http://mail.python.org/mailman/listinfo/python-list


Re: CPython 2.7: Weakset data changing size during internal iteration

2012-06-03 Thread Steven D'Aprano
On Fri, 01 Jun 2012 20:24:30 -0700, Temia Eszteri wrote:

> On 02 Jun 2012 03:05:01 GMT, Steven D'Aprano
>  wrote:
> 
>>I doubt that very much. If you are using threads, it is more likely your
>>code has a race condition where you are modifying a weak set at the same
>>time another thread is trying to iterate over it (in this case, to
>>determine it's length), and because it's a race condition, it only
>>happens when conditions are *just right*. Since race conditions hitting
>>are usually rare, you only notice it when there's a lot of data.
> 
> Except that the few threads I use don't modify that data at all 
[...]

And should I have known this from your initial post?


[...]
> Don't be so fast to dismiss things when the situation would not have
> made a race condition possible to begin with.

If you have been part of this newsgroup and mailing list as long as I 
have, you should realise that there is no shortage of people who come 
here and make grand claims that they have discovered a bug in Python 
(either the language, or the standard library). Nine times out of ten, 
they have not, and the bug is in their code, or their understanding.

Perhaps you are one of the few who has actually found a bug in the 
standard library rather than one in your own code. But your initial post 
showed no sign that you had done any investigation beyond reading the 
traceback and immediately jumping to the conclusion that it was a bug in 
the standard library.

Frankly, I still doubt that your analysis of the problem is correct:

[quote]
Problem is that for certain high-frequency operations, it 
seems there's too much data going in and out for it to handle
[end quote]


I still can't see any way for this bug to occur due to "too much data", 
as you suggest, or in the absence of one thread modifying the set while 
another is iterating over it. But I could be wrong.

In any case, it appears that this bug has already been reported and fixed:

http://bugs.python.org/issue14159


Consider updating to the latest bug fix of 2.7.



-- 
Steven
-- 
http://mail.python.org/mailman/listinfo/python-list


Re: Use a locally built Tk for Python?

2012-06-03 Thread Steven D'Aprano
On Fri, 01 Jun 2012 09:34:41 -0700, Mark Summerfield wrote:

> Hi,
> 
> I have multiple Pythons locally installed so that I can test against
> different versions. (On a 64-bit Debian stable system.)
[...]
> But when I run ~/opt/py32tkmod/bin/python3 tkinter-test.pyw the system
> tk is being used not my customized one.
> 
> Can anyone advise?

I'm not sure if this will help, but it may. I had a similar problem where 
my Python couldn't see my installed tk/tcl 8.5 in /usr/local/lib. The 
symptom I got was that "make install" was not building _tkinter and 
reported this warning:

*** WARNING: renaming "_tkinter" since importing it failed:
libtk8.5.so: cannot open shared object file: No such file or directory



I fixed this by using these commands as root:


echo /usr/local/lib > /etc/ld.so.conf.d/python27.conf
ldconfig

then running "make clean", "make", "sudo make altinstall" again.

(I used altinstall instead of install so as to avoid changing the system 
Python.)

This was on a 32-bit Centos system, but I expect it should work just as 
well on a 64-bit Debian system.



-- 
Steven
-- 
http://mail.python.org/mailman/listinfo/python-list


Re: usenet reading

2012-06-03 Thread Neal Becker
Jon Clements wrote:

> Hi All,
> 
> Normally use Google Groups but it's becoming absolutely frustrating - not only
> has the interface changed to be frankly impractical, the posts are somewhat
> random of what appears, is posted and whatnot. (Ironically posted from GG)
> 
> Is there a server out there where I can get my news groups? I use to be with
> an ISP that hosted usenet servers, but alas, it's no longer around...
> 
> Only really interested in Python groups and C++.
> 
> Any advice appreciated,
> 
> Jon.

Somewhat unrelated - any good news reader for Android?

-- 
http://mail.python.org/mailman/listinfo/python-list


Re: Use a locally built Tk for Python?

2012-06-03 Thread David
Python uses the Tkinter wrapper around TCL/TK and it remains the same no matter 
how may versions of TCL/TK are installed.  You will have to build Tkinter 
against whatever version you like and make sure that it gets installed in the 
/usr/lib64/python directory that you want.
-- 
http://mail.python.org/mailman/listinfo/python-list


Re: CPython 2.7: Weakset data changing size during internal iteration

2012-06-03 Thread Temia Eszteri
On 03 Jun 2012 16:20:11 GMT, Steven D'Aprano
 wrote:

>And should I have known this from your initial post?

I did discuss the matter with Terry Reedy, actually, but I guess since
the newsgroup-to-mailing list mirror is one-way, there's no actual way
you could've known. :/ Sigh, another problem out of my hands to deal
with. I do apologize for the snippy attitude, if it means anything.

>Frankly, I still doubt that your analysis of the problem is correct:
>
>[quote]
>Problem is that for certain high-frequency operations, it 
>seems there's too much data going in and out for it to handle
>[end quote]
>
>
>I still can't see any way for this bug to occur due to "too much data", 
>as you suggest, or in the absence of one thread modifying the set while 
>another is iterating over it. But I could be wrong.

Well, in this case, I'd consider it more reasonable to look at it from
a different angle, but it was rather poorly-phrased at the beginning.
When you've got dozens of objects being garbage-collected from the set
every 16 miliseconds or so though, that's certainly high-frequency
enough to trigger the bug, is it not?

>In any case, it appears that this bug has already been reported and fixed:
>
>http://bugs.python.org/issue14159
>
>Consider updating to the latest bug fix of 2.7.

Alas, I'm already on the latest official release, which doesn't have
the patch yet. I'll just apply it manually.

Though now I'm now curious about how regular sets get their truth
value, since weaksets internally performing a length check every time
a texture was being referenced or de-referenced, for simple lack of a
faster explicit __bool__ value, is going to be rather costly when
things'll be flying around and out of the screen area in large
quantities. Hoo boy.

~Temia
-- 
The amazing programming device: fuelled entirely by coffee, it codes while
awake and tests while asleep!
-- 
http://mail.python.org/mailman/listinfo/python-list


Re: usenet reading

2012-06-03 Thread Peter Pearson
On Sat, 26 May 2012 16:05:23 +0100, duncan smith wrote:
> On 25/05/12 23:38, Jon Clements wrote:
[snip]
>> Is there a server out there where I can get my news groups?
>
> If you don't mind paying a small fee there are several companies 
> providing usenet access such as http://www.newsdemon.com. (I didn't have 
> much joy trying to track down a reliable free service, so now I pay a 
> few pounds a year.)

Also in the pay-a-little category, news.individual.net costs 10
euros per year and filters out spam pretty effectively.  I've
been happy using it with the slrn news reader for about 4 years.

-- 
To email me, substitute nowhere->spamcop, invalid->net.
-- 
http://mail.python.org/mailman/listinfo/python-list


./configure

2012-06-03 Thread Janet Heath
Hi,

I am trying to run the ./configure but I keep getting this:


configure:2756: checking for --enable-universalsdk
configure:2797: result: no
configure:2806: checking for --with-universal-archs
configure:2823: result: 32-bit
configure:2980: checking MACHDEP
configure:3129: result: darwin
configure:3135: checking EXTRAPLATDIR
configure:3150: result: $(PLATMACDIRS)
configure:3161: checking machine type as reported by uname -m
configure:3164: result: x86_64
configure:3177: checking for --without-gcc
configure:3221: result: no
configure:3282: checking for gcc
configure:3312: result: no
configure:3375: checking for cc
configure:3422: result: no
configure:3478: checking for cl.exe
configure:3508: result: no
configure:3532: error: in `/usr/bin/Python-2.7.3':
configure:3534: error: no acceptable C compiler found in $PATH
See `config.log' for more details


I can't seem to figure out the 2 errors at the bottom.  Any suggestions?


Janet
-- 
http://mail.python.org/mailman/listinfo/python-list


Re: ./configure

2012-06-03 Thread Janet Heath
On Sunday, June 3, 2012 3:19:16 PM UTC-6, Janet Heath wrote:
> Hi,
> 
> I am trying to run the ./configure but I keep getting this:
> 
> 
> configure:2756: checking for --enable-universalsdk
> configure:2797: result: no
> configure:2806: checking for --with-universal-archs
> configure:2823: result: 32-bit
> configure:2980: checking MACHDEP
> configure:3129: result: darwin
> configure:3135: checking EXTRAPLATDIR
> configure:3150: result: $(PLATMACDIRS)
> configure:3161: checking machine type as reported by uname -m
> configure:3164: result: x86_64
> configure:3177: checking for --without-gcc
> configure:3221: result: no
> configure:3282: checking for gcc
> configure:3312: result: no
> configure:3375: checking for cc
> configure:3422: result: no
> configure:3478: checking for cl.exe
> configure:3508: result: no
> configure:3532: error: in `/usr/bin/Python-2.7.3':
> configure:3534: error: no acceptable C compiler found in $PATH
> See `config.log' for more details
> 
> 
> I can't seem to figure out the 2 errors at the bottom.  Any suggestions?
> 
> 
> Janet

I am trying to install Python-2.7.3.
-- 
http://mail.python.org/mailman/listinfo/python-list


Re: ./configure

2012-06-03 Thread Alain Ketterlin
Janet Heath  writes:

[...]
> configure:3161: checking machine type as reported by uname -m
> configure:3164: result: x86_64
> configure:3177: checking for --without-gcc
> configure:3221: result: no
> configure:3282: checking for gcc
> configure:3312: result: no
> configure:3375: checking for cc
> configure:3422: result: no
> configure:3478: checking for cl.exe
> configure:3508: result: no
> configure:3532: error: in `/usr/bin/Python-2.7.3':
> configure:3534: error: no acceptable C compiler found in $PATH
> See `config.log' for more details
>
> I can't seem to figure out the 2 errors at the bottom.  Any suggestions?

It looks like you have no C compiler (if you have one, configure can't
find it in the obvious way). You need a C compiler to compile python.
You should first install a C compiler.

But are you sure you need to compile python? Isn't there a binary
package available for your platform?

-- Alain.
-- 
http://mail.python.org/mailman/listinfo/python-list


Re: usenet reading

2012-06-03 Thread Martin Schöön
On 2012-06-03, Peter Pearson  wrote:
> On Sat, 26 May 2012 16:05:23 +0100, duncan smith wrote:
>> On 25/05/12 23:38, Jon Clements wrote:
> [snip]
>>> Is there a server out there where I can get my news groups?
>>
>> If you don't mind paying a small fee there are several companies 
>> providing usenet access such as http://www.newsdemon.com. (I didn't have 
>> much joy trying to track down a reliable free service, so now I pay a 
>> few pounds a year.)
>
> Also in the pay-a-little category, news.individual.net costs 10
> euros per year and filters out spam pretty effectively.  I've
> been happy using it with the slrn news reader for about 4 years.
>
Same here.

/Martin
-- 
http://mail.python.org/mailman/listinfo/python-list


Re: ./configure

2012-06-03 Thread Chris Angelico
On Mon, Jun 4, 2012 at 7:19 AM, Janet Heath
 wrote:
> configure:3534: error: no acceptable C compiler found in $PATH

The configure script is used to build Python from source. To do that,
you need a C compiler (such as gcc, which it went looking for a few
lines earlier). Perhaps you want a binary distribution instead, which
doesn't require compilation.

ChrisA
-- 
http://mail.python.org/mailman/listinfo/python-list


Re: ./configure

2012-06-03 Thread Janet Heath
On Sunday, June 3, 2012 3:19:16 PM UTC-6, Janet Heath wrote:
> Hi,
> 
> I am trying to run the ./configure but I keep getting this:
> 
> 
> configure:2756: checking for --enable-universalsdk
> configure:2797: result: no
> configure:2806: checking for --with-universal-archs
> configure:2823: result: 32-bit
> configure:2980: checking MACHDEP
> configure:3129: result: darwin
> configure:3135: checking EXTRAPLATDIR
> configure:3150: result: $(PLATMACDIRS)
> configure:3161: checking machine type as reported by uname -m
> configure:3164: result: x86_64
> configure:3177: checking for --without-gcc
> configure:3221: result: no
> configure:3282: checking for gcc
> configure:3312: result: no
> configure:3375: checking for cc
> configure:3422: result: no
> configure:3478: checking for cl.exe
> configure:3508: result: no
> configure:3532: error: in `/usr/bin/Python-2.7.3':
> configure:3534: error: no acceptable C compiler found in $PATH
> See `config.log' for more details
> 
> 
> I can't seem to figure out the 2 errors at the bottom.  Any suggestions?
> 
> 
> Janet



On Sunday, June 3, 2012 3:19:16 PM UTC-6, Janet Heath wrote:
> Hi,
> 
> I am trying to run the ./configure but I keep getting this:
> 
> 
> configure:2756: checking for --enable-universalsdk
> configure:2797: result: no
> configure:2806: checking for --with-universal-archs
> configure:2823: result: 32-bit
> configure:2980: checking MACHDEP
> configure:3129: result: darwin
> configure:3135: checking EXTRAPLATDIR
> configure:3150: result: $(PLATMACDIRS)
> configure:3161: checking machine type as reported by uname -m
> configure:3164: result: x86_64
> configure:3177: checking for --without-gcc
> configure:3221: result: no
> configure:3282: checking for gcc
> configure:3312: result: no
> configure:3375: checking for cc
> configure:3422: result: no
> configure:3478: checking for cl.exe
> configure:3508: result: no
> configure:3532: error: in `/usr/bin/Python-2.7.3':
> configure:3534: error: no acceptable C compiler found in $PATH
> See `config.log' for more details
> 
> 
> I can't seem to figure out the 2 errors at the bottom.  Any suggestions?
> 
> 
> Janet



On Sunday, June 3, 2012 3:19:16 PM UTC-6, Janet Heath wrote:
> Hi,
> 
> I am trying to run the ./configure but I keep getting this:
> 
> 
> configure:2756: checking for --enable-universalsdk
> configure:2797: result: no
> configure:2806: checking for --with-universal-archs
> configure:2823: result: 32-bit
> configure:2980: checking MACHDEP
> configure:3129: result: darwin
> configure:3135: checking EXTRAPLATDIR
> configure:3150: result: $(PLATMACDIRS)
> configure:3161: checking machine type as reported by uname -m
> configure:3164: result: x86_64
> configure:3177: checking for --without-gcc
> configure:3221: result: no
> configure:3282: checking for gcc
> configure:3312: result: no
> configure:3375: checking for cc
> configure:3422: result: no
> configure:3478: checking for cl.exe
> configure:3508: result: no
> configure:3532: error: in `/usr/bin/Python-2.7.3':
> configure:3534: error: no acceptable C compiler found in $PATH
> See `config.log' for more details
> 
> 
> I can't seem to figure out the 2 errors at the bottom.  Any suggestions?
> 
> 
> Janet



On Sunday, June 3, 2012 3:19:16 PM UTC-6, Janet Heath wrote:
> Hi,
> 
> I am trying to run the ./configure but I keep getting this:
> 
> 
> configure:2756: checking for --enable-universalsdk
> configure:2797: result: no
> configure:2806: checking for --with-universal-archs
> configure:2823: result: 32-bit
> configure:2980: checking MACHDEP
> configure:3129: result: darwin
> configure:3135: checking EXTRAPLATDIR
> configure:3150: result: $(PLATMACDIRS)
> configure:3161: checking machine type as reported by uname -m
> configure:3164: result: x86_64
> configure:3177: checking for --without-gcc
> configure:3221: result: no
> configure:3282: checking for gcc
> configure:3312: result: no
> configure:3375: checking for cc
> configure:3422: result: no
> configure:3478: checking for cl.exe
> configure:3508: result: no
> configure:3532: error: in `/usr/bin/Python-2.7.3':
> configure:3534: error: no acceptable C compiler found in $PATH
> See `config.log' for more details
> 
> 
> I can't seem to figure out the 2 errors at the bottom.  Any suggestions?
> 
> 
> Janet



On Sunday, June 3, 2012 3:19:16 PM UTC-6, Janet Heath wrote:
> Hi,
> 
> I am trying to run the ./configure but I keep getting this:
> 
> 
> configure:2756: checking for --enable-universalsdk
> configure:2797: result: no
> configure:2806: checking for --with-universal-archs
> configure:2823: result: 32-bit
> configure:2980: checking MACHDEP
> configure:3129: result: darwin
> configure:3135: checking EXTRAPLATDIR
> configure:3150: result: $(PLATMACDIRS)
> configure:3161: checking machine type as reported by uname -m
> configure:3164: result: x86_64
> configure:3177: checking for --without-gcc
> configure:3221: result: no
> configure:3282: checking for gcc
> configure:3312: result: no
> configure:3375

Re: ./configure

2012-06-03 Thread Robert Kern

On 6/3/12 11:01 PM, Janet Heath wrote:


Thanks Alain.  I should have a compiler on my Mac OS X Lion.  I am thinking 
that it isn't set in my $PATH variable.  I don't know where the $PATH is set 
at.  I will check to see if their is a binary.


Lion does not come with a compiler out-of-box. You have to install one. You can 
either install Xcode using the App Store, or register for an Apple ID and 
download the "Command Line Tools for Xcode" if you don't want the full Xcode IDE:


  https://developer.apple.com/downloads/index.action

--
Robert Kern

"I have come to believe that the whole world is an enigma, a harmless enigma
 that is made terrible by our own mad attempt to interpret it as though it had
 an underlying truth."
  -- Umberto Eco

--
http://mail.python.org/mailman/listinfo/python-list


Re: ./configure

2012-06-03 Thread Andrew Berg
On 6/3/2012 5:01 PM, Janet Heath wrote:
> Thanks Alain.  I should have a compiler on my Mac OS X Lion.  I am thinking 
> that it isn't set in my $PATH variable.  I don't know where the $PATH is set 
> at.  I will check to see if their is a binary.
There are always Windows and OS X binary installers on python.org. I'm
not sure how you would get a source package without encountering the
installer. Also, IIRC, compiling anything on OS X requires Xcode, which
means you wouldn't have a working C compiler without it.

http://www.python.org/download/releases/2.7.3/

-- 
CPython 3.3.0a3 | Windows NT 6.1.7601.17790
-- 
http://mail.python.org/mailman/listinfo/python-list


Re: ./configure

2012-06-03 Thread Benjamin Kaplan
>
> Thanks Alain.  I should have a compiler on my Mac OS X Lion.  I am thinking 
> that it isn't set in my $PATH variable.  I don't know where the $PATH is set 
> at.  I will check to see if their is a binary.
> --
> http://mail.python.org/mailman/listinfo/python-list

You need to install the command line tools package within XCode in
order to get them on the path. Or, I guess you could just add XCode's
bin directory to the path. It's usually set in ~/.bash_profile

Or you could just use the binary installer from
http://python.org/download/releases/2.7.3/
-- 
http://mail.python.org/mailman/listinfo/python-list


Re: ./configure

2012-06-03 Thread Steven D'Aprano
On Sun, 03 Jun 2012 15:01:07 -0700, Janet Heath wrote:

> Thanks Alain.  I should have a compiler on my Mac OS X Lion.  I am
> thinking that it isn't set in my $PATH variable.  I don't know where the
> $PATH is set at.  I will check to see if their is a binary.

At the command line, run:

echo $PATH

to see the path.

I'm not sure where OS X sets the PATH, but Linux systems normally set 
them in /etc/profile. User-customisations should go in a shell rc file, 
e.g. if you are using bash, edit ~/.bashrc.

To add additional paths to the PATH:

export $PATH=$PATH:/some/directory:/another/directory


To replace the system path completely:

export $PATH=/some/directory:/another/directory



-- 
Steven
-- 
http://mail.python.org/mailman/listinfo/python-list


Re: ./configure

2012-06-03 Thread William R. Wing (Bill Wing)
On Jun 3, 2012, at 8:31 PM, Steven D'Aprano wrote:

> On Sun, 03 Jun 2012 15:01:07 -0700, Janet Heath wrote:
> 
>> Thanks Alain.  I should have a compiler on my Mac OS X Lion.  I am
>> thinking that it isn't set in my $PATH variable.  I don't know where the
>> $PATH is set at.  I will check to see if their is a binary.
> 
> At the command line, run:
> 
> echo $PATH
> 
> to see the path.
> 
> I'm not sure where OS X sets the PATH, but Linux systems normally set 
> them in /etc/profile. User-customisations should go in a shell rc file, 
> e.g. if you are using bash, edit ~/.bashrc.
> 
> To add additional paths to the PATH:
> 
> export $PATH=$PATH:/some/directory:/another/directory
> 
> 
> To replace the system path completely:
> 
> export $PATH=/some/directory:/another/directory
> 
> 
> 
> -- 
> Steven
> -- 
> http://mail.python.org/mailman/listinfo/python-list

Jumping in here in an effort to be helpful…  OS-X no longer uses a .bashrc file 
(although it will recognize it).  The python path is set in  ~/.profile

-Bill
-- 
http://mail.python.org/mailman/listinfo/python-list


Re: ./configure

2012-06-03 Thread Janet Heath
On Jun 3, 6:31 pm, Steven D'Aprano  wrote:
> On Sun, 03 Jun 2012 15:01:07 -0700, Janet Heath wrote:
> > Thanks Alain.  I should have a compiler on my Mac OS X Lion.  I am
> > thinking that it isn't set in my $PATH variable.  I don't know where the
> > $PATH is set at.  I will check to see if their is a binary.
>
> At the command line, run:
>
> echo $PATH
>
> to see the path.
>
> I'm not sure where OS X sets the PATH, but Linux systems normally set
> them in /etc/profile. User-customisations should go in a shell rc file,
> e.g. if you are using bash, edit ~/.bashrc.
>
> To add additional paths to the PATH:
>
> export $PATH=$PATH:/some/directory:/another/directory
>
> To replace the system path completely:
>
> export $PATH=/some/directory:/another/directory
>
> --
> Steven

Thanks Steven!
-- 
http://mail.python.org/mailman/listinfo/python-list


Installing Mailman

2012-06-03 Thread Janet Heath
checking for --with-python... no
checking for python... /usr/bin/python
checking Python interpreter... /usr/bin/python
checking Python version... 2.7.1
checking Python's email package... ok
checking Japanese codecs... ok
checking Korean codecs... ok
checking that Python has a working distutils... configure: error:

* Distutils is not available or is incomplete for /usr/bin/python
* If you installed Python from RPM (or other package manager)
* be sure to install the -devel package, or install Python
* from source.  See sec. 15.1 of the Installation Manual for
* details

When I try to check the configuration ./configure for Mailman, I get
the above messages.

-- 
http://mail.python.org/mailman/listinfo/python-list


Re: Installing Mailman

2012-06-03 Thread Chris Rebert
On Sun, Jun 3, 2012 at 9:04 PM, Janet Heath
 wrote:
> checking for --with-python... no
> checking for python... /usr/bin/python
> checking Python interpreter... /usr/bin/python
> checking Python version... 2.7.1
> checking Python's email package... ok
> checking Japanese codecs... ok
> checking Korean codecs... ok
> checking that Python has a working distutils... configure: error:
>
> * Distutils is not available or is incomplete for /usr/bin/python
> * If you installed Python from RPM (or other package manager)
> * be sure to install the -devel package, or install Python
> * from source.  See sec. 15.1 of the Installation Manual for
> * details
>
> When I try to check the configuration ./configure for Mailman, I get
> the above messages.

What *nix flavor or Linux distro are you running?

Cheers,
Chris
-- 
http://mail.python.org/mailman/listinfo/python-list


Re: Installing Mailman

2012-06-03 Thread Benjamin Kaplan
On Mon, Jun 4, 2012 at 12:49 AM, Chris Rebert  wrote:
> On Sun, Jun 3, 2012 at 9:04 PM, Janet Heath
>  wrote:
>> checking for --with-python... no
>> checking for python... /usr/bin/python
>> checking Python interpreter... /usr/bin/python
>> checking Python version... 2.7.1
>> checking Python's email package... ok
>> checking Japanese codecs... ok
>> checking Korean codecs... ok
>> checking that Python has a working distutils... configure: error:
>>
>> * Distutils is not available or is incomplete for /usr/bin/python
>> * If you installed Python from RPM (or other package manager)
>> * be sure to install the -devel package, or install Python
>> * from source.  See sec. 15.1 of the Installation Manual for
>> * details
>>
>> When I try to check the configuration ./configure for Mailman, I get
>> the above messages.
>
> What *nix flavor or Linux distro are you running?
>
> Cheers,
> Chris

Based on the previous post (./configure), I would assume OS X Lion. I
would also assume she gave up on compiling 2.7.3 herself because it's
only finding the system Python.

Janet, did you install the binary from http://www.python.org? If so,
look up the --with-python argument it's checking for (./configure
--help) and set the Python location accordingly.
-- 
http://mail.python.org/mailman/listinfo/python-list