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

Installation problem

Open ChrisNabold opened this issue 1 year ago • 3 comments

I tried to install Modia using Julia 1.11.2 and 1.11.3 but I receive the following error message Precompiling project... ? Modia 1 dependency successfully precompiled in 17 seconds. 1031 already precompiled. 1 dependencies failed but may be precompilable after restarting julia 1 dependency had output during precompilation: ┌ Modia │ Welcome to Modia - Dynamic Modeling and Simulation with Julia │ Version 0.12.0 (2023-06-04) │ WARNING: Method definition unit(MonteCarloMeasurements.AbstractParticles{T, N}) where {T, N} in module UnitfulExt at C:\Users\Chris.julia\packages\MonteCarloMeasurements\Blocw\ext\UnitfulExt.jl:16 overwritten in module Modia at C:\Users\Chris.julia\packages\Modia\77g2A\src\Modia.jl:154. │ ERROR: Method overwriting is not permitted during Module precompilation. Use __precompile__(false) to opt-out of precompilation. How can this issue be resolved?

ChrisNabold avatar Jan 27 '25 13:01 ChrisNabold

This PR fixes the issue

  • https://github.com/ModiaSim/Modia.jl/pull/172

baggepinnen avatar Jan 27 '25 14:01 baggepinnen

Thank you for your reply. Unfortunately you do not show how to install the package in order to compile Modia without error

Thank you for your patience regards Chris Nabold


From: Fredrik Bagge Carlson @.> Sent: Monday, January 27, 2025 15:15 To: ModiaSim/Modia.jl @.> Cc: ChrisNabold @.>; Author @.> Subject: Re: [ModiaSim/Modia.jl] Installation problem (Issue #173)

This PR fixes the issue

— Reply to this email directly, view it on GitHubhttps://github.com/ModiaSim/Modia.jl/issues/173#issuecomment-2615877250, or unsubscribehttps://github.com/notifications/unsubscribe-auth/AEIE3ZCX72T62BOKJXT6XGT2MY5P7AVCNFSM6AAAAABV6DU2HOVHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMZDMMJVHA3TOMRVGA. You are receiving this because you authored the thread.Message ID: @.***>

ChrisNabold avatar Jan 28 '25 15:01 ChrisNabold

merging of the PR https://github.com/ModiaSim/Modia.jl/pull/172 is still open

in the meantime you can try this:

xyzxyz:~> julia
               _
   _       _ _(_)_     |  Documentation: https://docs.julialang.org
  (_)     | (_) (_)    |
   _ _   _| |_  __ _   |  Type "?" for help, "]?" for Pkg help.
  | | | | | | |/ _` |  |
  | | |_| | | | (_| |  |  Version 1.11.3 (2025-01-21)
 _/ |\__'_|_|_|\__'_|  |  Official https://julialang.org/ release
|__/                   |

julia> using Pkg

julia> Pkg.add(url="https://github.com/johhell/Modia.jl.git", rev="update-MonteCarloMeasurements")

johhell avatar Jan 28 '25 16:01 johhell