AutoEnvs
使用
AutomotiveDrivingModels
using AutoEnvs
MethodError: no method matching parse(::Type{AutomotiveDrivingModels.LaneConnection}, ::SubString{String})
在AutomotiveDrivingModels包的问题代码中,他们执行以下操作
-
定义
struct LaneConnection
-
function Base.parse(::Type{LaneConnection}, line::String)
-
function advance!()
-
conn = parse(LaneConnection, advance!())
-这会抛出错误
我试过用
::Type{AutomotiveDrivingModels.LaneConnection}
在定义中
Base.parse
以及在调用
parse
从错误来看
advance!()
SubString
-如果车辆超载,这会是问题吗
parse()
String
?
我还尝试添加
import Base: parse
here
但没用。
ngsim_env
. 注意,
the installation instructions
在特定提交时需要旧版本的AutomotiveDrivingModels。
Mac OS Mojave 10.14(已安装xcode命令行工具)
Julia:v0.7.0(ngsimèu env安装限制)
谢谢您!
编辑
有一次重启解释器并尝试
再次解决此错误。但我只是做了一个新的安装和改变了一些其他软件包版本,现在这个错误回来了,重新启动没有帮助了。