[LDTP-Dev] Python issues.

Nagappan Alagappan nagappan at gmail.com
Thu Oct 29 22:21:17 PDT 2009


Hello Sean,

If you have installed LDTP using binary, it will be installed in system
default python path. Since the PYTHONPATH you have used will remove existing
reference to it (I guess), you need to either install in the new PYTHONPATH
or you can do something like this:

export PYTHONPATH=/usr/local/lib/python2.6/site-packages/:$PYTHONPATH

and try ?

Thanks
Nagappan

On Thu, Oct 29, 2009 at 8:27 AM, Sean Miller <seanbmiller at gmail.com> wrote:

> Thank you for the reply! I changed my PYTHONPATH to the most recent on my
> system:
> export PYTHONPATH=/usr/local/lib/python2.6/site-packages/
>
> The error from before is gone, and now it can't find the ldtp module.
>
> [semiller at semiller ldtp]$ python2.6
> Python 2.6.3 (r263:75183, Oct 14 2009, 12:18:52)
> [GCC 4.1.2 20080704 (Red Hat 4.1.2-44)] on linux2
> Type "help", "copyright", "credits" or "license" for more information.
> >>> from xml.parsers.expat import ExpatError
> >>> from ldtp import *
> Traceback (most recent call last):
>   File "<stdin>", line 1, in <module>
> ImportError: No module named ldtp
> >>>
>
>
> On Thu, Oct 29, 2009 at 10:40 AM, Nagappan Alagappan <nagappan at gmail.com>wrote:
>
>> Hello Sean,
>>
>> I think, this issue is not related to LDTP. LDTPv1 uses XML libraries from
>> the system.
>>
>> If you import this "from xml.parsers.expat import ExpatError" in python,
>> you will note the issue is on xml.parsers.
>>
>> Thanks
>> Nagappan
>>
>> On Thu, Oct 29, 2009 at 7:11 AM, Sean Miller <seanbmiller at gmail.com>wrote:
>>
>>> I'm having some issues with python:
>>>
>>> [semiller at semiller ldtp]$ python
>>> Python 2.6.3 (r263:75183, Oct 14 2009, 12:18:52)
>>> [GCC 4.1.2 20080704 (Red Hat 4.1.2-44)] on linux2
>>> Type "help", "copyright", "credits" or "license" for more information.
>>> >>> from ldtp import *
>>> Traceback (most recent call last):
>>>   File "<stdin>", line 1, in <module>
>>>   File "/usr/lib/python2.4/site-packages/ldtp.py", line 53, in <module>
>>>     from xml.parsers.expat import ExpatError
>>>   File "/usr/lib/python2.4/site-packages/_xmlplus/parsers/expat.py", line
>>> 4, in <module>
>>>     from pyexpat import *
>>> ImportError:
>>> /usr/lib/python2.4/site-packages/_xmlplus/parsers/pyexpat.so: undefined
>>> symbol: PyUnicodeUCS4_Decode
>>> >>>
>>>
>>> [semiller at semiller ldtp]$ ldtpeditor
>>> Traceback (most recent call last):
>>>   File "/usr/local/bin/ldtpeditor", line 40, in <module>
>>>     from xml.parsers.expat import ExpatError
>>>   File "/usr/lib/python2.4/site-packages/_xmlplus/parsers/expat.py", line
>>> 4, in <module>
>>>     from pyexpat import *
>>> ImportError:
>>> /usr/lib/python2.4/site-packages/_xmlplus/parsers/pyexpat.so: undefined
>>> symbol: PyUnicodeUCS4_Decode
>>>
>>>
>>> Any suggestions?
>>> Thanks,
>>> Sean
>>>
>>>
>>>
>>>
>>> _______________________________________________
>>> LDTP-dev mailing list
>>> LDTP-dev at lists.freedesktop.org
>>> http://lists.freedesktop.org/mailman/listinfo/ldtp-dev
>>>
>>>
>>
>>
>> --
>> Linux Desktop (GUI Application) Testing Project -
>> http://ldtp.freedesktop.org
>> http://nagappanal.blogspot.com
>>
>
>


-- 
Linux Desktop (GUI Application) Testing Project -
http://ldtp.freedesktop.org
http://nagappanal.blogspot.com
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.freedesktop.org/archives/ldtp-dev/attachments/20091029/a29de626/attachment.html 


More information about the LDTP-dev mailing list