因项目要求进行机器学习数据可视化,要求尝试使用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. mysql的一些方法

    线程: isLive(); 测试线程是否处于活动状态. long getId() 返回该线程的标识符. String getName() 返回该线程的名称. currentThread(); 返回对当 ...

  2. web project 解决 中文乱码问题

    1.get请求-->在tomcat-->conf-->server.xml <Connector connectionTimeout="20000" por ...

  3. mysql分组排序加序号

    参照https://www.cnblogs.com/CharlieLau/p/6737243.html 一.需求 新加一个Sort 字段,初始值为1,按照parentID分组添加sort值. 根据原数 ...

  4. CSS布局之flexbox

    参考链接: https://www.cnblogs.com/qingchunshiguang/p/8011103.html 练习代码 <!DOCTYPE html> <html la ...

  5. AtCoder AGC002E Candy Piles (博弈论)

    神仙题..表示自己智商不够想不到... 好几次读成最后拿的赢了,导致一直没看懂题解... 题目链接: https://atcoder.jp/contests/agc002/tasks/agc002_e ...

  6. 最全的Android开发资源整理--进阶必备

    原文链接: http://stormzhang.github.io/android/2014/06/05/android-awesome-resources/ (友情提醒:最近google的很多服务被 ...

  7. 哈夫曼(Huffman)树及其应用

    Huffman树又称最优树,是一类带权路径长度最短的树,带权路径长度为从该节点到树根之间的路径长度与节点上权值的成积. 那么如何构建一个Huffman树呢?就需要Huffman算法 1.利用给定的n个 ...

  8. Oracle Mysql MSSql 三种数据库 随机查询 条 语句

    1. Oracle,随机查询查询语句-20条 select * from (  select  *  from 表名 order by dbms_random.value ) where rownum ...

  9. LeetCode_1114.按顺序打印(多线程)

    LeetCode_1114 LeetCode-1114.按顺序打印 我们提供了一个类: public class Foo { public void one() { print("one&q ...

  10. maven依赖传递和排除依赖冲突

    1 依赖的传递 假如 A项目 依赖 a.jar 1.0.1,b.jar 1.0.1,没有直接依赖c.jar 1.0.1,但是b.jar 1.0.1依赖了c.jar 1.0.1,可以说A项目间接依赖了c ...