因项目要求进行机器学习数据可视化,要求尝试使用Julia,在此,记录下遇到的坑,仅为记录效果。后续陆续更新。

问题一:关于LightML库中的坑:ERROR: LoadError: syntax: try without catch or finally

问题描述: 

ENV["PYTHON"]=""
Pkg.add("Conda")
using Conda
Conda.add("python==2.7.13")
Conda.add("matplotlib")
Conda.add("scikit-learn")
Pkg.add("PyCall")
Pkg.build("PyCall")
Pkg.clone("https://github.com/memoiry/LightML.jl")

当使用using LightML时出现问题:ERROR: LoadError: syntax: try without catch or finally

[ Info: Precompiling LightML [21c72615-c80e-5f28--21b7f06a9402]
ERROR: LoadError: syntax: try without catch or finally
Stacktrace:
[] include at .\boot.jl: [inlined]
[] include_relative(::Module, ::String) at .\loading.jl:
[] include(::Module, ::String) at .\sysimg.jl:
[] top-level scope at none:
[] eval at .\boot.jl: [inlined]
[] eval(::Expr) at .\client.jl:
[] top-level scope at .\none:
in expression starting at C:\Users\admin\.julia\packages\Gadfly\ojGNo\src\Gadfly.jl:
ERROR: LoadError: Failed to precompile Gadfly [c91e804a-d5a3-530f-b6f0-dfbca275c004] to C:\Users\admin\.julia\compiled\v1.\Gadfly\DvECm.ji.
Stacktrace:
[] error(::String) at .\error.jl:
[] macro expansion at .\logging.jl: [inlined]
[] compilecache(::Base.PkgId, ::String) at .\loading.jl:
[] _require(::Base.PkgId) at .\logging.jl:
[] require(::Base.PkgId) at .\loading.jl:
[] macro expansion at .\logging.jl: [inlined]
[] require(::Module, ::Symbol) at .\loading.jl:
[] include at .\boot.jl: [inlined]
[] include_relative(::Module, ::String) at .\loading.jl:
[] include(::Module, ::String) at .\sysimg.jl:
[] top-level scope at none:
[] eval at .\boot.jl: [inlined]
[] eval(::Expr) at .\client.jl:
[] top-level scope at .\none:
in expression starting at C:\Users\admin\.julia\dev\LightML\src\LightML.jl:
ERROR: Failed to precompile LightML [21c72615-c80e-5f28--21b7f06a9402] to C:\Users\admin\.julia\compiled\v1.\LightML\hSDel.ji.
Stacktrace:
[] error(::String) at .\error.jl:
[] macro expansion at .\logging.jl: [inlined]
[] compilecache(::Base.PkgId, ::String) at .\loading.jl:
[] _require(::Base.PkgId) at .\logging.jl:
[] require(::Base.PkgId) at .\loading.jl:
[] macro expansion at .\logging.jl: [inlined]
[] require(::Module, ::Symbol) at .\loading.jl:

问题分析:

  很明显这是由于try...catch../finally的问题

问题解决:

  定位到文件Gadfly.jl,在980行处加上catch即可,此类问题都可以这样处理。

Julia出现错误ERROR: LoadError: syntax: try without catch or finally的更多相关文章

  1. LINK : fatal error LNK1117: syntax error in option 'VERSION:1.6.5'

    今天在用vs2015编译ogre 1.6.5的代码时发生连接错误 LINK : fatal error LNK1117: syntax error in option 'VERSION:1.6.5'. ...

  2. error C2143: syntax error : missing ';' before 'type'

    许久之前,就想看看C和C++,看看这两种神奇的编程语言,但是一直被这样或者那样的琐事给耽搁了(狂喷自己的拖延症). 今天翻开自己的移动硬盘找到一本古老的书籍:<The C Programming ...

  3. Keil C51编译报错error C141: syntax error

    错误代码: typedef unsigned char uchar uchar KeyRowColumnScan() { GPIO_KEY = 0x0f; uchar key_value = ; // ...

  4. VC++中编译C出错:error C2143: syntax error : missing ';' before 'type'

    转摘自:http://preceo.blog.51cto.com/6225017/1130931 近来写程序时发现了一个问题,用 VC 编译 C语言是 总是提示一个错误:error C2143: sy ...

  5. error C2143: syntax error : missing ';' before '}'

    今天弄Tab控件,干了一件非常愚蠢的事,没有去声明头文件.这也是今天要记录的问题,提示如下各种 前面一个符号是错误的.如果初学者遇到,算作一个提示,记得声明新类的.h 头文件 标签空间再进一步.cpp ...

  6. Ubuntu12.04安装64位系统出现编译错误error while loading shared libraries: libz.so.1: cannot open shared object file: No such file or dir

    问题: Ubuntu12.04安装64位系统出现编译错误error while loading shared libraries: libz.so.1: cannot open shared obje ...

  7. Apache错误:[error] (OS 10038)在一个非套接字上尝试了一个操作

    Apache错误:[error] (OS 10038)在一个非套接字上尝试了一个操作          博客分类: vb2005xu软件学习 OSApache防火墙PHPWindows  日志如下:[ ...

  8. mysql安装过程中出现错误ERROR 1820 (HY000): You must SET PASSWORD before executing this statement解决

    mysql安装过程中出现错误ERROR 1820 (HY000): You must SET PASSWORD before executing this statement解决   最近新装好的my ...

  9. 【转】win7与ubuntu双系统,删除ubuntu后,启动错误error:no such partition grub rescue的修复--不错

    原文网址:http://blog.sina.com.cn/s/blog_541900d50101eu9r.html win7于ubuntu双系统,进入windows后直接格式化硬盘分区将ubuntu删 ...

随机推荐

  1. 集合综合练习<三>

    package com.JiHeTotal; import java.util.Comparator; import java.util.Map; import java.util.Map.Entry ...

  2. LOJ-6277-数列分块入门1(分块)

    链接: https://loj.ac/problem/6277 题意: 给出一个长为 的数列,以及 个操作,操作涉及区间加法,单点查值. 思路: 线段树可以解决,用来学习分块. 分块概念就是,将序列分 ...

  3. mysql 查询碎片的方法

    mysql 查询碎片的方法 mysql length,engine,data_free,table_rows group by table_name order by table_rows asc; ...

  4. python3中OpenCV imwrite保存中文路径文件

    原先一段将特征值保存为图片的代码,这部分学生的电脑上运行没有生成图片 代码的基本样子是: import os import cv2 import numpy as np def text_to_pic ...

  5. tensorflow 中 name_scope和variable_scope

    import tensorflow as tf with tf.name_scope("hello") as name_scope: arr1 = tf.get_variable( ...

  6. Python 列表(List)Ⅱ

    删除列表元素 可以使用 del 语句来删除列表的元素,如下实例: . 以上实例输http://www.xuanhe.net/出结果: 注意:我们会在接下来的章节讨论remove()方法的使用 Pyth ...

  7. 对ECMAScript的研究-----------引用

    ECMAScript 新特性与标准提案 一:ES 模块 第一个要介绍的 ES 模块,由于历史上 JavaScript 没有提供模块系统,在远古时期我们常用多个 script 标签将代码进行人工隔离.但 ...

  8. The Preliminary Contest for ICPC Asia Shanghai 2019 L. Digit sum

    题目:https://nanti.jisuanke.com/t/41422 思路:预处理 #include<bits/stdc++.h> using namespace std; ][]= ...

  9. fiddler界面工具栏介绍(二)

    工具栏介绍 1.Winconfig,Windows 使用了一种称为“AppContainer”的隔离技术,使得一些进程的流量无法捕获,打开WinConfig后可设置解除隔离. 2.气泡按钮,给sess ...

  10. vue学习-day01(vue指令)

    目录: 1.什么是vue.js    2.为什么要学习前端的流行框架    3.框架和库的区别    4.后端MVC和前端的MVVM的区别    5.vue.js的基本代码--hollo world代 ...