Google Groepen ondersteunt geen nieuwe Usenet-berichten of -abonnementen meer. Historische content blijft zichtbaar.

Bug#389868: ntlmaps breaks whith python2.4

10 weergaven
Naar het eerste ongelezen bericht

Carlos Galisteo de Cabo

ongelezen,
28 sep 2006, 04:00:1328-09-2006
aan
Package: ntlmaps
Version: 0.9.9.0.1-3
Severity: important


ntlmpaps breaks with python2.4 due to the missing attribute 'read_config' on module 'config'.

---

$python2.4 /usr/share/ntlmaps/main.py -c -c /etc/ntlmaps/server.cfg
Traceback (most recent call last):
File "/usr/share/ntlmaps/main.py", line 31, in ?
conf =
config.read_config(config.findConfigFileNameInArgv(sys.argv,
__init__.ntlmaps_dir+'/'))
AttributeError: 'module' object has no attribute 'read_config'

---

$python2.3 /usr/share/ntlmaps/main.py -c /etc/ntlmaps/server.cfg
NTLM authorization Proxy Server v0.9.9.0.1
Copyright (C) 2001-2004 by Dmitry Rozmanov and others.
Now listening at ig0933 on port 5865

Regards.

-- System Information:
Debian Release: testing/unstable
APT prefers unstable
APT policy: (800, 'unstable'), (700, 'experimental')
Architecture: i386 (i686)
Shell: /bin/sh linked to /bin/bash
Kernel: Linux 2.6.17-1-686
Locale: LANG=es_ES@euro, LC_CTYPE=es_ES@euro (charmap=ISO-8859-15)

Versions of packages ntlmaps depends on:
ii debconf [debconf-2.0] 1.5.5 Debian configuration management sy
ii python 2.4.3-11 An interactive high-level object-o
ii python-support 0.5.2 automated rebuilding support for p

ntlmaps recommends no packages.

David Watson

ongelezen,
28 sep 2006, 04:50:1428-09-2006
aan
On Thursday 28 September 2006 08:44, Carlos Galisteo de Cabo wrote:
> Package: ntlmaps
> Version: 0.9.9.0.1-3
> Severity: important
>
>
> ntlmpaps breaks with python2.4 due to the missing attribute 'read_config'
> on module 'config'.
>
> ---
>
> $python2.4 /usr/share/ntlmaps/main.py -c -c /etc/ntlmaps/server.cfg
> Traceback (most recent call last):
> File "/usr/share/ntlmaps/main.py", line 31, in ?
> conf =
> config.read_config(config.findConfigFileNameInArgv(sys.argv,
> __init__.ntlmaps_dir+'/'))
> AttributeError: 'module' object has no attribute 'read_config'
>
> ---
>
> $python2.3 /usr/share/ntlmaps/main.py -c /etc/ntlmaps/server.cfg
> NTLM authorization Proxy Server v0.9.9.0.1
> Copyright (C) 2001-2004 by Dmitry Rozmanov and others.
> Now listening at ig0933 on port 5865
>
> Regards.

I have just tried this on my laptop, and it works fine using both python 2.3
and 2.4. Can you confirm that you don't have any other python modules called
config that are being imported.

And can you check that you only used one '-c' in the python2.4 command.

I can try this later on another computer when I get home.

Thanks.

--
David Watson
Lugmaster, Programmer, Bass Player

http://planetwatson.co.uk/blog
http://liverpool.lug.org.uk

IM(jabber): dwa...@planetwatson.co.uk

David Watson

ongelezen,
28 sep 2006, 06:50:1028-09-2006
aan
On Thursday 28 September 2006 11:22, Carlos Galisteo de Cabo wrote:
> On Thu, 28 Sep 2006 09:23:11 +0100, David Watson <da...@planetwatson.co.uk>
wrote:

> > Can you confirm that you don't have any other python modules
> > called
> > config that are being imported.
>
> Now that you mentioned it...it seems that python2.4 imports
> /usr/lib/python2.4/site-packages/config.py [1] instead of
> /usr/share/ntlmaps/lib/config.py.
>
> I was wrongly thinking that 'config' was a built-in module with changes
> between python versions or something, but it turns out to be just a "very
> popular" module name (22 different config.py in my box).
>
> Renaming /usr/lib/python2.4/site-packages/config.py did it. ntlmaps works
> with python2.4 now :)
>
> Admitting my mistake... Shouldn't we be more careful with too much generic
> modules names?

We probably should, but this is how upstream have named the module.

> > And can you check that you only used one '-c' in the python2.4 command.
>

> That was just a copy&paste issue. The command was launched with a single
> '-c'. Sorry.
>
> Thanks.
>
> [1]http://www.red-dove.com/python_config.html

No problem, thanks for taking the time to resolve this. I'll close this bug
now.

Carlos Galisteo de Cabo

ongelezen,
28 sep 2006, 06:50:1228-09-2006
aan

On Thu, 28 Sep 2006 09:23:11 +0100, David Watson <da...@planetwatson.co.uk> wrote:

> Can you confirm that you don't have any other python modules
> called
> config that are being imported.

Now that you mentioned it...it seems that python2.4 imports /usr/lib/python2.4/site-packages/config.py [1] instead of /usr/share/ntlmaps/lib/config.py.

I was wrongly thinking that 'config' was a built-in module with changes between python versions or something, but it turns out to be just a "very popular" module name (22 different config.py in my box).

Renaming /usr/lib/python2.4/site-packages/config.py did it. ntlmaps works with python2.4 now :)

Admitting my mistake... Shouldn't we be more careful with too much generic modules names?

> And can you check that you only used one '-c' in the python2.4 command.

That was just a copy&paste issue. The command was launched with a single '-c'. Sorry.

Thanks.

[1]http://www.red-dove.com/python_config.html

0 nieuwe berichten