Help running python tests on MIPS

rramesh1 at gmail.com rramesh1 at gmail.com
Sun Jan 11 20:01:49 CET 2015


On Sunday, January 11, 2015 at 1:39:20 AM UTC-8, Steven D'Aprano wrote:
> Ramesh wrote:
> 
> > I am new to python.
> > 
> > I downloaded python 2.7.8 tarball, successfully cross compiled it, to make
> > sure that the subsystems are correctly built, I tried running the python
> > test scripts on the MIPS based target board. I hit the below error while I
> > do so,
> [...]
> > I tried setting PATH & PYTHONPATH, but it doesn't seem to fix the issue.
> 
> Tried setting them to what?
> 
> 
> > Can someone please advice on what possibly is causing this problem / how
> > to fix this?
> 
> Try running these commands from the operating system's shell, and report on
> the output:
> 
> 
> ls -ld /opt/Python-2.7.8/lib/python2.7/lib-dynload/
> 
> ls -l /opt/Python-2.7.8/lib/python2.7/lib-dynload/*coll*
> 
> python -c "import collections; print collections.__file__"
> 
> 
> 
> That will help diagnose the problem.
> 
> 
> 
> -- 
> Steven

For the above commands, here is the output 

# ls -ld /opt/Python-2.7.8/lib/python2.7/lib-dynload/ 
drwxr-xr-x    2 root     root          681 Jan 10  2015 /opt/Python-2.7.8/lib/python2.7/lib-dynload/
# ls -l /opt/Python-2.7.8/lib/python2.7/lib-dynload/*coll*
ls: /opt/Python-2.7.8/lib/python2.7/lib-dynload/*coll*: No such file or directory
# /opt/Python-2.7.8/bin/python2.7 -c "import collections; print collections.__fi
le__" 
Traceback (most recent call last):
  File "<string>", line 1, in <module>
  File "/opt/Python-2.7.8/lib/python2.7/collections.py", line 8, in <module>
    from _collections import deque, defaultdict
ImportError: No module named _collections
# 




More information about the Python-list mailing list