Benjamin Huntsman
2013-Jan-04 01:04 UTC
[Samba] AIX: TypeError: unsupported operand type(s) for +: '_hashlib.HASH' and 'str'
Hi there! We're trying to compile Samba 4.0.0 on a fresh install of AIX 6.1 (6100-02-01-0847), with Python RPM's from perzl.org installed into /opt/freeware. We're also using XLC 12.1. Unfortunately, we can't even run ./configure, as we're getting errors from the waf system. Here's what we get: bash-4.2# pwd /admin/tst/build/samba-4.0.0 bash-4.2# ./configure --help Traceback (most recent call last): File "./buildtools/bin/waf", line 75, in <module> import Scripting File "/admin/tst/build/samba-4.0.0/buildtools/wafadmin/Scripting.py", line 9, in <module> import Utils, Configure, Build, Logs, Options, Environment, Task File "/admin/tst/build/samba-4.0.0/buildtools/wafadmin/Utils.py", line 134, in <module> from hashlib import md5 File "/opt/freeware/lib/python2.6/hashlib.py", line 117, in <module> exec funcName + ' = f' TypeError: unsupported operand type(s) for +: '_hashlib.HASH' and 'str' bash-4.2# Python was installed just for this purpose, but otherwise we don't deal with it much. I'd like to be able to build as many of the Samba 4.0 features as possible, so I don't want to revert to the old toolchain, but I'm under a deadline of ~1 week, so I'll try that next if I can't get the waf system to work. Anyone have any insight as to what we might be hanging up on? Many many thanks in advance!! -Ben
Andrew Bartlett
2013-Jan-04 04:50 UTC
[Samba] AIX: TypeError: unsupported operand type(s) for +: '_hashlib.HASH' and 'str'
On Fri, 2013-01-04 at 01:04 +0000, Benjamin Huntsman wrote:> Hi there! > We're trying to compile Samba 4.0.0 on a fresh install of AIX 6.1 (6100-02-01-0847), with Python RPM's from perzl.org installed into /opt/freeware. We're also using XLC 12.1. > > Unfortunately, we can't even run ./configure, as we're getting errors from the waf system. Here's what we get: > > bash-4.2# pwd > /admin/tst/build/samba-4.0.0 > bash-4.2# ./configure --help > Traceback (most recent call last): > File "./buildtools/bin/waf", line 75, in <module> > import Scripting > File "/admin/tst/build/samba-4.0.0/buildtools/wafadmin/Scripting.py", line 9, in <module> > import Utils, Configure, Build, Logs, Options, Environment, Task > File "/admin/tst/build/samba-4.0.0/buildtools/wafadmin/Utils.py", line 134, in <module> > from hashlib import md5 > File "/opt/freeware/lib/python2.6/hashlib.py", line 117, in <module> > exec funcName + ' = f' > TypeError: unsupported operand type(s) for +: '_hashlib.HASH' and 'str' > bash-4.2# > > Python was installed just for this purpose, but otherwise we don't deal with it much. I'd like to be able to build as many of the Samba 4.0 features as possible, so I don't want to revert to the old toolchain, but I'm under a deadline of ~1 week, so I'll try that next if I can't get the waf system to work. > Anyone have any insight as to what we might be hanging up on? > > Many many thanks in advance!!I think the next step is to change your python install to something as close to the upstream python as possible. We supply an 'install_with_python.sh' script which installs a (now old) but known working version, but you should also have reasonable luck with just the current python 2.7 http://python.org/download/releases/2.7.3/ Andrew Bartlett -- Andrew Bartlett http://samba.org/~abartlet/ Authentication Developer, Samba Team http://samba.org
Benjamin Huntsman
2013-Jan-06 23:20 UTC
[Samba] AIX: TypeError: unsupported operand type(s) for +: '_hashlib.HASH' and 'str'
>I had to build a python 2.7.3 on AIX to get the waf scripts working - the >Version from Perzl has a bug... >HowardI've been killing myself trying to get the "reccomended" Python 2.6.5 from the install_with_python.sh script to work. Even rebuilt the AIX build system with minimal packages only and nothing from perzl. Still no-go. Anyone manage to get Python 2.6.5 to build on AIX with XLC, and if so, what configure options did you use? If it pukes this one last time, I think I'll give up and try 2.7.3 like you suggest. What options did you use to build that? Were you using XLC or GCC? Thanks! -Ben
Benjamin Huntsman
2013-Jan-07 01:09 UTC
[Samba] AIX: TypeError: unsupported operand type(s) for +: '_hashlib.HASH' and 'str'
>If it pukes this one last time, I think I'll give up and try 2.7.3 like you suggest.2.6.5 failed. I'm building Samba into /opt/samba-4.0.0. I built a private copy of 2.7.3 into /opt/samba-4.0.0/python using only the options specified in install_with_python.sh. Worked no prob. Thanks! -Ben