传入无效位置,必须给出绝对路径?


0

我正在尝试为Redhawk运行python沙箱示例(https://redhawksdr.github.io/Documentation/mainch3.html#x5-270003.3)。我可以从/usr/local/redhawk/ide/2.1.2文件夹(./eclipse)启动REDHAWK IDE。但是,当我运行以下命令时,我收到一个错误:

>>> sb.IDELocation("/usr/local/redhawk/ide/2.1.2/eclipse")
IDELocation(): ERROR - invalid location passed in, must give absolute path 
/usr/local/redhawk/ide/2.1.2/eclipse

如果我忽略这个“IDELocation():ERROR”,我通过执行Plot()命令有以下问题:

>>> sb.IDELocation("/usr/local/redhawk/ide/2.1.2/eclipse")
IDELocation(): ERROR - invalid location passed in, must give absolute path 
/usr/local/redhawk/ide/2.1.2/eclipse
>>> plot = sb.Plot()
Traceback (most recent call last):
  File "<stdin>", line 1, in <module>
  File "/usr/local/redhawk/core/lib/python/ossie/utils/sb/io_helpers.py", 
    line 1985, in __init__
    raise AssertionError, "Plot():__init__() ERROR - must set environment 
    variable RH_IDE or call IDELocation()"
AssertionError: Plot():__init__() ERROR - must set environment variable 
   RH_IDE or call IDELocation()

有人知道如何解决这个问题吗?提前致谢!


我对此错误非常困惑,因为我认为“/usr/local/redhawk/ide/2.1.2/eclipse”已经是绝对路径。此外,我去了这个目录/usr/local/redhawk/ide/2.1.2,“。/ eclipse”命令成功启动了IDE。
Spring19981年
By using our site, you acknowledge that you have read and understand our Cookie Policy and Privacy Policy.
Licensed under cc by-sa 3.0 with attribution required.