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,

==
# /opt/Python-2.7.8/bin/python2.7 /opt/Python-2.7.8/lib/python2.7/test/test___al
l__.py
Traceback (most recent call last):
  File "/opt/Python-2.7.8/lib/python2.7/test/test___all__.py", line 3, in 
<module>
    import unittest
  File "/opt/Python-2.7.8/lib/python2.7/unittest/__init__.py", line 58, in 
<module>
    from .result import TestResult
  File "/opt/Python-2.7.8/lib/python2.7/unittest/result.py", line 9, in <module>
    from . import util
  File "/opt/Python-2.7.8/lib/python2.7/unittest/util.py", line 2, in <module>
    from collections import namedtuple, OrderedDict
  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
# 
===

I tried setting PATH & PYTHONPATH, but it doesn't seem to fix the issue. Can 
someone please advice on what possibly is causing this problem / how to fix 
this?

Regards
Ramesh
-- 
https://mail.python.org/mailman/listinfo/python-list

Reply via email to