[issue8107] test_distutils fails on Windows in 2.6.5rc2

2010-03-10 Thread Martin v . Löwis

New submission from Martin v. Löwis :

test_distutils fails like this:

test test_distutils crashed -- : object of type 
'NoneType' has no len()
Traceback (most recent call last):
  File "Lib\test\regrtest.py", line 560, in runtest_inner
indirect_test()
  File "c:\Python26\lib\test\test_distutils.py", line 13, in test_main
test.test_support.run_unittest(distutils.tests.test_suite())
  File "c:\Python26\lib\distutils\tests\__init__.py", line 30, in test_suite
suite.addTest(module.test_suite())
  File "c:\Python26\lib\distutils\tests\test_build_ext.py", line 391, in 
test_suite
src = _get_source_filename()
  File "c:\Python26\lib\distutils\tests\test_build_ext.py", line 22, in _get_sou
rce_filename
return os.path.join(srcdir, 'Modules', 'xxmodule.c')
  File "c:\Python26\lib\ntpath.py", line 96, in join
assert len(path) > 0
TypeError: object of type 'NoneType' has no len()

Not sure whether this is a regression from 2.6.4.

--
assignee: tarek
components: Distutils
messages: 100779
nosy: barry, loewis, tarek
severity: normal
status: open
title: test_distutils fails on Windows in 2.6.5rc2
versions: Python 2.6

___
Python tracker 

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



[issue8099] IDLE(Python GUI) Doesn't open

2010-03-10 Thread Estroms

Estroms  added the comment:

I'm beginner, so where can I find those things?

--

___
Python tracker 

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



[issue8107] test_distutils fails on Windows in 2.6.5rc2

2010-03-10 Thread Ezio Melotti

Ezio Melotti  added the comment:

This has been introduced in r77955, and affected all the 2.6 Windows buildbots 
(e.g. 
http://www.python.org/dev/buildbot/builders/x86%20XP-5%202.6/builds/9/steps/test/logs/stdio).
The problem is caused by the fact that "srcdir = 
sysconfig.get_config_var('srcdir')" returns None on Windows.

--
keywords: +buildbot
nosy: +ezio.melotti
priority:  -> normal
stage:  -> test needed
type:  -> behavior

___
Python tracker 

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



[issue8108] test_ftplib fails with OpenSSL 0.9.8m

2010-03-10 Thread Florent Xicluna

New submission from Florent Xicluna :

There's such failure on trunk and py3k when openssl 0.9.8m is installed.
(Debian platform)
No failure with 0.9.8k.

test_ftplib
Exception in thread Thread-40:
Traceback (most recent call last):
  File "./Lib/threading.py", line 530, in __bootstrap_inner
self.run()
  File "./Lib/test/test_ftplib.py", line 223, in run
asyncore.loop(timeout=0.1, count=1)
  File "./Lib/asyncore.py", line 211, in loop
poll_fun(timeout, map)
  File "./Lib/asyncore.py", line 154, in poll
write(obj)
  File "./Lib/asyncore.py", line 88, in write
obj.handle_error()
  File "./Lib/asyncore.py", line 84, in write
obj.handle_write_event()
  File "./Lib/test/test_ftplib.py", line 290, in handle_write_event
super(SSLConnection, self).handle_write_event()
  File "./Lib/asyncore.py", line 440, in handle_write_event
self.handle_write()
  File "./Lib/asynchat.py", line 174, in handle_write
self.initiate_send()
  File "./Lib/asynchat.py", line 215, in initiate_send
self.handle_close()
  File "./Lib/test/test_ftplib.py", line 43, in handle_close
self.close()
  File "./Lib/test/test_ftplib.py", line 316, in close
self.socket.unwrap()
  File "./Lib/ssl.py", line 272, in unwrap
s = self._sslobj.shutdown()
SSLError: [Errno 2] _ssl.c:1367: The operation did not complete (read)

--
components: Extension Modules
messages: 100782
nosy: flox
priority: high
severity: normal
stage: test needed
status: open
title: test_ftplib fails with OpenSSL 0.9.8m
type: crash
versions: Python 2.7, Python 3.2

___
Python tracker 

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



[issue8108] test_ftplib fails with OpenSSL 0.9.8m

2010-03-10 Thread Florent Xicluna

Changes by Florent Xicluna :


--
nosy: +giampaolo.rodola, haypo, pitrou

___
Python tracker 

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



[issue8108] test_ftplib fails with OpenSSL 0.9.8m

2010-03-10 Thread Florent Xicluna

Florent Xicluna  added the comment:

It occurs only for trunk and 3.x, where the "ftp over ssl" is implemented. See 
#2054.

And the Debian alpha buildbots have the same library 0.9.8m:
http://www.python.org/dev/buildbot/all/builders/alpha%20Debian%20trunk
http://www.python.org/dev/buildbot/all/builders/alpha%20Debian%203.x

--
keywords: +buildbot

___
Python tracker 

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



[issue8108] test_ftplib fails with OpenSSL 0.9.8m

2010-03-10 Thread Florent Xicluna

Florent Xicluna  added the comment:

OpenSSL changelog (scroll to 0.9.8m): http://www.openssl.org/news/changelog.html

--

___
Python tracker 

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



[issue8107] test_distutils fails on Windows in 2.6.5rc2

2010-03-10 Thread Tarek Ziadé

Changes by Tarek Ziadé :


--
priority: normal -> high
resolution:  -> accepted

___
Python tracker 

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



[issue7540] urllib2 request does not update content length after new add_data

2010-03-10 Thread Fred L. Drake, Jr.

Fred L. Drake, Jr.  added the comment:

The reverts in SVN look good to me; re-closing this issue as no further action 
is required.

If there's a proposal for specific changes to urllib2 to improve diagnostics in 
unsupported cases, that should be detailed in a separate issue.

Marking this issue "invalid" since the original reported symptom was determined 
to be caused by an unsupported use (re-use of the request).

--
resolution: accepted -> invalid
status: open -> closed

___
Python tracker 

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



[issue8099] IDLE(Python GUI) Doesn't open

2010-03-10 Thread Brian Curtin

Brian Curtin  added the comment:

In a command prompt window, type the following:

C:\>set TCL_LIBRARY=
C:\>set TK_LIBRARY=
C:\>C:\Python31\python.exe C:\Python31\Lib\idlelib\idle.py

--
nosy: +brian.curtin

___
Python tracker 

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



[issue8109] Support for TLS Server Name Indication extension

2010-03-10 Thread Jesús Cea Avión

New submission from Jesús Cea Avión :

SSL sockets should support SNI, both as servers and clients: 
http://en.wikipedia.org/wiki/Server_Name_Indication

After that, libraries that support SSL/TLS should be upgraded to take advantage 
of it.

Any interest in supporting this?.

--
components: Extension Modules
messages: 100787
nosy: jcea
priority: normal
severity: normal
status: open
title: Support for TLS Server Name Indication extension
type: feature request
versions: Python 2.7, Python 3.2

___
Python tracker 

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



[issue8110] subprocess.py doesn't correctly detect Windows machines

2010-03-10 Thread Dave Fugate

New submission from Dave Fugate :

subprocess.py contains the following line (380 in CPython 2.6.3):
mswindows = (sys.platform == "win32")

which only correctly detects CPython on Windows.  This line should be changed 
to:
mswindows = (sys.platform == "win32" or sys.platform == "cli" or 
sys.platform == "silverlight")

so subprocess can be utilized from IronPython as well.

This bug should be trivial to fix.

--
components: Library (Lib)
messages: 100788
nosy: midnightdf
severity: normal
status: open
title: subprocess.py doesn't correctly detect Windows machines
type: behavior
versions: Python 2.6, Python 2.7, Python 3.1, Python 3.2, Python 3.3

___
Python tracker 

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



[issue8110] subprocess.py doesn't correctly detect Windows machines

2010-03-10 Thread Brian Curtin

Changes by Brian Curtin :


--
components: +Windows
priority:  -> normal
stage:  -> test needed
versions:  -Python 3.3

___
Python tracker 

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



[issue8110] subprocess.py doesn't correctly detect Windows machines

2010-03-10 Thread Florent Xicluna

Changes by Florent Xicluna :


--
nosy: +flox

___
Python tracker 

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



[issue8110] subprocess.py doesn't correctly detect Windows machines

2010-03-10 Thread R. David Murray

R. David Murray  added the comment:

Probably it should use platform.system() == 'Windows' instead.

--
keywords: +easy
nosy: +dino.viehland, michael.foord, r.david.murray

___
Python tracker 

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



[issue8110] subprocess.py doesn't correctly detect Windows machines

2010-03-10 Thread Amaury Forgeot d'Arc

Amaury Forgeot d'Arc  added the comment:

but, does it work even with your fix?
it seems to me that "from _subprocess import *" will fail miserably.

--
nosy: +amaury.forgeotdarc

___
Python tracker 

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



[issue8110] subprocess.py doesn't correctly detect Windows machines

2010-03-10 Thread Brian Curtin

Brian Curtin  added the comment:

Also, using platform.system() == 'Windows' would exclude IronPython running on 
Mono.

--
nosy: +brian.curtin

___
Python tracker 

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



[issue8074] Fail-fast behavior for unittest

2010-03-10 Thread Amaury Forgeot d'Arc

Amaury Forgeot d'Arc  added the comment:

fwiw, the similar issue2241 was rejected two years ago.

--
nosy: +amaury.forgeotdarc

___
Python tracker 

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



[issue8110] subprocess.py doesn't correctly detect Windows machines

2010-03-10 Thread Dave Fugate

Dave Fugate  added the comment:

platform.system()=="Windows" won't work unless you change platform as well:
IronPython 2.6.1 DEBUG (2.6.10920.0) on .NET 2.0.50727.4927
Type "help", "copyright", "credits" or "license" for more information.
>>> import platform
>>> platform.system()
'cli'

--

___
Python tracker 

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



[issue8110] subprocess.py doesn't correctly detect Windows machines

2010-03-10 Thread Amaury Forgeot d'Arc

Amaury Forgeot d'Arc  added the comment:

it's not about platform detection; does IronPython have the equivalent of 
msvcrt.open_osfhandle()?

--

___
Python tracker 

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



[issue8110] subprocess.py doesn't correctly detect Windows machines

2010-03-10 Thread Dave Fugate

Dave Fugate  added the comment:

Is there any reason _subprocess couldn't be implemented in C#?  If not, this is 
the first of many steps needed to get subprocess working under IronPython.

--

___
Python tracker 

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



[issue8110] subprocess.py doesn't correctly detect Windows machines

2010-03-10 Thread Florent Xicluna

Florent Xicluna  added the comment:

Proposed patch, with duck subprocessing. :D

--
keywords: +patch
Added file: http://bugs.python.org/file16518/issue8110_subprocess_mswindows.diff

___
Python tracker 

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



[issue8111] docs.python.org/download.html unhelpful.

2010-03-10 Thread Thomas Wouters

New submission from Thomas Wouters :

docs.python.org is showing the docs for 2.6.5c2. As its most obvious bad 
consequence, docs.python.org/download.html doesn't offer any actual downloads, 
and there are no obvious (to newbies looking to download docs) links to working 
downloads.

--
assignee: georg.brandl
components: Documentation
messages: 100797
nosy: georg.brandl, twouters
severity: normal
status: open
title: docs.python.org/download.html unhelpful.

___
Python tracker 

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



[issue8110] subprocess.py doesn't correctly detect Windows machines

2010-03-10 Thread Brian Curtin

Brian Curtin  added the comment:

Amaury is right. On Windows, _subprocess is a built-in, so the platform stuff 
just currently enables further failure.

Dave: My C# skills aren't the greatest, but looking at PC/_subprocess.c there 
are a few Win32 functions you might need to P/Invoke, but I believe a lot of 
the functionality is supported in .NET.

--
keywords:  -easy

___
Python tracker 

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



[issue8074] Fail-fast behavior for unittest

2010-03-10 Thread Michael Foord

Michael Foord  added the comment:

I like the feature. I'm a bit concerned about the proliferation of command line 
options for unittest though. 

Steve's rejection of the feature seemed to be on the basis that he didn't need 
it (or see a need for it). :-)

--

___
Python tracker 

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



ubuntu : cannot find -lpython2.5 while building jcc for pylucene

2010-03-10 Thread sudhir singh rana
Hi,

I am getting following error while buiding jcc for pylucene

/usr/bin/ld: cannot find -lpython2.5
collect2: ld returned 1 exit status

any idea which thing is causing this problem.

I am using pylucene 3.0.0.1 version with python 2.5.4 and with java-6-sun

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



[issue8112] xmlrpc.server: ServerHTMLDoc.docroutine uses (since 3.0) depricated function "inspect.getargspec()"

2010-03-10 Thread tormen

New submission from tormen :

This throws an exception and crashes your DocXMLRPCServer when using registered 
python functions that use function annotations.

Seems inconsistent to me.
Or is there a reason for this?

--
messages: 100800
nosy: tormen
severity: normal
status: open
title: xmlrpc.server: ServerHTMLDoc.docroutine uses (since 3.0) depricated 
function "inspect.getargspec()"
type: crash
versions: Python 3.1

___
Python tracker 

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



[issue8112] xmlrpc.server: ServerHTMLDoc.docroutine uses (since 3.0) depricated function "inspect.getargspec()"

2010-03-10 Thread tormen

tormen  added the comment:

"This" refers to the summary of the bug.

--

___
Python tracker 

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



[issue8112] xmlrpc.server: ServerHTMLDoc.docroutine uses (since 3.0) deprecated function "inspect.getargspec()"

2010-03-10 Thread tormen

Changes by tormen :


--
title: xmlrpc.server: ServerHTMLDoc.docroutine uses (since 3.0) depricated 
function "inspect.getargspec()" -> xmlrpc.server: ServerHTMLDoc.docroutine uses 
(since 3.0) deprecated function "inspect.getargspec()"

___
Python tracker 

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



[issue8112] xmlrpc.server: ServerHTMLDoc.docroutine uses (since 3.0) deprecated function "inspect.getargspec()"

2010-03-10 Thread Brian Curtin

Brian Curtin  added the comment:

Can you provide a test case which reproduces your issue?

--
components: +Library (Lib)
nosy: +brian.curtin
stage:  -> test needed

___
Python tracker 

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



[issue8100] `configure` incorrectly handles empty OPT variable

2010-03-10 Thread Arfrever Frehtes Taifersar Arahesis

Arfrever Frehtes Taifersar Arahesis  added the comment:

Could you apply this patch also in 3.1 branch?

--

___
Python tracker 

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



[issue1222585] C++ compilation support for distutils

2010-03-10 Thread Arfrever Frehtes Taifersar Arahesis

Arfrever Frehtes Taifersar Arahesis  added the comment:

I'm attaching my own patch, which has the following advantages:
- Determination of target language is performed per source file instead of per 
list of source files passed to CCompiler.compile().
- Proper determination of linker.
- Proper support for CXXFLAGS and other variables.

--
nosy: +Arfrever
Added file: http://bugs.python.org/file16519/python-distutils-C++.patch

___
Python tracker 

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



[issue1222585] C++ compilation support for distutils

2010-03-10 Thread Tarek Ziadé

Tarek Ziadé  added the comment:

Moved to distutils2 (distutils is feature frozen now)

--
components: +Distutils2 -Distutils

___
Python tracker 

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



[issue1222585] C++ compilation support for distutils

2010-03-10 Thread Michael Droettboom

Michael Droettboom  added the comment:

Does the reassignment only apply to the more recent more ambitious patch?  The 
original patch (and my forward porting of it) is purely a bugfix, not a feature 
freeze.  This is a showstopper bug for matplotlib on Solaris, for example, and 
I would hate to see its application further delayed.

--

___
Python tracker 

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



[issue1222585] C++ compilation support for distutils

2010-03-10 Thread Tarek Ziadé

Tarek Ziadé  added the comment:

If we consider that Distutils didn't provide c++ support, and that it partially 
worked by accident (through gcc), I would call it a new feature. Especially 
since it requires a new option.

We are freezing the API so we can't add options to methods/functions. 

That's why it could be done on distutils2 instead, which will be released when 
2.7 final is released (but not in the stdlib), and backward compatible with 
2.4, 2.5, 2.6.

If we could do the proper job for C++ support in distutils2 that would be 
better. 

Notice that distutils2 is a fork of how distutils was in trunk last month, so 
it should be fairly simple to depend on it in your project, to benefit from new 
features etc. The goal is to push it back in the stdlib in 3.3. 

If you want to start a dev. branch of your project using distutils2, I am 
willing to help there.

--

___
Python tracker 

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



[issue8100] `configure` incorrectly handles empty OPT variable

2010-03-10 Thread Benjamin Peterson

Benjamin Peterson  added the comment:

2010/3/10 Arfrever Frehtes Taifersar Arahesis :
>
> Arfrever Frehtes Taifersar Arahesis  added the 
> comment:
>
> Could you apply this patch also in 3.1 branch?

Done.

--

___
Python tracker 

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



[issue8113] PyUnicode_AsUnicode doesn't check for NULL pointer

2010-03-10 Thread Lorenz Quack

New submission from Lorenz Quack :

The C-API function "PyUnicode_AsUnicode(PyObject *unicode)" does not check the 
argument for NULL pointers. 
It passes it directly to the macro "PyUnicode_Check(op)" which then crashes 
when trying to access "Py_TYPE(op)".

I marked this as Python 2.7 because I checked this on trunk but I assume that 
this bug is present in all versions.

The attached patch fixes this issue.

--
files: PyUnicode_AsUnicode.patch
keywords: patch
messages: 100809
nosy: donlorenzo
severity: normal
status: open
title: PyUnicode_AsUnicode doesn't check for NULL pointer
versions: Python 2.7
Added file: http://bugs.python.org/file16520/PyUnicode_AsUnicode.patch

___
Python tracker 

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



[issue8113] PyUnicode_AsUnicode doesn't check for NULL pointer

2010-03-10 Thread Benjamin Peterson

Benjamin Peterson  added the comment:

Why is that a bug? You shouldn't pass a NULL argument.

--
nosy: +benjamin.peterson
priority:  -> low

___
Python tracker 

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



[issue8107] test_distutils fails on Windows in 2.6.5rc2

2010-03-10 Thread Barry A. Warsaw

Barry A. Warsaw  added the comment:

Um, this sucks because I think that that means it was introduced after 2.6.4 
final.  Since it's a regression, marking as a blocker for 2.6.5 final, but in 
order to stay a blocker it has to be a really critical bug and I'll want to 
review the fix before it goes it (to make sure it doesn't break anything else). 
 Otherwise, I'll bump it down to deferred blocker and we can fix it for 2.6.6.

--
priority: high -> release blocker

___
Python tracker 

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



[issue8107] test_distutils fails on Windows in 2.6.5rc2

2010-03-10 Thread STINNER Victor

STINNER Victor  added the comment:

r77955 is a backport of r69304, commit made 12 months before the backport. It's 
related to issue #4151.

--
nosy: +haypo

___
Python tracker 

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



[issue8107] test_distutils fails on Windows in 2.6.5rc2

2010-03-10 Thread STINNER Victor

STINNER Victor  added the comment:

The patch replaces sysconfig.project_base by 
sysconfig.get_config_var('srcdir'). You can maybe use sysconfig.project_base if 
sysconfig.get_config_var('srcdir') is None?

--

___
Python tracker 

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



[issue3137] Python doesn't handle SIGINT well if it arrives during interpreter startup

2010-03-10 Thread STINNER Victor

STINNER Victor  added the comment:

Commited to trunk: r78826 + r78827. I will later backport to py3k.

--

___
Python tracker 

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



[issue8114] python 2.6.4 installation is not working for the single user mode in vista.

2010-03-10 Thread Vivek Anand

Changes by Vivek Anand :


--
components: Windows
nosy: insidevivek
severity: normal
status: open
title: python 2.6.4 installation is not working for the single user mode in 
vista.
type: behavior
versions: Python 2.6

___
Python tracker 

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



[issue8107] test_distutils fails on Windows in 2.6.5rc2

2010-03-10 Thread Tarek Ziadé

Tarek Ziadé  added the comment:

This test just grabs xxmodule.c from Python to try out a compilation.

It's a lot of work just to try out a .c file in build_ext. I've already changed 
this in trunk by having a c file local to distutils tests, as a fallback in 
case the location cannot be found (depending on the execution context).

I can backport this to 2.6. It's pretty safe to do it since its just a change 
in the test, the distutils code is not changed. Barry let me know if you want 
me to do backport it in release26, and if yes, when I should do it.

--

___
Python tracker 

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



[issue8107] test_distutils fails on Windows in 2.6.5rc2

2010-03-10 Thread Ned Deily

Ned Deily  added the comment:

I'm guessing this falls into the same category as Issue8102, that is, since the 
python tests are also installed and run on end-user systems by various 
installers, it is important that none of the tests depend on files from a 
python build directory or source tree.  In other words, if a test needs a file, 
that file needs to be explicitly installed.

--
nosy: +ned.deily

___
Python tracker 

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



[issue3243] Support iterable bodies in httplib

2010-03-10 Thread Ryan Coyner

Ryan Coyner  added the comment:

This patch and its tests still work. Any particular reason why it hasn't been 
adopted yet?

--
nosy: +rcoyner

___
Python tracker 

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



[issue7880] sysconfig does not like symlinks

2010-03-10 Thread Florent Xicluna

Florent Xicluna  added the comment:

Fixed in r78828 and r78829 (py3k), except for the part related to #7774.

(It was turning buildbots red, after Victor fixed #3137)

--
resolution:  -> fixed
stage: patch review -> committed/rejected
status: open -> pending

___
Python tracker 

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



[issue2698] Extension module build fails for MinGW: missing vcvarsall.bat

2010-03-10 Thread Craig McQueen

Craig McQueen  added the comment:

This still seems to be a bug in Python 3.1.1, does it not? Can this be 
re-opened?

--

___
Python tracker 

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



[issue7774] sys.executable: wrong location if zeroth command argument is modified.

2010-03-10 Thread STINNER Victor

STINNER Victor  added the comment:

"Thanks to" my commit r78826 (fixing #3137), site errors are now fatal: Python 
exits with an error instead of just printing "import site failed; ...". It's 
the come back of #7774: test_executable_with_cwd of test_subprocess now always 
fail.

The test fails because of an error raise by the site module:
-
Traceback (most recent call last):
  File "Lib/site.py", line 542, in 
main()
  File "Lib/site.py", line 524, in main
known_paths = addusersitepackages(known_paths)
  File "Lib/site.py", line 257, in addusersitepackages
user_site = getusersitepackages()
  File "Lib/site.py", line 239, in getusersitepackages
user_base = getuserbase() # this will also set USER_BASE
  File "Lib/site.py", line 229, in getuserbase
USER_BASE = get_config_var('userbase')
  File "/home/SHARE/SVN/python-trunk/Lib/sysconfig.py", line 494, in 
get_config_var
return get_config_vars().get(name)
  File "/home/SHARE/SVN/python-trunk/Lib/sysconfig.py", line 402, in 
get_config_vars
_init_posix(_CONFIG_VARS)
  File "/home/SHARE/SVN/python-trunk/Lib/sysconfig.py", line 255, in _init_posix
raise IOError(msg)
IOError: invalid Python installation: unable to open 
/usr/local/lib/python2.7/config/Makefile (No such file or directory)
-

--

___
Python tracker 

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



[issue8113] PyUnicode_AsUnicode doesn't check for NULL pointer

2010-03-10 Thread Lorenz Quack

Lorenz Quack  added the comment:

I thought that the CamelCase C-functions like PyUnicode_AsUnicode would check 
for errors like this and if you don't want error checking you can use the 
capitalized versions like PyUnicode_AS_UNICODE.
I just looked at the code for PyFloat_AsDouble and it checks for NULL pointers. 
so does PyInt_AsLong. 
OTOH, PyString_As does not.
I didn't check on any other types.

So if it is not considered a bug then I just want to point out the 
inconsistency.

IMHO, the C-API documentation lacks information on how it behaves in error 
conditions (this might be a bit over generalized). Would there be interest in 
documentation patches in these cases or are developers expected to look at the 
actual source code for this kind of information?

--

___
Python tracker 

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



[issue7774] sys.executable: wrong location if zeroth command argument is modified.

2010-03-10 Thread Florent Xicluna

Florent Xicluna  added the comment:

Fixed test failures related to incorrect sys.executable, which were visible 
after #3137 was fixed. Changesets r78830 and r78831.

Note: there's 2 comments related to #7774. To review when this issue is fixed:
 - Lib/sysconfig.py
 - Lib/test/test_subprocess.py

--

___
Python tracker 

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



[issue8115] Pyojbc on Snow Leopard

2010-03-10 Thread Riccardo Rotondo

New submission from Riccardo Rotondo :

Hello, I'm having trouble with pyobj since I have installed Python 2.6.4 by 
official dmg download here. 
Befor I used python pre-installed in Snow Leopard and everything worked ok. Now 
I can't import pyobjc.
I tried to perform easy_install pyobjc but I can't still import objc. 
The strangest thing is that it works for previos version!
Here some log:
rmacbpro:~ riccardorotondo$ python
Python 2.6.4 (r264:75821M, Oct 27 2009, 19:48:32) 
http://GCC 4.0.1 (Apple Inc. build 5493) on darwin
Type "help", "copyright", "credits" or "license" for more information.
>>> import Foundation
Traceback (most recent call last):
File "", line 1, in 
ImportError: No module named Foundation
>>> exit()
rrmacbpro:~ riccardorotondo$ python2.5
Python 2.5.4 (r254:67916, Jul 7 2009, 23:51:24) 
http://GCC 4.2.1 (Apple Inc. build 5646) on darwin
Type "help", "copyright", "credits" or "license" for more information.
>>> import Foundation
>>> exit()

Thanks for help
Bye

Riccardo

--
assignee: ronaldoussoren
components: Macintosh
messages: 100823
nosy: RiccardoR, ronaldoussoren
severity: normal
status: open
title: Pyojbc on Snow Leopard
type: resource usage
versions: Python 2.6

___
Python tracker 

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



[issue8113] PyUnicode_AsUnicode doesn't check for NULL pointer

2010-03-10 Thread STINNER Victor

STINNER Victor  added the comment:

> I just looked at the code for PyFloat_AsDouble and it checks for NULL pointers

It's just a little help for developers: it will raise the ugly TypeError("bad 
argument type for built-in operation") and returns -1.

It's never a good idea to pass NULL to a function of the Python C API. I think 
that most (or all?) functions will fail.

> IMHO, the C-API documentation lacks information on how it behaves 
> in error conditions (this might be a bit over generalized).

I didn't read the documentation, but you HAVE TO always check the result of a 
Python function.

If the function returns a PyObject*, you have to check that the result is not 
NULL. The same rule applies for Pyxxx_AsXxx(): you also have to check the 
result (the error value depends on the function). Eg. PyInt_AsLong() returns -1 
on error: use (result == -1) && PyErr_Occured()) in the caller to detect an 
error.

--
nosy: +haypo

___
Python tracker 

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



[issue3137] Python doesn't handle SIGINT well if it arrives during interpreter startup

2010-03-10 Thread STINNER Victor

STINNER Victor  added the comment:

My change about site initialization error raised 2 old issues: #7774 and #7880. 
flox commited a fix for #7880 and a workaround for #7774 (just enough to fix 
test_subprocess).

--

___
Python tracker 

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



[issue8107] test_distutils fails on Windows in 2.6.5rc2

2010-03-10 Thread Barry A. Warsaw

Barry A. Warsaw  added the comment:

Tarek, I guess the fix is as haypo suggests?  Just use sysconfig.project_base 
if sysconfig.get_config_var('srcdir') returns None?

If that's the only change, then please do fix this for 2.6.5 final.  Thanks!

--

___
Python tracker 

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



[issue7774] sys.executable: wrong location if zeroth command argument is modified.

2010-03-10 Thread STINNER Victor

STINNER Victor  added the comment:

This issue is not related to subprocess, subprocess is just used in examples to 
show the bug. The problem is that Python defines an invalid sys.executable if 
the process was created with a custom argv[0]. In Python trunk, the site module 
now uses sysconfig which depends on sys.executable. If sys.executable, 
sysconfig fails, site import fails, and finally Python exists (since my fix for 
#3137). I think that we have to split the problem in two parts:

 1) Python startup fails if sysconfig raises an error
 2) sys.executable is invalid is argv[0] is modified

(1) Functions using (indirectly) sysconfig in site module:

 - addbuilddir()
 - addusersitepackages()

I don't know if Python should exits with an error if these functions fail.

(2) Except of Python unit test, is it required in "real world" applications? I 
know that Twisted does modify argv[0] to display "twistd" in process list. It 
looks like there is trivial, portable and/or reliable solution for this problem.

--

___
Python tracker 

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



[issue7774] sys.executable: wrong location if zeroth command argument is modified.

2010-03-10 Thread STINNER Victor

STINNER Victor  added the comment:

Oooh, I shouldn't post messages at 3:05.

"If sys.executable *is invalid*, sysconfig fails, site import fails, and 
finally Python *exits* (since my fix for #3137)."

"It looks like there is *no* trivial, portable and/or reliable solution *to 
fix* this problem."

--

___
Python tracker 

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



[issue7774] sys.executable: wrong location if zeroth command argument is modified.

2010-03-10 Thread STINNER Victor

STINNER Victor  added the comment:

Twisted uses the following code (on UNIX-like OS):

def launchWithName(name):
if name and name != sys.argv[0]:
exe = os.path.realpath(sys.executable)
log.msg('Changing process name to ' + name)
os.execv(exe, [name, sys.argv[0], '--originalname'] + sys.argv[1:])

Twisted doesn't care if sys.executable is invalid when argv[0] has been 
changed. sys.executable is only used to change the process name (sys.executable 
is used before argv[0] is modified).

--

___
Python tracker 

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



[issue7774] sys.executable: wrong location if zeroth command argument is modified.

2010-03-10 Thread Florent Xicluna

Florent Xicluna  added the comment:

Actually there's 3 steps to fix this:
1) do not absolutize the sys.executable if it is empty (in Modules/getpath.c)
2) change sysconfig.py to deal with empty sys.executable (see this patch)
3) do a best effort to provide a valid sys.executable.
   It should be possible in most cases.

See message above for details on (3):
http://bugs.python.org/issue7774#msg98284

Patch attached for (2). (Fixes tests)

--
keywords: +patch
Added file: http://bugs.python.org/file16521/issue7774_sysconfig.diff

___
Python tracker 

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



[issue4376] Nested ctypes 'BigEndianStructure' fails

2010-03-10 Thread STINNER Victor

STINNER Victor  added the comment:

ping! This issue is still open.

--
nosy: +haypo

___
Python tracker 

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



[issue7424] segmentation fault in listextend during install

2010-03-10 Thread Jon Buller

Jon Buller  added the comment:

Sorry to not be able to follow up for so long, but I was moving 
cross-country.

I was playing with the tests a bit and ended up trying this:

$ ./python -E -tt -d -v -W all ./Lib/test/regrtest.py -l -v -s test_builtin

Which resulted (after quite a bit of output) in this:

# /usr/pkgsrc/lang/python26/work/Python-2.6.4/Lib/tempfile.pyc matches 
/usr/pkgsrc/lang/python26/work/Python-2.6.4/Lib/tempfile.py
import tempfile # precompiled from 
/usr/pkgsrc/lang/python26/work/Python-2.6.4/Lib/tempfile.pyc
dlopen("/usr/pkgsrc/lang/python26/work/Python-2.6.4/build/lib.netbsd-5.99.24-sparc-2.6/fcntl.so",
 
2);
import fcntl # dynamically loaded from 
/usr/pkgsrc/lang/python26/work/Python-2.6.4/build/lib.netbsd-5.99.24-sparc-2.6/fcntl.so
import thread # builtin
test_builtin
[1]   Segmentation fault  ./python -E -tt -d -v -W all 
./Lib/test/regrtest.py -l -v -s test_builtin

So, is this perhaps a bug either in Python's thread usage, or NetBSD's 
thread
library?  Is there an easy way to tell python to build without any threads,
even if configure finds the proper system include files and libraries?  Is
it as simple as "./configure --without-threads" when starting the build?
(I'm about to try that...)

Jon

--

___
Python tracker 

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



[issue8107] test_distutils fails on Windows in 2.6.5rc2

2010-03-10 Thread Tarek Ziadé

Tarek Ziadé  added the comment:

No that won't work because the test tries to find a module that is only in the 
source dir. So not existing on python installations. The simplest thing to do 
is to skip the test if srcdir cannot be found. 

I'll fix this asap

--

___
Python tracker 

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



[issue8107] test_distutils fails on Windows in 2.6.5rc2

2010-03-10 Thread Tarek Ziadé

Tarek Ziadé  added the comment:

Also, notice that srcdir can be broken on some platform. For instance, under 
Mac OS X Framework install:

>>> import distutils.sysconfig
>>> distutils.sysconfig.get_config_var('srcdir')
'/Volumes/Rivendell/Users/ronald/Projects/python/r264'

we get the path that was used by Ronald to compile the distribution :)

Working on it..

--

___
Python tracker 

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



[issue8107] test_distutils fails on Windows in 2.6.5rc2

2010-03-10 Thread Ned Deily

Ned Deily  added the comment:

It's not that "srcdir" is broken - that undoubtedly was the value of the source 
directory on the *build* machine.  The problem is that "srcdir", (and likely 
some other build related config variables) has no meaning other than on the 
*build* machine at the time of the build.  It (they) cannot in general be 
meaningfully used at execution time, particularly if the install takes place on 
a machine other than build machine.

--

___
Python tracker 

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



[issue8115] Pyojbc on Snow Leopard

2010-03-10 Thread Ronald Oussoren

Ronald Oussoren  added the comment:

This issue is off-topic for the python bugtracker.

But: to install pyobjc you need to do three things:

1) Download and install easy_install or distribute 
   (download from pypi.python.org)

2) Check that 'which easy_install' refers to a 
   file inside /Library/Frameworks/Python.framework

3) Run easy_install pyobjc==2.2

If that doesn't work: subscribe to the list at 
 and ask there.

--
resolution:  -> invalid
status: open -> closed

___
Python tracker 

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



[issue8107] test_distutils fails on Windows in 2.6.5rc2

2010-03-10 Thread Ronald Oussoren

Ronald Oussoren  added the comment:

IMHO stuffing xxmodule.c inside the distutils test tree (see msg100815) is the 
right solution because the python source tree might not be present during 
testing (such as when the user does a binary install and then runs the 
unittests to check if everything works).

Tarek: sysconfig.get_config_var('srcdir') returns the value of 'srcdir' in  
'Makefile' and that value is only valid during the build of Python. It is the 
variable that is used in Python's makefiles to refer to files in the source 
tree and is needed when you run configure from a directory that is not the root 
of the source tree.

--
nosy: +ronaldoussoren

___
Python tracker 

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



[issue7774] sys.executable: wrong location if zeroth command argument is modified.

2010-03-10 Thread Ronald Oussoren

Ronald Oussoren  added the comment:

This doesn't fail on OSX when using a framework build of Python because that 
uses a different way to find sys.prefix: in Python.framework the shared library 
with the interpreter (libpython.so on Linux) is always in a known location 
relative to sys.prefix.

--
nosy: +ronaldoussoren

___
Python tracker 

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



[issue8104] socket.recv_into doesn't support a memoryview as an argument

2010-03-10 Thread Georg Brandl

Changes by Georg Brandl :


--
assignee:  -> pitrou
nosy: +pitrou

___
Python tracker 

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



[issue8111] docs.python.org/download.html unhelpful.

2010-03-10 Thread Georg Brandl

Georg Brandl  added the comment:

Agreed.  I will have a more sane set of docs that are continually rebuilt vs. 
docs that are frozen in place for the next minor release that happens.

--

___
Python tracker 

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