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

No module named collections

660 Views

Hi Experts,

I've installed TREX 7.0(standalone, win32). I'm trying to enable semantic search by following the document at 'https://www.sdn.sap.com/irj/servlet/prt/portal/prtroot/docs/library/uuid/f0d3be0e-0401-0010-b780-ff7e4e103ea0'.

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

"txt2xtm.py --input=

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

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

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

I searched for 'collections.py' 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,

'http://help.sap.com/saphelp_nw04s/helpdata/en/fe/72f11aae4f754d90f44680283a3634/frameset.htm'

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>TREXSettings.bat

C:usrsapTRXTRX00>cd C:usrsapTRXTRX00exeextensionsxtm

C:usrsapTRXTRX00exeextensionsxtm>txt2xtm.py --input=C:usrsapTRXTRX00exe opicmapsexampl

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

Traceback (most recent call last):

File "C:usrsapTRXTRX00exeextensionsxtm xt2xtm.py", line 4, in

from testbase import TestBase, TestError

File "C:usrsapTRXTRX00exeextensionsxtm estbase.py", line 2, in

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

File "C:usrsapTRXTRX00exePythonlib hreading.py", line 13, in

from collections import deque

ImportError: No module named collections

C:usrsapTRXTRX00exeextensionsxtm>

"

Please suggest how to get this 'collections' module.

Thanks,

Arun