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: Method overwriting is not permitted during Module precompilation #188

Closed
ZhangFengshun opened this issue Apr 19, 2024 · 3 comments
Closed

Comments

@ZhangFengshun
Copy link

julia> using PETSc
Precompiling PETSc
Info Given PETSc was explicitly requested, output will be shown live
WARNING: Method definition localsize(Ptr{Nothing}) in module PETSc at /home/zfs/.julia/packages/PETSc/4khzV/src/vec.jl:155 overwritten on the same line (check for duplicate calls to include).
ERROR: Method overwriting is not permitted during Module precompilation. Use __precompile__(false) to opt-out of precompilation.
? PETSc
[ Info: Precompiling PETSc [ace2c81b-2b5f-4b1e-a30d-d662738edfe0]
WARNING: Method definition localsize(Ptr{Nothing}) in module PETSc at /home/zfs/.julia/packages/PETSc/4khzV/src/vec.jl:155 overwritten on the same line (check for duplicate calls to include).
ERROR: Method overwriting is not permitted during Module precompilation. Use __precompile__(false) to opt-out of precompilation.
[ Info: Skipping precompilation since precompile(false). Importing PETSc [ace2c81b-2b5f-4b1e-a30d-d662738edfe0].

julia>

@boriskaus
Copy link
Collaborator

As I wrote on an earlier issue, PETSc.jl is currently broken and I have no time to finish or bring it up to date (PETSc_jll is already enough of a time sink).
So if you or anyone else is willing to bring the package up to speed I am happy to give you a bit more info.

@ViralBShah
Copy link
Member

For now we should start by disabling precompliation. This should be a simple PR, and it would be great to get more contributions to maintaining this package.

@ViralBShah
Copy link
Member

ViralBShah commented Oct 14, 2024

Also fixed on main with #194. Please dev the package and try it out. We can close this after tagging a new version.

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