Thanks for the hint but it isn't changing the errors that I am seeing. Also,
the line sys.path.insert("/usr/local/samba/lib/python2.7/site-packages") causes
an error in Python. I had to change it to either
sys.path.append("/usr/local/samba/lib/python2.7/site-packages") or
sys.path.insert(1,"/usr/local/samba/lib/python2.7/site-packages") Anyone else
have thoughts? Thanks!
Date: Sat, 10 Dec 2011 15:01:12 +0200
From: [email protected]
To: [email protected]
Subject: Re: [SOGo] Unable to run samb-tool without errors -- SOGo v2.0 Beta 3
I had the same problem and I solved it...
In samba-tool script there is a line in the code, which reads:
sys.path.insert("python").
Underneath that put this:
sys.path.insert("/usr/local/samba/lib/python2.7/site-packages")
Likewise, in file openchange_newuser (for adding openchange user), there is:
sys.path.append("python")
so, you will have to add underneath it
sys.path.append("/usr/local/samba/lib/python2.7/site-packages").
Hope it works for you as it did for me.
On Sat, Dec 10, 2011 at 1:37 PM, Doug Campbell <[email protected]>
wrote:
Following the instructions in the SOGo Native Microsoft Outlook Configuration
for v2.0 Beta 3 on a Fedora 15 machine, I get all the way through the process
until the section "Adding Users".
At this point when I enter:
cd ~/openchange/sogo/samba4
sudo ./bin/samba-tool domain passwordsettings set --complexity=off
I receive the following error:
Traceback (most recent call last):
File "./bin/samba-tool", line 30, in <module>
from samba.netcmd.domain import cmd_domain
File "bin/python/samba/netcmd/domain.py", line 44, in <module>
from samba.samba3 import Samba3
File "bin/python/samba/samba3/__init__.py", line 29, in <module>
import passdb
ImportError: /usr/local/samba/lib/ldb/libccan.so.0: version
`SAMBA_4.0.0ALPHA17' not found (required by
/usr/local/samba/lib/libsmbconf.so.0)
I then tried based on what another user wrote:
sudo PYTHONPATH=../python ./bin/samba-tool domain passwordsettings set
--complexity=off
and received the following error:
Traceback (most recent call last):
File "./bin/samba-tool", line 26, in <module>
from samba import netcmd
File "bin/python/samba/__init__.py", line 29, in <module>
import samba.param
ImportError: No module named talloc
Then I did the following based on some more research:
yum install pytalloc
and run again:
sudo PYTHONPATH=../python ./bin/samba-tool domain passwordsettings set
--complexity=off
and still get this:
Traceback (most recent call last):
File "./bin/samba-tool", line 26, in <module>
from samba import netcmd
File "bin/python/samba/__init__.py", line 49, in <module>
import ldb
ImportError: No module named ldb
Then I try (since I have no clue as to why this isn't working):
yum install pyldb
and run again:
sudo PYTHONPATH=../python ./bin/samba-tool domain passwordsettings set
--complexity=off
and the result now is this:
Traceback (most recent call last):
File "./bin/samba-tool", line 26, in <module>
from samba import netcmd
File "bin/python/samba/__init__.py", line 49, in <module>
import ldb
ImportError: /usr/local/samba/lib/libpyldb-util.so.1: version
`PYLDB_UTIL_1.0.0' not found (required by
/usr/lib/python2.7/site-packages/ldb.so)
Some other info that may be helpful:
[root@localhost samba4]# ldconfig -p | grep "libpyldb"
libpyldb-util.so.1 (libc6) => /usr/local/samba/lib/libpyldb-util.so.1
libpyldb-util.so.1 (libc6) => /usr/lib/libpyldb-util.so.1
libpyldb-util.so (libc6) => /usr/local/samba/lib/libpyldb-util.so
And:
[root@localhost samba4]# nm /usr/lib/libpyldb-util.so.1
nm: /usr/lib/libpyldb-util.so.1: no symbols
[root@localhost samba4]# nm /usr/local/samba/lib/libpyldb-util.so.1 | grep
"PYLDB_UTIL"
00000000 A PYLDB_UTIL_1.1.2
Obviously, I am doing something wrong but what is wrong isn't obvious to me.
Would appreciate any help.
Thanks!
--
[email protected]
https://inverse.ca/sogo/lists