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

locate() and set_library!() are broken #39

Closed
Joroks opened this issue Jun 19, 2024 · 1 comment · Fixed by #40
Closed

locate() and set_library!() are broken #39

Joroks opened this issue Jun 19, 2024 · 1 comment · Fixed by #40

Comments

@Joroks
Copy link
Collaborator

Joroks commented Jun 19, 2024

When I try to use these functions, I get the following errors:

julia> LAMMPS.locate()
ERROR: UndefVarError: `LAMMPS_jll` not defined
Stacktrace:
 [1] locate()
   @ LAMMPS C:\Users\johan\.julia\packages\LAMMPS\pSPug\src\LAMMPS.jl:15
 [2] top-level scope
   @ REPL[34]:1

julia> LAMMPS.set_library!("C:\\Users\\johan\\AppData\\Local\\LAMMPS 64-bit 17Apr2024\\bin\\liblammps.dll")
ERROR: UndefVarError: `LAMMPS_jll` not defined
Stacktrace:
 [1] set_library!(path::String)
   @ LAMMPS C:\Users\johan\.julia\packages\LAMMPS\pSPug\src\LAMMPS.jl:34
 [2] top-level scope
   @ REPL[35]:1

I belive this is because the LAMMPS module doesn't import API after including it.

P.S

I currently have to use my own LAMMPS installation because the Artifact doesn't have the DPD-Basic Package installed. Is it possible to include this Package with the Artifact or is this an issue with LAMMPS_jll?

@vchuravy
Copy link
Member

Thanks for the bug report! Odd that this was broken.

I currently have to use my own LAMMPS installation because the Artifact doesn't have the DPD-Basic Package installed. Is it possible to include this Package with the Artifact or is this an issue with LAMMPS_jll?

The build recipe is here: https://github.com/JuliaPackaging/Yggdrasil/blob/master/L/LAMMPS/build_tarballs.jl

You can go there and try to turn DPD on, but @mattswisher had to disable them explicitly in JuliaPackaging/Yggdrasil#3927 (comment)

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

Successfully merging a pull request may close this issue.

2 participants