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.
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
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.
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.