Skip to Content
Former Member
Jan 27, 2010 at 09:36 AM

No module named collections


Hi Experts,

I've installed TREX 7.0(standalone, win32). I'm trying to enable semantic search by following the document at ''.

In the step 3., when i try to create a .xtm file using

" --input=

<TREX_DIR> opicmapsexampleexample.txt -- output=<TREX_DIR> opicmapsexampleexample.xtm"

(in my case, --input=C:usrsapTRXTRX00exe opicmapsexampleexample.txt --output=C:usrsapTRXTRX00exe opicmapsexampleexample.xtm)

I get the import error, 'No module named collections'.

I searched for '' file in the entire directory where trex was installed(C:usrsap), but found result is zero.

It requires to activate the python activation as given in,


Here, i followed 'Activate the Python extension handler' and in 'Registering the Python extensions' part , I changed "if '0' to '1'" for 'Topic Map' and 'Semantic Search' extensions.

Here're the commands executed in command prompt,


C:Documents and SettingsC5119720>cd C:usrsapTRXTRX00


C:usrsapTRXTRX00>cd C:usrsapTRXTRX00exeextensionsxtm

C:usrsapTRXTRX00exeextensionsxtm> --input=C:usrsapTRXTRX00exe opicmapsexampl

eexample.txt --output=C:usrsapTRXTRX00exe opicmapsexampleexample.xtm

Traceback (most recent call last):

File "C:usrsapTRXTRX00exeextensionsxtm", line 4, in

from testbase import TestBase, TestError

File "C:usrsapTRXTRX00exeextensionsxtm", line 2, in

import os, sys, string, thread, threading, time, fuzzypy

File "C:usrsapTRXTRX00exePythonlib", line 13, in

from collections import deque

ImportError: No module named collections



Please suggest how to get this 'collections' module.