Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Problems running the program #9

Open
PaiHuaiqQiaoShang opened this issue Dec 2, 2019 · 6 comments
Open

Problems running the program #9

PaiHuaiqQiaoShang opened this issue Dec 2, 2019 · 6 comments

Comments

@PaiHuaiqQiaoShang
Copy link

Dear @boathit,
我在运行程序到experiment的 “julia createTest.jl”,出现一个错误:
ERROR: LoadError: LoadError: UndefVarError: T not defined
...
in expression starting at /home/workplace/t2vec-master/t2vec-maste r/experiment/utils.jl:160
...
这个错误出现的定位在这个函数 ranksearch{T<:Real}(query::Matrix{T},
queryLabel::Vector{Int},
db::Matrix{T},
dbLabel::Vector{Int})
我去掉了{T<:Real}时,出现了

ERROR: LoadError: UndefVarError: jldopen not defined

在SpatialRegionTools中的function loadregion中
jldopen(paramfile, "r") do f
...

我认为是环境配置错误,但是我尝试将julia从1.0.0到1.0.5到1.1.0,和目前1.3.0尝试的过程中都出现这个错误,我对于Julia不是很熟,我想请问一下您这是什么问题。非常感谢您在百忙中给我回复。

Thank you in advance,

@boathit
Copy link
Owner

boathit commented Dec 2, 2019

I just updated the code. Feel free to let me know if the error still pops up.

@PaiHuaiqQiaoShang
Copy link
Author

Thank you very much for your quick reply. Now there is another problem is that the "jldopen" of the function "loadregion" in "SpatialRegionTools.jl" reports an error.The error message is as follows.

ERROR: LoadError: UndefVarError: jldopen not defined Stacktrace: [1] loadregion!(::SpatialRegion, ::String) at /home/workplace/t2v ec-master/t2vec-master/preprocessing/SpatialRegionTools.jl:355

I guess there are fewer dependencies that cause this. But I only found from the julia package using JLD2 this function can be used.But porto-vocab-dist-cell100 is not a JLD file

@boathit
Copy link
Owner

boathit commented Dec 2, 2019

Are you running the latest code? I have removed the usage of loadregion!, see this line.

@PaiHuaiqQiaoShang
Copy link
Author

Sorry, I didn't make it clear.I still get an error when running the command "julia createTest.jl". The error location is line 15 of "createTest.jl"

ERROR: LoadError: UndefVarError: jldopen not defined Stacktrace: [1] loadregion!(::SpatialRegion, ::String) at /home/workplace/t2v ec-master/t2vec-master/preprocessing/SpatialRegionTools.jl:355 [2] top-level scope at /home/workplace/t2vec-master/t2vec-master/ experiment/createTest.jl:15

Thank you very much for your answer.

@boathit
Copy link
Owner

boathit commented Dec 2, 2019

It seems I forgot to update the loadregion! in createTest.jl. I hope this commit has addressed it.

@PaiHuaiqQiaoShang
Copy link
Author

Thank you very much for your reply and help. There are no problems running the code, thank you very much.Sincerely wish you!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants