byuflowlab / FLOWVLM

Vortex lattice method for inviscid lifting-surface aerodynamics
GNU Affero General Public License v3.0
41 stars 10 forks source link

could not compile because there is no module named mpmath for julia #19

Closed skywo1f closed 10 months ago

skywo1f commented 2 years ago

Failed to precompile FLOWVLM [1a3ff0be-0410-4572-aa62-b496bdd1f33b] to C:\Users\dsfjk.julia\compiled\v1.7\FLOWVLM\jl_EF2D.tmp. ERROR: LoadError: InitError: PyError ($(Expr(:escape, :(ccall(#= C:\Users\dsfjk.julia\packages\PyCall\L0fLP\src\pyfncall.jl:43 =# @pysym(:PyObject_Call), PyPtr, (PyPtr, PyPtr, PyPtr), o, pyargsptr, kw))))) <class 'ModuleNotFoundError'> ModuleNotFoundError("No module named 'mpmath'") File "C:\Users\dsfjk.julia\conda\3\lib\imp.py", line 234, in load_module return load_source(name, filename, file) File "C:\Users\dsfjk.julia\conda\3\lib\imp.py", line 171, in load_source module = _load(spec) File "", line 711, in _load File "", line 680, in _load_unlocked File "", line 850, in exec_module File "", line 228, in _call_with_frames_removed File "C:\Users\dsfjk.julia\packages\AirfoilPrep\zbkxG\src\airfoilprep.py", line 27, in import cmath, mpmath

skywo1f commented 2 years ago

I have mpmath installed in python, but apparently julia cant find it

skywo1f commented 2 years ago

Failed to precompile FLOWUnsteady [b491798d-ac6e-455f-a27c-49c10bb0a666] to C:\Users\dsfjk.julia\compiled\v1.7\FLOWUnsteady\jl_22DA.tmp.

Stacktrace: [1] error(s::String) @ Base .\error.jl:33 [2] compilecache(pkg::Base.PkgId, path::String, internal_stderr::IO, internal_stdout::IO, ignore_loaded_modules::Bool) @ Base .\loading.jl:1466 [3] compilecache(pkg::Base.PkgId, path::String) @ Base .\loading.jl:1410 [4] _require(pkg::Base.PkgId) @ Base .\loading.jl:1120 [5] require(uuidkey::Base.PkgId) @ Base .\loading.jl:1013 [6] require(into::Module, mod::Symbol) @ Base .\loading.jl:997 [7] eval @ .\boot.jl:373 [inlined] [8] include_string(mapexpr::typeof(REPL.softscope), mod::Module, code::String, filename::String) @ Base .\loading.jl:1196 [9] #invokelatest#2 @ .\essentials.jl:716 [inlined] [10] invokelatest @ .\essentials.jl:714 [inlined] [11] (::VSCodeServer.var"#150#151"{VSCodeServer.NotebookRunCellArguments, String})() @ VSCodeServer c:\Users\dsfjk.vscode\extensions\julialang.language-julia-1.5.8\scripts\packages\VSCodeServer\src\serve_notebook.jl:18 [12] withpath(f::VSCodeServer.var"#150#151"{VSCodeServer.NotebookRunCellArguments, String}, path::String) @ VSCodeServer c:\Users\dsfjk.vscode\extensions\julialang.language-julia-1.5.8\scripts\packages\VSCodeServer\src\repl.jl:185 [13] notebook_runcell_request(conn::VSCodeServer.JSONRPC.JSONRPCEndpoint{Base.PipeEndpoint, Base.PipeEndpoint}, params::VSCodeServer.NotebookRunCellArguments) @ VSCodeServer c:\Users\dsfjk.vscode\extensions\julialang.language-julia-1.5.8\scripts\packages\VSCodeServer\src\serve_notebook.jl:14 [14] dispatch_msg(x::VSCodeServer.JSONRPC.JSONRPCEndpoint{Base.PipeEndpoint, Base.PipeEndpoint}, dispatcher::VSCodeServer.JSONRPC.MsgDispatcher, msg::Dict{String, Any}) @ VSCodeServer.JSONRPC c:\Users\dsfjk.vscode\extensions\julialang.language-julia-1.5.8\scripts\packages\JSONRPC\src\typed.jl:67 [15] serve_notebook(pipename::String; crashreporting_pipename::String) @ VSCodeServer c:\Users\dsfjk.vscode\extensions\julialang.language-julia-1.5.8\scripts\packages\VSCodeServer\src\serve_notebook.jl:94 [16] top-level scope @ c:\Users\dsfjk.vscode\extensions\julialang.language-julia-1.5.8\scripts\notebook\notebook.jl:12 [17] include(mod::Module, _path::String) @ Base .\Base.jl:418 [18] exec_options(opts::Base.JLOptions) @ Base .\client.jl:292 [19] _start() @ Base .\client.jl:495

skywo1f commented 2 years ago

also ERROR: LoadError: InitError: PyError ($(Expr(:escape, :(ccall(#= C:\Users\dsfjk.julia\packages\PyCall\L0fLP\src\pyfncall.jl:43 =# @pysym(:PyObject_Call), PyPtr, (PyPtr, PyPtr, PyPtr), o, pyargsptr, kw))))) <class 'ModuleNotFoundError'> ModuleNotFoundError("No module named 'scipy'")

but

julia> Pkg.add("SciPy") Resolving package versions... No Changes to C:\Users\dsfjk\.julia\environments\v1.7\Project.toml No Changes to C:\Users\dsfjk\.julia\environments\v1.7\Manifest.toml

EdoAlvarezR commented 2 years ago

See installation instructions in documentation: https://flow.byu.edu/FLOWUnsteady/tutorials/installation-instructions/

Make sure that the python binary that you instructed Julia to use in ENV["PYTHON"] = "path/to/your/python3" has matplotlib, mpmath, and scipy available.