0

我在 32 位 CentOS 5 虚拟机上加载了 Redhawk 1.9。我正在尝试运行此处描述的 Redhawk HelloWorld 组件:http ://redhawksdr.github.io/Documentation/mainch3.html 。我能够在 Eclipse 沙箱中启动和启动组件。我无法从 Python 运行它。我收到以下错误。

Python 2.7.2 (default, Feb 27 2012, 16:40:29) 
[GCC 4.1.2 20080704 (Red Hat 4.1.2-44)] on linux2
Type "help", "copyright", "credits" or "license" for more information.
>>> from ossie.utils import sb
Traceback (most recent call last):
  File "<stdin>", line 1, in <module>
  File "/usr/local/redhawk/core/lib/python/ossie/utils/sb/__init__.py", line 115, in <module>
    from domainless import *
  File "/usr/local/redhawk/core/lib/python/ossie/utils/sb/domainless.py", line 102, in <module> 
    from omniORB import CORBA, any
ImportError: No module named omniORB
>>>

任何想法为什么它不起作用?

4

2 回答 2

3

您可能必须PYTHONPATH手动设置以包含适当的目录。看起来 Eclipse 正在为您做这件事。

于 2014-01-09T20:57:26.740 回答
0

Try running your example as root. If you can successfully run as root, then you have a permission problem on your directories or files. How do you identify the files that have the incorrect permission ? I ran the following command, strace -o test.out python -c "from ossie.utils import sb"

This command will write the output to test.out. Look for the string "denied", which will identify the file that has the incorrect file permission.

于 2016-01-06T19:30:19.067 回答