35,135
社区成员
关于julia语言:
代码github链接
(https://github.com/SimonEnsemble/mpn_charges/tree/master/build_graphs)
想跑通里面的这个文件 [Construct graphs representing the MOF.ipynb]
但自己用VScode去运行
using PorousMaterials # use major_refactor branch.
using Base #这是个标准模块
using DataFrames
using PyPlot
using NPZ
using CSV
using LightGraphs
using LinearAlgebra
using Logging
using Printf
using DelimitedFiles
using ProgressMeter
using PyCall
push!(LOAD_PATH, pwd()) # to see Bonds.jl
using Bonds
using Statistics
# global_logger(Logging.SimpleLogger(stdout, Logging.Info)) # to print @debug put Logging.Debug
global_logger(Logging.SimpleLogger(stdout, Logging.Debug)) # to print @debug put Logging.Debug
┌ Info: Precompiling Bonds [top-level]
└ @ Base loading.jl:1273
WARNING: Method definition dot(Any, Any, Any) in module Compat at C:\Users\zzh666\.julia\packages\Compat\LtJN6\src\Compat.jl:172 overwritten in module Optim at C:\Users\zzh666\.julia\packages\Optim\cJRng\src\multivariate\precon.jl:24.
** incremental compilation may be fatally broken for this module **
ERROR: LoadError: UndefVarError: Crystal not defined
Stacktrace:
[1] top-level scope at c:\Users\zzh666\Desktop\任务\任务13-3\mpn_charges-master\build_graphs\Bonds.jl:36
[2] include at .\boot.jl:328 [inlined]
[3] include_relative(::Module, ::String) at .\loading.jl:1105
[4] include(::Module, ::String) at .\Base.jl:31
[5] top-level scope at none:2
[6] eval at .\boot.jl:330 [inlined]
[7] eval(::Expr) at .\client.jl:425
[8] top-level scope at .\none:3
in expression starting at c:\Users\zzh666\Desktop\任务\任务13-3\mpn_charges-master\build_graphs\Bonds.jl:36
Failed to precompile Bonds [top-level] to C:\Users\zzh666\.julia\compiled\v1.3\Bonds.ji.
Stacktrace:
[1] error(::String) at .\error.jl:33
[2] compilecache(::Base.PkgId, ::String) at .\loading.jl:1283
[3] _require(::Base.PkgId) at .\loading.jl:1024
[4] require(::Base.PkgId) at .\loading.jl:922
[5] require(::Module, ::Symbol) at .\loading.jl:917
[6] top-level scope at In[9]:15
出现的错误不知道如何解决!