因项目要求进行机器学习数据可视化,要求尝试使用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. C++在delete指针后要赋值为NULL

    C++标准规定:delete空指针是合法的,没有副作用. 所以我们在Delete指针后赋值为NULL或0是个好习惯.对一个非空指针delete后,若没有赋NULL,若再次delete的话 有可能出现问 ...

  2. git windows下换行符问题

    不同操系统下的换行符 CR回车 LF换行 Windows/Dos CRLF \r\n Linux/Unix LF \n MacOS CR \r 1.执行git config --get core.au ...

  3. BigDecimal除法问题

    BigDecimal类的主要功能是进行小数的大数计算,而且最重要的是可以精确到指定的四舍五入位数. 如果要进行四舍五入的操作,则必须依靠以下的方法:public BigDecimal divide(B ...

  4. strcat()与strcpy()用法

    1.strcpy (1)原型 extern char *strcpy(char *dest,char *src); (2)用法 #include <cstring> (3)功能 把src所 ...

  5. 2019 Multi-University Training Contest 3 T7 Find the answer

    Find the answer Time Limit: 4000/4000 MS (Java/Others) Memory Limit: 65536/65536 K (Java/Others)Tota ...

  6. (45)FreeRTOS学习之二

    一:架构概述 FreeRTOS是一个相对较小的应用程序.最小化的FreeRTOS内核仅包括3个(.c)文件和少数头文件,总共不到9000行代码,还包括了注释和空行.一个典型的编译后(二进制)代码映像小 ...

  7. Jenkins部署从节点

    由于jenkins上承载项目太多,需要专门的节点来执行需要构建的操作. 参考:https://www.cnblogs.com/lxs1314/p/7551309.html job仅使用绑定的slave ...

  8. [BZOJ4237]稻草人:CDQ分治+单调栈

    分析 按\(y\)排序后CDQ分治,可以发现每个点可以影响的是\(x\)坐标的一段区间,可以使用扫描线+单调栈,在单调栈上二分即可解决,时间复杂度\(O(n \log^2 n)\). 通过归并排序可以 ...

  9. Spring Boot教程(十八)构建RESTful API

    首先,回顾并详细说明一下在快速入门中使用的@Controller.@RestController.@RequestMapping注解.如果您对Spring MVC不熟悉并且还没有尝试过快速入门案例,建 ...

  10. xor or and 线段树

    每一位维护一颗线段树 (-1)^1 =-2 (-2)^1=-1 #include <cstdio> #include<iostream> using namespace std ...