哪位大佬救救孩子:Failed to precompile Bonds [top-level] to C:\Users\zzh666\.julia\compiled\v1.3\Bonds.ji.

kuaile6666666 2022-06-18 15:51:07

代码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

出现的错误不知道如何解决!

...全文
113 1 打赏 收藏 举报
写回复
1 条回复
切换为时间正序
请发表友善的回复…
发表回复

请问解决了么?我现在也遇到这个问题

  • 打赏
  • 举报
回复
发帖
人工智能技术

4207

社区成员

专题开发/技术/项目 人工智能技术
社区管理员
  • community_35
  • Ashley0001
  • 大龙剑神
加入社区
帖子事件
创建了帖子
2022-06-18 15:51
社区公告
暂无公告