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: LoadError: LoadError: invalid subtyping in definition of Poi1 #67

Open
Batmanabcdefg opened this issue Dec 5, 2019 · 8 comments

Comments

@Batmanabcdefg
Copy link

Hello,

I cannot test FEMBase, i.e.

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

@jmwjc
Copy link

jmwjc commented Jan 15, 2020

Hello,

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

@asdasdqwdqwfsdf
Copy link

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

@ahojukka5
Copy link
Member

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
Copy link

jmwjc commented Jan 17, 2020

@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
Copy link

jmwjc commented Jan 17, 2020

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
Copy link

@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
Copy link

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
Copy link
Member

ahojukka5 commented Jan 20, 2020

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 ahojukka5 reopened this Jan 20, 2020
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

4 participants