Re: [Samba] Python UCS2 vs UCS4 issue on latest git: ImportError: ....undefined symbol: PyUnicodeUCS2_Decode (SOLVED!)

2013-04-14 Thread Phil Quesinberry
OMG... I fixed it.

Since libgnutls.so.26 was in /usr/local/lib and not in /usr/local/samba/lib,
I added a file called gnutls.conf to /etc/ld.conf.d/ with the following
entry:
/usr/local/lib

I then did an ldconfig and now it seems to work!  System programs like yum
which appear to rely on the older version of Python work just fine.

Let me know if you need more info or want me to try any additional testing
to try and extract more detailed information to potentially improve the
installation process or otherwise keep this from happening to other users. 
After this experience, I'm happy to play a small part in helping others
avoid this sort of misery.

Well, I just learned something.  And a word of advice to anyone else reading
this thread... don't mess with your Python installation unless you know what
you're doing.  ..and if you're contemplating messing with your Python
installation... you probably don't.   :)

Many, MANY thanks Andrew for taking your valuable time to try and help me
get this running as well as everyone else who chimed in with comments trying
to help.

Best regards,

- Phil



--
View this message in context: 
http://samba.2283325.n4.nabble.com/Re-Python-UCS2-vs-UCS4-issue-on-latest-git-ImportError-undefined-symbol-PyUnicodeUCS2-Decode-NOT-SOL-tp4646314p4646745.html
Sent from the Samba - General mailing list archive at Nabble.com.
-- 
To unsubscribe from this list go to the following URL and read the
instructions:  https://lists.samba.org/mailman/options/samba


[Samba] Python UCS2 vs UCS4 issue on latest git: ImportError: ....undefined symbol: PyUnicodeUCS2_Decode [SOLVED]

2013-04-03 Thread Phil Quesinberry
I'm getting the following error attempting to run samba-tool after
installing the latest git using the install_with_python script to use Python
2.6:

[root@Server1 dcerpc]# samba-tool

Traceback (most recent call last):

  File "/usr/local/samba/bin/samba-tool", line 33, in 

from samba.netcmd.main import cmd_sambatool

  File
"/usr/local/samba/lib/python2.6/site-packages/samba/netcmd/__init__.py",
line 20, in 

from samba import getopt as options

  File "/usr/local/samba/lib/python2.6/site-packages/samba/getopt.py", line
30, in 

from samba.hostconfig import Hostconfig

  File "/usr/local/samba/lib/python2.6/site-packages/samba/hostconfig.py",
line 20, in 

from samdb import SamDB

  File "/usr/local/samba/lib/python2.6/site-packages/samba/samdb.py", line
32, in 

from samba.dcerpc import drsblobs, misc

ImportError:
/usr/local/samba/lib/python2.6/site-packages/samba/dcerpc/drsblobs.so:
undefined symbol: PyUnicodeUCS2_Decode

 

Samba-tool was working with the previous git, so I'm not certain if this is
a problem with the latest build or a problem with Python in my environment.
If I understand this correctly, Samba was compiled with a Python version
using 2-byte Unicode characters but my Python version is using 4-byte
Unicode characters.  If that is indeed the case, why was it changed and what
would be the best way to go about fixing this problem?  I tried adding
-enable-unicode=ucs2 to the configure options in the 'install_with_python'
script but that had no effect so now I wonder if somehow a different version
of Python on the system is being referenced instead of the one included with
Samba.

 

Any suggestions here would be greatly appreciated, even if it's only to tell
me whether or not I'm on the right track.  Thanks!

 

Version is 4.0.5-GIT-20b0adc.  CentOS 5.9.

 

Regards,

 

Phil Quesinberry

Q Systems Engineering, Inc.

Electronic Controls and Embedded Systems Development

(410) 969-8002

http://www.qsystemsengineering.com

 

-- 
To unsubscribe from this list go to the following URL and read the
instructions:  https://lists.samba.org/mailman/options/samba