imtaphyViewer: ImportError in view.py

Asked by Omai bigee

Hi all.

I have installed openwns and imtaphy without problems. This also includes all necessary components, such as couchdb, desktopcouch, etc.

My problem occurs when I try to use imtaphyViewer to visualize the example modules/phy/imtaphy/testConfigs/config.py

The import error is the following:

File "......../myOpenWNS/modules/phy/imtaphy/testConfigs/imtaphyViewer/scenario/inspect.py", line 116, in __init__
    exec(content,self.config)
  File "<string>", line 31, in <module>
ImportError: No module named node

As another test, I tried to import the module openwns.node in a new console

user@ubuntu:~/workspace/myOpenWNS/sandbox$ python
Python 2.7.3 (default, Jun 22 2015, 19:33:41)
[GCC 4.6.3] on linux2
Type "help", "copyright", "credits" or "license" for more information.
>>> import openwns
>>> import openwns.node
Traceback (most recent call last):
  File "<stdin>", line 1, in <module>
ImportError: No module named node

Indeed the directory /usr/local/lib/python2.7/dist-packages/openwns/ does not contain much:

user@debian:~$ ls -al /usr/local/lib/python2.7/dist-packages/openwns/
total 24
drwxr-sr-x 3 root staff 4096 Feb 19 11:46 .
drwxrwsr-x 3 root staff 4096 Feb 24 13:14 ..
-rw-r--r-- 1 root staff 644 Feb 19 11:46 __init__.py
-rw-r--r-- 1 root staff 777 Feb 19 11:46 __init__.pyc
-rw-r--r-- 1 root staff 0 Feb 19 11:46 __openwns__mainModule__.py
-rw-r--r-- 1 root staff 160 Feb 19 11:46 __openwns__mainModule__.pyc
drwxr-sr-x 8 root staff 4096 Feb 19 11:46 wrowser

Instead, the installation of the wrowser is OK, so I was wondering whether something similar to the installation of the wrowser (setup.py) should be done to make the viewer work.

Thanks in advance!

Question information

Language:
English Edit question
Status:
Answered
For:
IMTAphy Edit question
Assignee:
No assignee Edit question
Last query:
Last reply:
Revision history for this message
Maciej Muehleisen (mue-comnets) said :
#1

Hi,

import openwns works since those are the wrowser packages installed system wide. The rest is just accessible within the openwns directory. openWNS must be compiled for this to work:

./playground.py install
./playground.py install --flavour=opt

the stuff should then be in sandbox/opt/lib/PyConfig and/or sandbox/dbg/lib/PyConfig

Path should be right everywhere from within the openwns directory. Else try starting it from one of those dirs.

Unfortunately I am not very familiar with IMTAViewer.

Regards

Maciej

Can you help with this problem?

Provide an answer of your own, or ask Omai bigee for more information if necessary.

To post a message you must log in.