Re: [SOGo] Sogo 2.0 nightly build : ImportError: No module named samba for Provision command

2012-09-26 Thread Devinder Singh

Thanks Jean,

Command : which python
Result:  /usr/local/bin/python

Command : python -V
Result:Python 2.7

Command : echo -e 'import sys\nprint sys.path' | python
Result:
['', '/usr/local/lib/python27.zip', '/usr/local/lib/python2.7', 
'/usr/local/lib/python2.7/plat-linux2', 
'/usr/local/lib/python2.7/lib-tk', '/usr/local/lib/python2.7/lib-old', 
'/usr/local/lib/python2.7/lib-dynload', 
'/usr/local/lib/python2.7/site-packages']


However,  The issue seems to be for the below problem.  Kindly note the 
sitepackage libraries for python 2.6 version whereas 2.7 is the one 
installed.


Command :  rpm -ql samba4 | grep samba/__init__.py
Result:
/usr/lib/python2.6/site-packages/samba/__init__.py
/usr/lib/python2.6/site-packages/samba/__init__.pyc
/usr/lib/python2.6/site-packages/samba/__init__.pyo

Also PYTHONPATH is null.  Kindly guide what is the proper value to be 
set, since found different variations when googled.


Kindly guide.

Thanks  Regards,
Devinder Singh Birdi

On 9/25/2012 6:22 PM, Jean Raby wrote:

On 12-09-25 3:47 AM, Devinder Singh wrote:

Hi Jean,

I followed the below activities but yet receive the same error

1. Removed samba4-libs and reinstalled samba4-4.0.0beta5-3.el6.1.i686
Result - Their was no change and received same error
2. Removed all samba packages fetch by  rpm -qa | grep samba  and
reinstalled samba4-4.0.0beta5-3.el6.1.i686
Result - Their was no change in received same error

Any help ?


Hmm, looks like python doesn't find the samba module for some reason.
Can you show the output of 'rpm -ql samba4 | grep samba/__init__.py' ?
What is the content the for PYTHONPATH env variable?

Could you run the following commands and send the full output?
  which python; python -V; echo -e 'import sys\nprint sys.path' | python

Thanks.


Thanks  Regards,
Devinder Singh Birdi

On 9/24/2012 8:09 PM, Jean Raby wrote:

On 12-09-24 10:04 AM, Devinder Singh wrote:

Hi Jean,

Below is the output of  rpm -qa | grep samba 

samba-client-3.5.10-125.el6.i686
samba4-libs-4.0.0-23.alpha11.el6.i686
samba-common-3.5.10-125.el6.i686
samba-winbind-clients-3.5.10-125.el6.i686
samba4-4.0.0beta5-3.el6.1.i686


Can you try removing samba4-libs? (and reinstalling samba4)

I just tested again on el6 and it works fine here, so there might be
an issue/conflict with the packages installed on your machine.




Thanks Regards,
Devinder Singh Birdi

On 9/24/2012 6:58 PM, Jean Raby wrote:

On 12-09-24 8:24 AM, Devinder Singh wrote:

Thanks Sebastien,

Provision script is available in /usr/sbin/ and thats where I ran 
the

command.

I did not find the Provision script in /usr/share/samba/setup.

However, I copied provision script from /usr/sbin/ to
/usr/share/samba/setup and ran the command.

Yet got the same error

[root@linux sbin]# cd /usr/share/samba/setup/
[root@linux setup]# ./provision --realm=example.com
--domain=OPENCHANGE
--adminpass='%1OpenChange' --server-role='domain controller'
Traceback (most recent call last):
File ./provision, line 33, in module
import samba
ImportError: No module named samba


On which distribution do you see this error?
Depending on the distro in use, can you show the output of 'dpkg -l |
grep samba' or 'rpm -qa | grep samba' ?

Thanks.


Kindly guide.


Thanks Regards,
Devinder Singh Birdi

On 9/21/2012 8:29 PM, Sébastien Blin wrote:


Le 21/09/2012 16:41, Devinder Singh a écrit :

Hi All,

I am facing the below issue when I run the command as per the
instructions given in the SOGo Native Microsoft Outlook
Configuration 2.0.

provision --realm=example.com --domain=OPENCHANGE
--adminpass='%1OpenChange' --server-role='domain controller'
Traceback (most recent call last):
File /usr/sbin/provision, line 33, in module
import samba
*ImportError: No module named samba*


In SOGo instruction, it's write this :

The provision script might be located in /usr/share/samba/setup

Test it :

cd /usr/share/samba/setup

./provision --realm=example.com --domain=OPENCHANGE
--adminpass='%1OpenChange' --server-role='domain controller'




Below command returns nothing. Is their any problem in Samba
installation ?

[root@linux opt]# /etc/init.d/samba4 start
[root@linux opt]#


Samba4 is installed as per the guidelines provided. Installed the
samba using rpm --replacefiles command since their was conflict 
with

older versions of the libs.

Kindly guide.

















--
users@sogo.nu
https://inverse.ca/sogo/lists

Re: [SOGo] Sogo 2.0 nightly build : ImportError: No module named samba for Provision command

2012-09-26 Thread Devinder Singh

Hi Jean,

Well I was able to execute by adding below PYTHONPATH line in the 
bashprofile.


PYTHONPATH=$PYTHONPATH:/usr/local/bin/python2.7:/usr/lib/python2.7/site-packages/:/usr/lib/python2.6/site-packages/:/usr/lib/python2.6/site-packages/samba

Maybe we should add this as well into the Guidelines.

Thanks  Regards,
Devinder Singh Birdi

On 9/26/2012 12:50 PM, Devinder Singh wrote:

Thanks Jean,

Command : which python
Result:  /usr/local/bin/python

Command : python -V
Result:Python 2.7

Command : echo -e 'import sys\nprint sys.path' | python
Result:
['', '/usr/local/lib/python27.zip', '/usr/local/lib/python2.7', 
'/usr/local/lib/python2.7/plat-linux2', 
'/usr/local/lib/python2.7/lib-tk', '/usr/local/lib/python2.7/lib-old', 
'/usr/local/lib/python2.7/lib-dynload', 
'/usr/local/lib/python2.7/site-packages']


However,  The issue seems to be for the below problem.  Kindly note 
the sitepackage libraries for python 2.6 version whereas 2.7 is the 
one installed.


Command :  rpm -ql samba4 | grep samba/__init__.py
Result:
/usr/lib/python2.6/site-packages/samba/__init__.py
/usr/lib/python2.6/site-packages/samba/__init__.pyc
/usr/lib/python2.6/site-packages/samba/__init__.pyo

Also PYTHONPATH is null.  Kindly guide what is the proper value to be 
set, since found different variations when googled.


Kindly guide.
Thanks  Regards,
Devinder Singh Birdi
On 9/25/2012 6:22 PM, Jean Raby wrote:

On 12-09-25 3:47 AM, Devinder Singh wrote:

Hi Jean,

I followed the below activities but yet receive the same error

1. Removed samba4-libs and reinstalled samba4-4.0.0beta5-3.el6.1.i686
Result - Their was no change and received same error
2. Removed all samba packages fetch by  rpm -qa | grep samba  and
reinstalled samba4-4.0.0beta5-3.el6.1.i686
Result - Their was no change in received same error

Any help ?


Hmm, looks like python doesn't find the samba module for some reason.
Can you show the output of 'rpm -ql samba4 | grep samba/__init__.py' ?
What is the content the for PYTHONPATH env variable?

Could you run the following commands and send the full output?
  which python; python -V; echo -e 'import sys\nprint sys.path' | python

Thanks.


Thanks  Regards,
Devinder Singh Birdi

On 9/24/2012 8:09 PM, Jean Raby wrote:

On 12-09-24 10:04 AM, Devinder Singh wrote:

Hi Jean,

Below is the output of  rpm -qa | grep samba 

samba-client-3.5.10-125.el6.i686
samba4-libs-4.0.0-23.alpha11.el6.i686
samba-common-3.5.10-125.el6.i686
samba-winbind-clients-3.5.10-125.el6.i686
samba4-4.0.0beta5-3.el6.1.i686


Can you try removing samba4-libs? (and reinstalling samba4)

I just tested again on el6 and it works fine here, so there might be
an issue/conflict with the packages installed on your machine.




Thanks Regards,
Devinder Singh Birdi

On 9/24/2012 6:58 PM, Jean Raby wrote:

On 12-09-24 8:24 AM, Devinder Singh wrote:

Thanks Sebastien,

Provision script is available in /usr/sbin/ and thats where I 
ran the

command.

I did not find the Provision script in /usr/share/samba/setup.

However, I copied provision script from /usr/sbin/ to
/usr/share/samba/setup and ran the command.

Yet got the same error

[root@linux sbin]# cd /usr/share/samba/setup/
[root@linux setup]# ./provision --realm=example.com
--domain=OPENCHANGE
--adminpass='%1OpenChange' --server-role='domain controller'
Traceback (most recent call last):
File ./provision, line 33, in module
import samba
ImportError: No module named samba


On which distribution do you see this error?
Depending on the distro in use, can you show the output of 'dpkg 
-l |

grep samba' or 'rpm -qa | grep samba' ?

Thanks.


Kindly guide.


Thanks Regards,
Devinder Singh Birdi

On 9/21/2012 8:29 PM, Sébastien Blin wrote:


Le 21/09/2012 16:41, Devinder Singh a écrit :

Hi All,

I am facing the below issue when I run the command as per the
instructions given in the SOGo Native Microsoft Outlook
Configuration 2.0.

provision --realm=example.com --domain=OPENCHANGE
--adminpass='%1OpenChange' --server-role='domain controller'
Traceback (most recent call last):
File /usr/sbin/provision, line 33, in module
import samba
*ImportError: No module named samba*


In SOGo instruction, it's write this :

The provision script might be located in /usr/share/samba/setup

Test it :

cd /usr/share/samba/setup

./provision --realm=example.com --domain=OPENCHANGE
--adminpass='%1OpenChange' --server-role='domain controller'




Below command returns nothing. Is their any problem in Samba
installation ?

[root@linux opt]# /etc/init.d/samba4 start
[root@linux opt]#


Samba4 is installed as per the guidelines provided. Installed the
samba using rpm --replacefiles command since their was 
conflict with

older versions of the libs.

Kindly guide.



















--
users@sogo.nu
https://inverse.ca/sogo/lists

Re: [SOGo] Sogo 2.0 nightly build : ImportError: No module named samba for Provision command

2012-09-26 Thread Jean Raby

On 12-09-26 3:20 AM, Devinder Singh wrote:

Thanks Jean,

Command : which python
Result: /usr/local/bin/python

This is wrong, well, not wrong, but it is not the system python,
so that's why it was not finding the samba modules.

Use /usr/bin/python /usr/sbin/provision ...
that should work correctly.



Command : python -V
Result: Python 2.7

Command : echo -e 'import sys\nprint sys.path' | python
Result:
['', '/usr/local/lib/python27.zip', '/usr/local/lib/python2.7',
'/usr/local/lib/python2.7/plat-linux2',
'/usr/local/lib/python2.7/lib-tk', '/usr/local/lib/python2.7/lib-old',
'/usr/local/lib/python2.7/lib-dynload',
'/usr/local/lib/python2.7/site-packages']

However, The issue seems to be for the below problem. Kindly note the
sitepackage libraries for python 2.6 version whereas 2.7 is the one
installed.

Command : rpm -ql samba4 | grep samba/__init__.py
Result:
/usr/lib/python2.6/site-packages/samba/__init__.py
/usr/lib/python2.6/site-packages/samba/__init__.pyc
/usr/lib/python2.6/site-packages/samba/__init__.pyo

Also PYTHONPATH is null. Kindly guide what is the proper value to be
set, since found different variations when googled.

Kindly guide.

Thanks  Regards,
Devinder Singh Birdi

On 9/25/2012 6:22 PM, Jean Raby wrote:

On 12-09-25 3:47 AM, Devinder Singh wrote:

Hi Jean,

I followed the below activities but yet receive the same error

1. Removed samba4-libs and reinstalled samba4-4.0.0beta5-3.el6.1.i686
Result - Their was no change and received same error
2. Removed all samba packages fetch by  rpm -qa | grep samba  and
reinstalled samba4-4.0.0beta5-3.el6.1.i686
Result - Their was no change in received same error

Any help ?


Hmm, looks like python doesn't find the samba module for some reason.
Can you show the output of 'rpm -ql samba4 | grep samba/__init__.py' ?
What is the content the for PYTHONPATH env variable?

Could you run the following commands and send the full output?
which python; python -V; echo -e 'import sys\nprint sys.path' | python

Thanks.


Thanks Regards,
Devinder Singh Birdi

On 9/24/2012 8:09 PM, Jean Raby wrote:

On 12-09-24 10:04 AM, Devinder Singh wrote:

Hi Jean,

Below is the output of  rpm -qa | grep samba 

samba-client-3.5.10-125.el6.i686
samba4-libs-4.0.0-23.alpha11.el6.i686
samba-common-3.5.10-125.el6.i686
samba-winbind-clients-3.5.10-125.el6.i686
samba4-4.0.0beta5-3.el6.1.i686


Can you try removing samba4-libs? (and reinstalling samba4)

I just tested again on el6 and it works fine here, so there might be
an issue/conflict with the packages installed on your machine.




Thanks Regards,
Devinder Singh Birdi

On 9/24/2012 6:58 PM, Jean Raby wrote:

On 12-09-24 8:24 AM, Devinder Singh wrote:

Thanks Sebastien,

Provision script is available in /usr/sbin/ and thats where I ran
the
command.

I did not find the Provision script in /usr/share/samba/setup.

However, I copied provision script from /usr/sbin/ to
/usr/share/samba/setup and ran the command.

Yet got the same error

[root@linux sbin]# cd /usr/share/samba/setup/
[root@linux setup]# ./provision --realm=example.com
--domain=OPENCHANGE
--adminpass='%1OpenChange' --server-role='domain controller'
Traceback (most recent call last):
File ./provision, line 33, in module
import samba
ImportError: No module named samba


On which distribution do you see this error?
Depending on the distro in use, can you show the output of 'dpkg -l |
grep samba' or 'rpm -qa | grep samba' ?

Thanks.


Kindly guide.


Thanks Regards,
Devinder Singh Birdi

On 9/21/2012 8:29 PM, Sébastien Blin wrote:


Le 21/09/2012 16:41, Devinder Singh a écrit :

Hi All,

I am facing the below issue when I run the command as per the
instructions given in the SOGo Native Microsoft Outlook
Configuration 2.0.

provision --realm=example.com --domain=OPENCHANGE
--adminpass='%1OpenChange' --server-role='domain controller'
Traceback (most recent call last):
File /usr/sbin/provision, line 33, in module
import samba
*ImportError: No module named samba*


In SOGo instruction, it's write this :

The provision script might be located in /usr/share/samba/setup

Test it :

cd /usr/share/samba/setup

./provision --realm=example.com --domain=OPENCHANGE
--adminpass='%1OpenChange' --server-role='domain controller'




Below command returns nothing. Is their any problem in Samba
installation ?

[root@linux opt]# /etc/init.d/samba4 start
[root@linux opt]#


Samba4 is installed as per the guidelines provided. Installed the
samba using rpm --replacefiles command since their was conflict
with
older versions of the libs.

Kindly guide.




















--
Jean Raby
jr...@inverse.ca  ::  +1.514.447.4918 (x120) ::  www.inverse.ca
Inverse inc. :: Leaders behind SOGo (www.sogo.nu) and PacketFence 
(www.packetfence.org)

--
users@sogo.nu
https://inverse.ca/sogo/lists


Re: [SOGo] Sogo 2.0 nightly build : ImportError: No module named samba for Provision command

2012-09-25 Thread Devinder Singh

Hi Jean,

I followed the below activities but yet receive the same error

1. Removed samba4-libs and reinstalled samba4-4.0.0beta5-3.el6.1.i686
Result   -Their was no change and received same error
2. Removed all samba packages fetch by   rpm -qa | grep samba  and 
reinstalled samba4-4.0.0beta5-3.el6.1.i686

Result-Their was no change in received same error

Any help ?

Thanks  Regards,
Devinder Singh Birdi

On 9/24/2012 8:09 PM, Jean Raby wrote:

On 12-09-24 10:04 AM, Devinder Singh wrote:

Hi Jean,

Below is the output of  rpm -qa | grep samba 

samba-client-3.5.10-125.el6.i686
samba4-libs-4.0.0-23.alpha11.el6.i686
samba-common-3.5.10-125.el6.i686
samba-winbind-clients-3.5.10-125.el6.i686
samba4-4.0.0beta5-3.el6.1.i686


Can you try removing samba4-libs? (and reinstalling samba4)

I just tested again on el6 and it works fine here, so there might be 
an issue/conflict with the packages installed on your machine.





Thanks  Regards,
Devinder Singh Birdi

On 9/24/2012 6:58 PM, Jean Raby wrote:

On 12-09-24 8:24 AM, Devinder Singh wrote:

Thanks Sebastien,

Provision script is available in /usr/sbin/ and thats where I ran the
command.

I did not find the Provision script in /usr/share/samba/setup.

However, I copied provision script from /usr/sbin/ to
/usr/share/samba/setup and ran the command.

Yet got the same error

[root@linux sbin]# cd /usr/share/samba/setup/
[root@linux setup]# ./provision --realm=example.com 
--domain=OPENCHANGE

--adminpass='%1OpenChange' --server-role='domain controller'
Traceback (most recent call last):
File ./provision, line 33, in module
import samba
ImportError: No module named samba


On which distribution do you see this error?
Depending on the distro in use, can you show the output of 'dpkg -l |
grep samba' or 'rpm -qa | grep samba' ?

Thanks.


Kindly guide.


Thanks Regards,
Devinder Singh Birdi

On 9/21/2012 8:29 PM, Sébastien Blin wrote:


Le 21/09/2012 16:41, Devinder Singh a écrit :

Hi All,

I am facing the below issue when I run the command as per the
instructions given in the SOGo Native Microsoft Outlook
Configuration 2.0.

provision --realm=example.com --domain=OPENCHANGE
--adminpass='%1OpenChange' --server-role='domain controller'
Traceback (most recent call last):
File /usr/sbin/provision, line 33, in module
import samba
*ImportError: No module named samba*


In SOGo instruction, it's write this :

The provision script might be located in /usr/share/samba/setup

Test it :

cd /usr/share/samba/setup

./provision --realm=example.com --domain=OPENCHANGE
--adminpass='%1OpenChange' --server-role='domain controller'




Below command returns nothing. Is their any problem in Samba
installation ?

[root@linux opt]# /etc/init.d/samba4 start
[root@linux opt]#


Samba4 is installed as per the guidelines provided. Installed the
samba using rpm --replacefiles command since their was conflict with
older versions of the libs.

Kindly guide.












--
users@sogo.nu
https://inverse.ca/sogo/lists

Re: [SOGo] Sogo 2.0 nightly build : ImportError: No module named samba for Provision command

2012-09-25 Thread Jean Raby

On 12-09-25 3:47 AM, Devinder Singh wrote:

Hi Jean,

I followed the below activities but yet receive the same error

1. Removed samba4-libs and reinstalled samba4-4.0.0beta5-3.el6.1.i686
Result - Their was no change and received same error
2. Removed all samba packages fetch by  rpm -qa | grep samba  and
reinstalled samba4-4.0.0beta5-3.el6.1.i686
Result - Their was no change in received same error

Any help ?


Hmm, looks like python doesn't find the samba module for some reason.
Can you show the output of 'rpm -ql samba4 | grep samba/__init__.py' ?
What is the content the for PYTHONPATH env variable?

Could you run the following commands and send the full output?
  which python; python -V; echo -e 'import sys\nprint sys.path' | python

Thanks.


Thanks  Regards,
Devinder Singh Birdi

On 9/24/2012 8:09 PM, Jean Raby wrote:

On 12-09-24 10:04 AM, Devinder Singh wrote:

Hi Jean,

Below is the output of  rpm -qa | grep samba 

samba-client-3.5.10-125.el6.i686
samba4-libs-4.0.0-23.alpha11.el6.i686
samba-common-3.5.10-125.el6.i686
samba-winbind-clients-3.5.10-125.el6.i686
samba4-4.0.0beta5-3.el6.1.i686


Can you try removing samba4-libs? (and reinstalling samba4)

I just tested again on el6 and it works fine here, so there might be
an issue/conflict with the packages installed on your machine.




Thanks Regards,
Devinder Singh Birdi

On 9/24/2012 6:58 PM, Jean Raby wrote:

On 12-09-24 8:24 AM, Devinder Singh wrote:

Thanks Sebastien,

Provision script is available in /usr/sbin/ and thats where I ran the
command.

I did not find the Provision script in /usr/share/samba/setup.

However, I copied provision script from /usr/sbin/ to
/usr/share/samba/setup and ran the command.

Yet got the same error

[root@linux sbin]# cd /usr/share/samba/setup/
[root@linux setup]# ./provision --realm=example.com
--domain=OPENCHANGE
--adminpass='%1OpenChange' --server-role='domain controller'
Traceback (most recent call last):
File ./provision, line 33, in module
import samba
ImportError: No module named samba


On which distribution do you see this error?
Depending on the distro in use, can you show the output of 'dpkg -l |
grep samba' or 'rpm -qa | grep samba' ?

Thanks.


Kindly guide.


Thanks Regards,
Devinder Singh Birdi

On 9/21/2012 8:29 PM, Sébastien Blin wrote:


Le 21/09/2012 16:41, Devinder Singh a écrit :

Hi All,

I am facing the below issue when I run the command as per the
instructions given in the SOGo Native Microsoft Outlook
Configuration 2.0.

provision --realm=example.com --domain=OPENCHANGE
--adminpass='%1OpenChange' --server-role='domain controller'
Traceback (most recent call last):
File /usr/sbin/provision, line 33, in module
import samba
*ImportError: No module named samba*


In SOGo instruction, it's write this :

The provision script might be located in /usr/share/samba/setup

Test it :

cd /usr/share/samba/setup

./provision --realm=example.com --domain=OPENCHANGE
--adminpass='%1OpenChange' --server-role='domain controller'




Below command returns nothing. Is their any problem in Samba
installation ?

[root@linux opt]# /etc/init.d/samba4 start
[root@linux opt]#


Samba4 is installed as per the guidelines provided. Installed the
samba using rpm --replacefiles command since their was conflict with
older versions of the libs.

Kindly guide.















--
Jean Raby
jr...@inverse.ca  ::  +1.514.447.4918 (x120) ::  www.inverse.ca
Inverse inc. :: Leaders behind SOGo (www.sogo.nu) and PacketFence 
(www.packetfence.org)

--
users@sogo.nu
https://inverse.ca/sogo/lists


Re: [SOGo] Sogo 2.0 nightly build : ImportError: No module named samba for Provision command

2012-09-24 Thread Devinder Singh

Thanks Sebastien,

Provision script is available in /usr/sbin/  and thats where I ran the 
command.


I did not find the Provision script in /usr/share/samba/setup.

However, I copied provision script from /usr/sbin/  to 
/usr/share/samba/setup   and ran the command.


Yet got the same error

[root@linux sbin]# cd /usr/share/samba/setup/
[root@linux setup]# ./provision --realm=example.com --domain=OPENCHANGE 
--adminpass='%1OpenChange' --server-role='domain controller'

Traceback (most recent call last):
  File ./provision, line 33, in module
import samba
ImportError: No module named samba

Kindly guide.


Thanks  Regards,
Devinder Singh Birdi

On 9/21/2012 8:29 PM, Sébastien Blin wrote:


Le 21/09/2012 16:41, Devinder Singh a écrit :

Hi All,

I am facing the below issue when I run the command as per the 
instructions given in the SOGo Native Microsoft Outlook 
Configuration 2.0.


provision --realm=example.com --domain=OPENCHANGE 
--adminpass='%1OpenChange' --server-role='domain controller'

Traceback (most recent call last):
  File /usr/sbin/provision, line 33, in module
import samba
*ImportError: No module named samba*


In SOGo instruction, it's write this :

The provision script might be located in /usr/share/samba/setup

Test it :

cd /usr/share/samba/setup

./provision --realm=example.com --domain=OPENCHANGE 
--adminpass='%1OpenChange' --server-role='domain controller'





Below command returns nothing. Is their any problem in Samba 
installation ?


[root@linux opt]# /etc/init.d/samba4 start
[root@linux opt]#


Samba4 is installed as per the guidelines provided. Installed the 
samba using rpm --replacefiles command since their was conflict with 
older versions of the libs.


Kindly guide.


--
users@sogo.nu
https://inverse.ca/sogo/lists

Re: [SOGo] Sogo 2.0 nightly build : ImportError: No module named samba for Provision command

2012-09-24 Thread Jean Raby

On 12-09-24 8:24 AM, Devinder Singh wrote:

Thanks Sebastien,

Provision script is available in /usr/sbin/ and thats where I ran the
command.

I did not find the Provision script in /usr/share/samba/setup.

However, I copied provision script from /usr/sbin/ to
/usr/share/samba/setup and ran the command.

Yet got the same error

[root@linux sbin]# cd /usr/share/samba/setup/
[root@linux setup]# ./provision --realm=example.com --domain=OPENCHANGE
--adminpass='%1OpenChange' --server-role='domain controller'
Traceback (most recent call last):
File ./provision, line 33, in module
import samba
ImportError: No module named samba


On which distribution do you see this error?
Depending on the distro in use, can you show the output of 'dpkg -l | 
grep samba'  or 'rpm -qa | grep samba' ?


Thanks.


Kindly guide.


Thanks  Regards,
Devinder Singh Birdi

On 9/21/2012 8:29 PM, Sébastien Blin wrote:


Le 21/09/2012 16:41, Devinder Singh a écrit :

Hi All,

I am facing the below issue when I run the command as per the
instructions given in the SOGo Native Microsoft Outlook
Configuration 2.0.

provision --realm=example.com --domain=OPENCHANGE
--adminpass='%1OpenChange' --server-role='domain controller'
Traceback (most recent call last):
File /usr/sbin/provision, line 33, in module
import samba
*ImportError: No module named samba*


In SOGo instruction, it's write this :

The provision script might be located in /usr/share/samba/setup

Test it :

cd /usr/share/samba/setup

./provision --realm=example.com --domain=OPENCHANGE
--adminpass='%1OpenChange' --server-role='domain controller'




Below command returns nothing. Is their any problem in Samba
installation ?

[root@linux opt]# /etc/init.d/samba4 start
[root@linux opt]#


Samba4 is installed as per the guidelines provided. Installed the
samba using rpm --replacefiles command since their was conflict with
older versions of the libs.

Kindly guide.





--
Jean Raby
jr...@inverse.ca  ::  +1.514.447.4918 (x120) ::  www.inverse.ca
Inverse inc. :: Leaders behind SOGo (www.sogo.nu) and PacketFence 
(www.packetfence.org)

--
users@sogo.nu
https://inverse.ca/sogo/lists


Re: [SOGo] Sogo 2.0 nightly build : ImportError: No module named samba for Provision command

2012-09-24 Thread Devinder Singh

Hi Jean,

Below is the output of   rpm -qa | grep samba 

samba-client-3.5.10-125.el6.i686
samba4-libs-4.0.0-23.alpha11.el6.i686
samba-common-3.5.10-125.el6.i686
samba-winbind-clients-3.5.10-125.el6.i686
samba4-4.0.0beta5-3.el6.1.i686



Thanks  Regards,
Devinder Singh Birdi

On 9/24/2012 6:58 PM, Jean Raby wrote:

On 12-09-24 8:24 AM, Devinder Singh wrote:

Thanks Sebastien,

Provision script is available in /usr/sbin/ and thats where I ran the
command.

I did not find the Provision script in /usr/share/samba/setup.

However, I copied provision script from /usr/sbin/ to
/usr/share/samba/setup and ran the command.

Yet got the same error

[root@linux sbin]# cd /usr/share/samba/setup/
[root@linux setup]# ./provision --realm=example.com --domain=OPENCHANGE
--adminpass='%1OpenChange' --server-role='domain controller'
Traceback (most recent call last):
File ./provision, line 33, in module
import samba
ImportError: No module named samba


On which distribution do you see this error?
Depending on the distro in use, can you show the output of 'dpkg -l | 
grep samba'  or 'rpm -qa | grep samba' ?


Thanks.


Kindly guide.


Thanks  Regards,
Devinder Singh Birdi

On 9/21/2012 8:29 PM, Sébastien Blin wrote:


Le 21/09/2012 16:41, Devinder Singh a écrit :

Hi All,

I am facing the below issue when I run the command as per the
instructions given in the SOGo Native Microsoft Outlook
Configuration 2.0.

provision --realm=example.com --domain=OPENCHANGE
--adminpass='%1OpenChange' --server-role='domain controller'
Traceback (most recent call last):
File /usr/sbin/provision, line 33, in module
import samba
*ImportError: No module named samba*


In SOGo instruction, it's write this :

The provision script might be located in /usr/share/samba/setup

Test it :

cd /usr/share/samba/setup

./provision --realm=example.com --domain=OPENCHANGE
--adminpass='%1OpenChange' --server-role='domain controller'




Below command returns nothing. Is their any problem in Samba
installation ?

[root@linux opt]# /etc/init.d/samba4 start
[root@linux opt]#


Samba4 is installed as per the guidelines provided. Installed the
samba using rpm --replacefiles command since their was conflict with
older versions of the libs.

Kindly guide.







--
users@sogo.nu
https://inverse.ca/sogo/lists

Re: [SOGo] Sogo 2.0 nightly build : ImportError: No module named samba for Provision command

2012-09-24 Thread Jean Raby

On 12-09-24 10:04 AM, Devinder Singh wrote:

Hi Jean,

Below is the output of  rpm -qa | grep samba 

samba-client-3.5.10-125.el6.i686
samba4-libs-4.0.0-23.alpha11.el6.i686
samba-common-3.5.10-125.el6.i686
samba-winbind-clients-3.5.10-125.el6.i686
samba4-4.0.0beta5-3.el6.1.i686


Can you try removing samba4-libs? (and reinstalling samba4)

I just tested again on el6 and it works fine here, so there might be an 
issue/conflict with the packages installed on your machine.





Thanks  Regards,
Devinder Singh Birdi

On 9/24/2012 6:58 PM, Jean Raby wrote:

On 12-09-24 8:24 AM, Devinder Singh wrote:

Thanks Sebastien,

Provision script is available in /usr/sbin/ and thats where I ran the
command.

I did not find the Provision script in /usr/share/samba/setup.

However, I copied provision script from /usr/sbin/ to
/usr/share/samba/setup and ran the command.

Yet got the same error

[root@linux sbin]# cd /usr/share/samba/setup/
[root@linux setup]# ./provision --realm=example.com --domain=OPENCHANGE
--adminpass='%1OpenChange' --server-role='domain controller'
Traceback (most recent call last):
File ./provision, line 33, in module
import samba
ImportError: No module named samba


On which distribution do you see this error?
Depending on the distro in use, can you show the output of 'dpkg -l |
grep samba' or 'rpm -qa | grep samba' ?

Thanks.


Kindly guide.


Thanks Regards,
Devinder Singh Birdi

On 9/21/2012 8:29 PM, Sébastien Blin wrote:


Le 21/09/2012 16:41, Devinder Singh a écrit :

Hi All,

I am facing the below issue when I run the command as per the
instructions given in the SOGo Native Microsoft Outlook
Configuration 2.0.

provision --realm=example.com --domain=OPENCHANGE
--adminpass='%1OpenChange' --server-role='domain controller'
Traceback (most recent call last):
File /usr/sbin/provision, line 33, in module
import samba
*ImportError: No module named samba*


In SOGo instruction, it's write this :

The provision script might be located in /usr/share/samba/setup

Test it :

cd /usr/share/samba/setup

./provision --realm=example.com --domain=OPENCHANGE
--adminpass='%1OpenChange' --server-role='domain controller'




Below command returns nothing. Is their any problem in Samba
installation ?

[root@linux opt]# /etc/init.d/samba4 start
[root@linux opt]#


Samba4 is installed as per the guidelines provided. Installed the
samba using rpm --replacefiles command since their was conflict with
older versions of the libs.

Kindly guide.










--
Jean Raby
jr...@inverse.ca  ::  +1.514.447.4918 (x120) ::  www.inverse.ca
Inverse inc. :: Leaders behind SOGo (www.sogo.nu) and PacketFence 
(www.packetfence.org)

--
users@sogo.nu
https://inverse.ca/sogo/lists


Re: [SOGo] Sogo 2.0 nightly build : ImportError: No module named samba for Provision command

2012-09-21 Thread Sébastien Blin


Le 21/09/2012 16:41, Devinder Singh a écrit :

Hi All,

I am facing the below issue when I run the command as per the 
instructions given in the SOGo Native Microsoft Outlook Configuration 
2.0.


provision --realm=example.com --domain=OPENCHANGE 
--adminpass='%1OpenChange' --server-role='domain controller'

Traceback (most recent call last):
  File /usr/sbin/provision, line 33, in module
import samba
*ImportError: No module named samba*


In SOGo instruction, it's write this :

The provision script might be located in /usr/share/samba/setup

Test it :

cd /usr/share/samba/setup

./provision --realm=example.com --domain=OPENCHANGE 
--adminpass='%1OpenChange' --server-role='domain controller'





Below command returns nothing. Is their any problem in Samba 
installation ?


[root@linux opt]# /etc/init.d/samba4 start
[root@linux opt]#


Samba4 is installed as per the guidelines provided. Installed the 
samba using rpm --replacefiles command since their was conflict with 
older versions of the libs.


Kindly guide.

--
users@sogo.nu
https://inverse.ca/sogo/lists