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

ERROR: UndefVarError: SLIM_optim not defined #174

Closed
zhangxiaoshuotttt opened this issue Mar 14, 2023 · 5 comments
Closed

ERROR: UndefVarError: SLIM_optim not defined #174

zhangxiaoshuotttt opened this issue Mar 14, 2023 · 5 comments

Comments

@zhangxiaoshuotttt
Copy link

I have checked the issue "JUDI.SLIM_optim #6".I tried to do it according to that issue, but it doesn"t seem to work.Here is what I did.

System : Ubuntu 22.04
Julia version : Julia1.6.7
Devito version : 4.8.0
conda activate FWI (The environment FWI has a Devito, its version is 4.8.0)
``ENV["PYTHON"]="/home/master/anaconda3/envs/FWI/bin/python"
$ JULIA
`pkg.add("JUDI")`
I also tried `Pkg.add(PackageSpec(url="https://github.com/slimgroup/JUDI.jl"))`
`using JUDI` (No error)
`using JUDI.SLIM_optim ` then

ERROR: 
UndefVarError: SLIM_optim not defined

Meanwghile,I try to run "Setup.sh",but it gives me an error saying I don't have "docker/devito_requirements.txt"

This problem has bothered me for four days. I tried to find a solution,but since I just learned Julia, I couldn't find the problem .Please help me.

@ziyiyin97
Copy link
Member

Hi, thanks for your interest in JUDI package. We've restructured the package a while ago (see #43 ) and SLIM_optim module is currently under https://github.com/slimgroup/SlimOptim.jl. We suggest you install that package and do using SlimOptim instead.

@ziyiyin97
Copy link
Member

I've checked the Setup.sh file. It seems to be deprecated @mloubout correct me if wrong

@zhangxiaoshuotttt
Copy link
Author

Thank you for your help. Thank you for your efforts.

@mloubout
Copy link
Member

  • setup.sh is deprecated and only kept for legacy. for early versions of JUDI
  • SLIM_optim has been deprecated and is now its own package SlimOptim.jl

You can check the example scripts such as :

https://github.com/slimgroup/JUDI.jl/blob/master/examples/scripts/fwi_example_minConf.jl

for usage

@zhangxiaoshuotttt
Copy link
Author

  • setup.sh is deprecated and only kept for legacy. for early versions of JUDI
  • SLIM_optim has been deprecated and is now its own package SlimOptim.jl

You can check the example scripts such as :

https://github.com/slimgroup/JUDI.jl/blob/master/examples/scripts/fwi_example_minConf.jl

for usage

Ok, I'll check. Thanks a lot.

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

3 participants