|
View:
New views
5 Messages
—
Rating Filter:
Alert me
|
|
|
Python issues.I'm having some issues with python:
[semiller@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@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@... http://lists.freedesktop.org/mailman/listinfo/ldtp-dev |
|
|
Re: Python issues.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@...> wrote: I'm having some issues with python: -- Linux Desktop (GUI Application) Testing Project - http://ldtp.freedesktop.org http://nagappanal.blogspot.com _______________________________________________ LDTP-dev mailing list LDTP-dev@... http://lists.freedesktop.org/mailman/listinfo/ldtp-dev |
|
|
Re: Python issues.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@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@...> wrote: Hello Sean, _______________________________________________ LDTP-dev mailing list LDTP-dev@... http://lists.freedesktop.org/mailman/listinfo/ldtp-dev |
|
|
Re: Python issues.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@...> wrote: Thank you for the reply! I changed my PYTHONPATH to the most recent on my system: -- Linux Desktop (GUI Application) Testing Project - http://ldtp.freedesktop.org http://nagappanal.blogspot.com _______________________________________________ LDTP-dev mailing list LDTP-dev@... http://lists.freedesktop.org/mailman/listinfo/ldtp-dev |
|
|
Re: Python issues.I searched for the ldtp & python and ldtp was installed in python2.4, and ran this: I also changed my PYTHONPATH to 2.4:
export PYTHONPATH=/usr/lib/python2.4/site-packages/:$PYTHONPATH Now the commands from the tutorial work when I start from python2.4! Thank you very much for the help! I get a different error when I start ldtpeditor: Could not find platform independent libraries <prefix> Could not find platform dependent libraries <exec_prefix> Consider setting $PYTHONHOME to <prefix>[:<exec_prefix>] 'import site' failed; use -v for traceback Traceback (most recent call last): File "/usr/bin/ldtpeditor", line 39, in <module> from xml.sax import saxutils File "/usr/lib/python2.4/site-packages/_xmlplus/sax/saxutils.py", line 8, in <module> import os, urlparse, urllib2, types File "urllib2.py", line 90, in <module> import base64 File "base64.py", line 9, in <module> import struct ImportError: No module named struct _______________________________________________ LDTP-dev mailing list LDTP-dev@... http://lists.freedesktop.org/mailman/listinfo/ldtp-dev |
| Free embeddable forum powered by Nabble | Forum Help |