[issue1113] interrupt_main() fails to interrupt raw_input()

2007-09-05 Thread Anand Patil

New submission from Anand Patil:

Mac OS 10.4, Python 2.5 from pythonmac.org: The function listen() in the 
attached should be interrupted after a second, but it waits until return 
is pressed before  catching the exception.

--
components: Macintosh
files: test.py
messages: 55673
nosy: anand
severity: normal
status: open
title: interrupt_main() fails to interrupt raw_input()
type: behavior
versions: Python 2.5

__
Tracker <[EMAIL PROTECTED]>
<http://bugs.python.org/issue1113>
__from thread import *
from threading import *
from time import *

def interrupt():
sleep(1)
print 'Interrupting main thread now'
interrupt_main()

def listen():
t = Thread(target=interrupt)
t.start()
try:
b = raw_input()
except KeyboardInterrupt:
print 'Exception caught'___
Python-bugs-list mailing list 
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue1113] interrupt_main() fails to interrupt raw_input()

2007-09-07 Thread Anand Patil

Anand Patil added the comment:

OK, thanks for your help.

On 9/6/07, Georg Brandl <[EMAIL PROTECTED]> wrote:
>
>
> Georg Brandl added the comment:
>
> Anand Patil schrieb:
> > Anand Patil added the comment:
> >
> > Sorry- Where can I get this patch? The SourceForge patch manager says
> it's
> > closed.
>
> It is - like all other issues - in this tracker at
> http://bugs.python.org/706406.
>
> __
> Tracker <[EMAIL PROTECTED]>
> <http://bugs.python.org/issue1113>
> __
>

__
Tracker <[EMAIL PROTECTED]>
<http://bugs.python.org/issue1113>
__OK, thanks for your help.On 9/6/07, Georg Brandl <mailto:[EMAIL 
PROTECTED]">[EMAIL PROTECTED]> wrote:
Georg Brandl added the comment:Anand Patil schrieb:> Anand 
Patil added the comment:>> Sorry- Where can I get this patch? The 
SourceForge patch manager says it's> closed.
It is - like all other issues - in this tracker at http://bugs.python.org/706406";>http://bugs.python.org/706406.__Tracker
 <mailto:[EMAIL PROTECTED]">
[EMAIL PROTECTED]><http://bugs.python.org/issue1113";>http://bugs.python.org/issue1113>__

___
Python-bugs-list mailing list 
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue1113] interrupt_main() fails to interrupt raw_input()

2007-09-06 Thread Anand Patil

Anand Patil added the comment:

Sorry- Where can I get this patch? The SourceForge patch manager says it's
closed.

Thanks,
Anand

On 9/6/07, Georg Brandl <[EMAIL PROTECTED]> wrote:
>
>
> Georg Brandl added the comment:
>
> This is ultimately the same as #685846, for which a patch is at #706406.
>
> --
> nosy: +georg.brandl
> resolution:  -> duplicate
> status: open -> closed
> superseder:  -> fix bug #685846: raw_input defers signals
>
> __
> Tracker <[EMAIL PROTECTED]>
> <http://bugs.python.org/issue1113>
> __
>

__
Tracker <[EMAIL PROTECTED]>
<http://bugs.python.org/issue1113>
__Sorry- Where can I get this patch? The SourceForge patch manager says it's 
closed.Thanks,AnandOn 
9/6/07, Georg Brandl <mailto:[EMAIL 
PROTECTED]">
[EMAIL PROTECTED]> wrote:Georg Brandl added the comment:This is 
ultimately the same as #685846, for which a patch is at #706406.
--nosy: +georg.brandlresolution:  -> 
duplicatestatus: open -> closedsuperseder:  -> fix bug 
#685846: raw_input defers 
signals__Tracker <
mailto:[EMAIL PROTECTED]">[EMAIL PROTECTED]><http://bugs.python.org/issue1113";>http://bugs.python.org/issue1113>__


___
Python-bugs-list mailing list 
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue4165] Failure building 64-bit Python on Leopard

2008-10-21 Thread Anand Patil

New submission from Anand Patil <[EMAIL PROTECTED]>:

Configuring with 

sihpc03:Python-2.6 anand$ ./configure --with-framework-name=Python64 --
with-universal-archs=all --enable-framework --enable-
universalsdk=MACOSX_DEPLOYMENT_TARGET=10.5

on an Intel Mac Pro with the latest Leopard and Apple gcc 4.0, I get 
many errors like the following instructing me to report a bug. My 
config.log file is attached.

checking errno.h presence... yes
configure: WARNING: errno.h: present but cannot be compiled
configure: WARNING: errno.h: check for missing prerequisite headers?
configure: WARNING: errno.h: see the Autoconf documentation
configure: WARNING: errno.h: section "Present But Cannot Be 
Compiled"
configure: WARNING: errno.h: proceeding with the preprocessor's result
configure: WARNING: errno.h: in the future, the compiler will take 
precedence
configure: WARNING: ## -
--- ##
configure: WARNING: ## Report this to http://www.python.org/python-
bugs ##
configure: WARNING: ## -
--- ##

--
components: Macintosh
files: config.log
messages: 75039
nosy: anand
severity: normal
status: open
title: Failure building 64-bit Python on Leopard
type: compile error
versions: Python 2.6
Added file: http://bugs.python.org/file11849/config.log

___
Python tracker <[EMAIL PROTECTED]>
<http://bugs.python.org/issue4165>
___
___
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue4165] Failure building 64-bit Python on Leopard

2008-10-22 Thread Anand Patil

Anand Patil <[EMAIL PROTECTED]> added the comment:

That worked, thanks Mark. make worked fine also, but make install failed 
at the end with

running install_egg_info
Writing 
/Library/Frameworks/Python64.framework/Versions/2.6/lib/python2.6/lib-
dynload/Python-2.6-py2.6.egg-info
ln -fs "../../../Python64" 
"/Library/Frameworks/Python64.framework/Versions/2.6/lib/python2.6/confi
g/libpython2.6.a"
cd Mac && make installmacsubtree DESTDIR=""
Creating directory 
/Library/Frameworks/Python64.framework/Versions/2.6/Mac/Tools
DYLD_FRAMEWORK_PATH=/Users/anand/Downloads/Python-2.6:  ../python.exe 
./scripts/cachersrc.py -v 
/Library/Frameworks/Python64.framework/Versions/2.6/lib/python2.6/plat-
mac /Library/Frameworks/Python64.framework/Versions/2.6/Mac/Tools
Traceback (most recent call last):
  File "./scripts/cachersrc.py", line 44, in 
main()
  File "./scripts/cachersrc.py", line 41, in main
os.path.walk(dir, handler, (verbose, force))
  File "./Lib/posixpath.py", line 224, in walk
func(arg, top, names)
  File "./scripts/cachersrc.py", line 23, in handler
macresource.open_pathname(os.path.join(dirname, fn), 
verbose=verbose)
  File "/Users/anand/Downloads/Python-2.6/Lib/plat-mac/macresource.py", 
line 81, in open_pathname
refno = Res.FSpOpenResFile(pathname, 1)
AttributeError: 'module' object has no attribute 'FSpOpenResFile'
make[1]: *** [installmacsubtree] Error 1
make: *** [frameworkinstallmaclib] Error 2
sihpc03:Python-2.6 anand$

___
Python tracker <[EMAIL PROTECTED]>
<http://bugs.python.org/issue4165>
___
___
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com