FEMBase.jl icon indicating copy to clipboard operation
FEMBase.jl copied to clipboard

ERROR: LoadError: LoadError: invalid subtyping in definition of Poi1

Open Batmanabcdefg opened this issue 5 years ago • 8 comments

Hello,

I cannot test FEMBase, i.e.

ERROR: LoadError: LoadError: invalid subtyping in definition of Poi1

Batmanabcdefg avatar Dec 05 '19 11:12 Batmanabcdefg

Hello,

I also meet this problem, how do you fix it in the end?

jmwjc avatar Jan 15 '20 04:01 jmwjc

@jmwjc , can you also run JuliaFEM.jl & UMAT.jl? Both do not work in julia 1.2.0...

asdasdqwdqwfsdf avatar Jan 15 '20 09:01 asdasdqwdqwfsdf

I get all tests passing for both v0.3.1 and master:

Test Summary: | Pass  Total
FEMBase.jl    |  221    221
   Testing FEMBase tests passed 

Test coverage is also high, 99 %. Is there a minimum working example of how this problem appears?

ahojukka5 avatar Jan 15 '20 09:01 ahojukka5

@AAAWWWAA @ahojukka5 I try to install the JuliaFEM.jl in julia 1.3.0, but meet this problem during precompiling. I also change the version of [email protected], but the problem is still happen. I guess that the mismatch of the version for FEMBase.jl and FEMBasis.jl brings this problem.

jmwjc avatar Jan 17 '20 06:01 jmwjc

In the FEMBasis.jl, the AbstractBasis should be declared with "{dim}", as shown by abstract type AbstractBasis{dim} end but in elements_lagrange.jl: line 4, FEMBase.jl module, struct Poi1 lose this declaraion as struct Poi1 <: FEMBasis.AbstractBasis end

jmwjc avatar Jan 17 '20 06:01 jmwjc

@ahojukka5 , first of all, I cannot install FEMBasis:

 add https://github.com/JuliaFEM/FEMBase.jl.git
  Updating git-repo `https://github.com/JuliaFEM/FEMBase.jl.git`
 Resolving package versions...
ERROR: Unsatisfiable requirements detected for package FEMBasis :
 FEMBasis log:
 ├─possible versions are: 0.3.1 or uninstalled
 ├─FEMBasis  is fixed to version 0.3.1
 └─restricted to versions 0.2.0-0.2 by FEMBase  — no versions left
   └─FEMBase log:
     ├─possible versions are: 0.3.1 or uninstalled
     └─FEMBase is fixed to version 0.3.1

asdasdqwdqwfsdf avatar Jan 20 '20 12:01 asdasdqwdqwfsdf

And FEMBase is also not possible to be installed

add https://github.com/JuliaFEM/FEMBase.jl.git
  Updating git-repo `https://github.com/JuliaFEM/FEMBase.jl.git`
 Resolving package versions...
ERROR: Unsatisfiable requirements detected for package FEMBasis:
 FEMBasis log:
 ├─possible versions are: 0.3.1 or uninstalled
 ├─FEMBasis is fixed to version 0.3.1
 └─restricted to versions 0.2.0-0.2 by FEMBase — no versions left
   └─FEMBase log:
     ├─possible versions are: 0.3.1 or uninstalled
     └─FEMBase is fixed to version 0.3.1

asdasdqwdqwfsdf avatar Jan 20 '20 12:01 asdasdqwdqwfsdf

Yes. Now I get the same error, with following

julia --project=.
] add JuliaFEM
] test JuliaFEM
ERROR: LoadError: LoadError: invalid subtyping in definition of Poi1
Stacktrace:
 [1] top-level scope at /home/jukka/.julia/packages/FEMBase/1R4fe/src/elements_lagrange.jl:4
 [2] include at ./boot.jl:328 [inlined]
 [3] include_relative(::Module, ::String) at ./loading.jl:1105
 [4] include at ./Base.jl:31 [inlined]
 [5] include(::String) at /home/jukka/.julia/packages/FEMBase/1R4fe/src/FEMBase.jl:4
 [6] top-level scope at /home/jukka/.julia/packages/FEMBase/1R4fe/src/FEMBase.jl:28
 [7] include at ./boot.jl:328 [inlined]
 [8] include_relative(::Module, ::String) at ./loading.jl:1105
 [9] include(::Module, ::String) at ./Base.jl:31
 [10] top-level scope at none:2
 [11] eval at ./boot.jl:330 [inlined]
 [12] eval(::Expr) at ./client.jl:425
 [13] top-level scope at ./none:3
in expression starting at /home/jukka/.julia/packages/FEMBase/1R4fe/src/elements_lagrange.jl:4
in expression starting at /home/jukka/.julia/packages/FEMBase/1R4fe/src/FEMBase.jl:28

This is happening in a new environment just created.

Project.toml.txt Manifest.toml.txt

ahojukka5 avatar Jan 20 '20 17:01 ahojukka5