JuliaFEM / FEMBase.jl

JuliaFEM base package (core functionality)
http://juliafem.org/
MIT License
16 stars 9 forks source link

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

Open Batmanabcdefg opened 4 years ago

Batmanabcdefg commented 4 years ago

Hello,

I cannot test FEMBase, i.e.

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

jmwjc commented 4 years ago

Hello,

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

asdasdqwdqwfsdf commented 4 years ago

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

ahojukka5 commented 4 years ago

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?

jmwjc commented 4 years ago

@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 julia@1.2.0, but the problem is still happen. I guess that the mismatch of the version for FEMBase.jl and FEMBasis.jl brings this problem.

jmwjc commented 4 years ago

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

asdasdqwdqwfsdf commented 4 years ago

@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 commented 4 years ago

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
ahojukka5 commented 4 years ago

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