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

Failed to precompile JuliaFEM #253

Open
osullivryan opened this issue Mar 7, 2020 · 3 comments
Open

Failed to precompile JuliaFEM #253

osullivryan opened this issue Mar 7, 2020 · 3 comments

Comments

@osullivryan
Copy link

Hello JuliaFEM Team!

Julia version: 1.3.1
OS: Ubuntu 19.1
JuliaFEM version: Latest

I am getting the following error when I attempt to import JuliaFEM:

julia> import JuliaFEM
[ Info: Precompiling JuliaFEM [f80590ac-b429-510a-8a99-e7c46989f22d]
┌ Warning: Package FEMBase does not have TimerOutputs in its dependencies:
...

I believe this is the same as #249, however that doesn't look to have been solved. Any ideas how I can get past this error and use the package?

Thanks!

@TeroFrondelius
Copy link
Member

TeroFrondelius commented Mar 7, 2020

] dev FEMBase
cd("~/.julia/dev/FEMBase")
] activate .
add  TimerOutputs

If it works, please make a pull request.

@osullivryan
Copy link
Author

That gets me past the FEMBase TimerOutputs problem, however it leads to a TypeError problem:

julia> import JuliaFEM
[ Info: Precompiling JuliaFEM [f80590ac-b429-510a-8a99-e7c46989f22d]
WARNING: could not import Base.start into JuliaFEM
WARNING: could not import Base.next into JuliaFEM
WARNING: could not import Base.done into JuliaFEM
WARNING: could not import Base.endof into JuliaFEM
ERROR: LoadError: LoadError: TypeError: in AbstractElement, in M, expected M<:FEMBase.AbstractFieldSet, got Type{FEMBasis.Seg2}

@buwudaoli
Copy link

I found a useful reference as JuliaFEM/FEMBeam.jl#24 and I verified its effectiveness. Based on the suggestion from this report, I changed all reported code (in error message to) add <:FEMBase.AbstractFieldSet as the first arg in Element(...), and finally "test JuliaFEM" can work with Julia 1.3 on WIN10 (although there are still some test failures reported). I think this issue could be fixed by adding an overloaded Element function (with <:FEMBase.AbstractFieldSet as the first arg) in package FEMBase, hope some one can help to implement it later.

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