[issue10782] Not possible to cross-compile due to poor detection of %lld support in printf

2012-10-29 Thread Ben Gamari

Changes by Ben Gamari bgam...@gmail.com:


--
status: open - languishing

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



[issue16360] argparse: comma in metavar causes assertion failure when formatting long usage message

2012-10-29 Thread Ben Gamari

New submission from Ben Gamari:

argparse suffers from a failing assertion when formatting a long usage message 
with an option whose metavar contains a comma. This can be seen in the attached 
testcase, which fails with,

Traceback (most recent call last):
  File /home/ben/hi.py, line 24, in module
args = parser.parse_args()
  File /usr/lib/python2.7/argparse.py, line 1688, in parse_args
args, argv = self.parse_known_args(args, namespace)
  File /usr/lib/python2.7/argparse.py, line 1720, in parse_known_args
namespace, args = self._parse_known_args(args, namespace)
  File /usr/lib/python2.7/argparse.py, line 1937, in _parse_known_args
self.error(_('too few arguments'))
  File /usr/lib/python2.7/argparse.py, line 2360, in error
self.print_usage(_sys.stderr)
  File /usr/lib/python2.7/argparse.py, line 2322, in print_usage
self._print_message(self.format_usage(), file)
  File /usr/lib/python2.7/argparse.py, line 2278, in format_usage
return formatter.format_help()
  File /usr/lib/python2.7/argparse.py, line 279, in format_help
help = self._root_section.format_help()
  File /usr/lib/python2.7/argparse.py, line 209, in format_help
func(*args)
  File /usr/lib/python2.7/argparse.py, line 330, in _format_usage
assert ' '.join(opt_parts) == opt_usage
AssertionError

This failure is apparently due to a regular expression used to wrap  the usage 
message. The solution to this is unclear, but it seems to me using a regular 
expression here is a hack at best.

--
components: Library (Lib)
files: hi.py
messages: 174130
nosy: bgamari
priority: normal
severity: normal
status: open
title: argparse: comma in metavar causes assertion failure when formatting long 
usage message
type: crash
versions: Python 2.7
Added file: http://bugs.python.org/file27778/hi.py

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



[issue13055] Distutils tries to handle null versions but fails

2011-10-10 Thread Ben Gamari

Ben Gamari bgam...@gmail.com added the comment:

Sorry, no log is available.

--

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



[issue13055] Distutils tries to handle null versions but fails

2011-10-09 Thread Ben Gamari

Ben Gamari bgam...@gmail.com added the comment:

The bug was encountered while trying to install a package. As it turns out, a 
dependency was incorrectly installed, resulting in a null version being passed 
around which quickly caused a crash in setup.py. While this is definitely not a 
normal circumstance, the fact that this bug existed made finding the issue 
substantially more time consuming. If the constructor of the LooseVersion can 
accept None, then so should its other members.

--

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



[issue13055] Distutils tries to handle null versions but fails

2011-09-28 Thread Ben Gamari

New submission from Ben Gamari bgam...@gmail.com:

The distutils.LooseVersion constructor currently only calls parse if vstring 
has a value. Unfortunately, this means that a user passing in vstring= or 
vstring=None gets a version object with self.vstring and self.version unset. 
This wreaks havoc later when the user tries to do anything with their object. 
I've attached two possible solutions.

The first attempts to fix the issue by raising an exception when an invalid 
vstring is given. This seems like the most reasonable treatment of this case as 
there is no reasonable way to fully initialize the object. The second works 
around the issue, initializing the uninitialized fields with  in the event of 
an invalid vstring.

--
files: distutils-fix.patch
keywords: patch
messages: 144575
nosy: bgamari
priority: normal
severity: normal
status: open
title: Distutils tries to handle null versions but fails
Added file: http://bugs.python.org/file23252/distutils-fix.patch

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



[issue13055] Distutils tries to handle null versions but fails

2011-09-28 Thread Ben Gamari

Changes by Ben Gamari bgam...@gmail.com:


Added file: http://bugs.python.org/file23253/distutils-workaround.patch

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



[issue13055] Distutils tries to handle null versions but fails

2011-09-28 Thread Ben Gamari

Changes by Ben Gamari bgam...@gmail.com:


--
assignee:  - tarek
components: +Distutils
nosy: +eric.araujo, tarek
type:  - crash
versions: +Python 2.7

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



[issue3244] multipart/form-data encoding

2011-02-15 Thread Ben Gamari

Ben Gamari bgam...@gmail.com added the comment:

Has there been any progress here?

--
nosy: +bgamari

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



[issue10782] Not possible to cross-compile due to poor detection of %lld support in printf

2011-01-01 Thread Ben Gamari

Ben Gamari bgam...@gmail.com added the comment:

Well, I'm not convinced that overriding config.cache is the best solution, but 
I am not really sure what else can be done. So far I've just been carrying a 
patch which changes configure.in, but this is clearly an awful hack.

--

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



[issue10782] Not possible to cross-compile due to poor detection of %lld support in printf

2010-12-27 Thread Ben Gamari

New submission from Ben Gamari bgam...@gmail.com:

Configure.in assumes that %lld is not supported by printf if cross-compiling. 
This causes build errors in pyport.h,

In file included from Include/Python.h:58:0,
 from Parser/parser.c:8:
Include/pyport.h:243:13: error: #error This platform's pyconfig.h needs to 
define PY_FORMAT_LONG_LONG
...

What is one supposed to do about this short of changing the configure script to 
assume support by default.

--
components: Build
messages: 124722
nosy: bgamari
priority: normal
severity: normal
status: open
title: Not possible to cross-compile due to poor detection of %lld support in 
printf
type: compile error
versions: Python 2.7

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



[issue10345] fcntl.ioctl always fails claiming an invalid fd

2010-11-06 Thread Ben Gamari

New submission from Ben Gamari bgam...@gmail.com:

Even the simple example included below fails in the following manner,

$ sudo python3.1 hi.py 
class 'int' 3
Traceback (most recent call last):
  File hi.py, line 13, in module
ioctl(a, EVIOCGID, buf, True)
TypeError: ioctl requires a file or file descriptor, an integer and optionally 
an integer or buffer argument

As the debugging output demonstrates, the fileno() is in fact a valid fd.


#!/usr/bin/python
from fcntl import ioctl
EVIOCGID = 1
f = open('/dev/input/mouse0', 'w')
buf = bytes([0]*128)
a = (f.fileno(),)
print(a.__class__, a)
ioctl(a, EVIOCGID, buf, True)
print(buf)

--
components: Extension Modules
messages: 120657
nosy: bgamari
priority: normal
severity: normal
status: open
title: fcntl.ioctl always fails claiming an invalid fd
versions: Python 3.1

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



[issue10345] fcntl.ioctl always fails claiming an invalid fd

2010-11-06 Thread Ben Gamari

Changes by Ben Gamari bgam...@gmail.com:


--
type:  - behavior

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



[issue10345] fcntl.ioctl always fails claiming an invalid fd

2010-11-06 Thread Ben Gamari

Ben Gamari bgam...@gmail.com added the comment:

The problem seems to have been that I tried passing mutate_flag. Things seem to 
work fine when the last parameter is omitted.

--

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



[issue1368247] unicode in email.MIMEText and email/Charset.py

2009-05-05 Thread Ben Gamari

Ben Gamari bgam...@gmail.com added the comment:

What is the status of this?

--
nosy: +bgamari

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



[issue4487] Add utf8 alias for email charsets

2009-05-05 Thread Ben Gamari

Ben Gamari bgam...@gmail.com added the comment:

Has this patch been merged yet?

--
nosy: +bgamari

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



[issue1555842] email package and Unicode strings handling

2009-05-01 Thread Ben Gamari

Changes by Ben Gamari bgam...@gmail.com:


--
nosy: +bgamari

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



[issue1685453] email package should work better with unicode

2009-05-01 Thread Ben Gamari

Changes by Ben Gamari bgam...@gmail.com:


--
nosy: +bgamari

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