Julia出现错误ERROR: LoadError: syntax: try without catch or finally
因项目要求进行机器学习数据可视化,要求尝试使用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的更多相关文章
- 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'. ...
- error C2143: syntax error : missing ';' before 'type'
许久之前,就想看看C和C++,看看这两种神奇的编程语言,但是一直被这样或者那样的琐事给耽搁了(狂喷自己的拖延症). 今天翻开自己的移动硬盘找到一本古老的书籍:<The C Programming ...
- Keil C51编译报错error C141: syntax error
错误代码: typedef unsigned char uchar uchar KeyRowColumnScan() { GPIO_KEY = 0x0f; uchar key_value = ; // ...
- VC++中编译C出错:error C2143: syntax error : missing ';' before 'type'
转摘自:http://preceo.blog.51cto.com/6225017/1130931 近来写程序时发现了一个问题,用 VC 编译 C语言是 总是提示一个错误:error C2143: sy ...
- error C2143: syntax error : missing ';' before '}'
今天弄Tab控件,干了一件非常愚蠢的事,没有去声明头文件.这也是今天要记录的问题,提示如下各种 前面一个符号是错误的.如果初学者遇到,算作一个提示,记得声明新类的.h 头文件 标签空间再进一步.cpp ...
- 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 ...
- Apache错误:[error] (OS 10038)在一个非套接字上尝试了一个操作
Apache错误:[error] (OS 10038)在一个非套接字上尝试了一个操作 博客分类: vb2005xu软件学习 OSApache防火墙PHPWindows 日志如下:[ ...
- 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 ...
- 【转】win7与ubuntu双系统,删除ubuntu后,启动错误error:no such partition grub rescue的修复--不错
原文网址:http://blog.sina.com.cn/s/blog_541900d50101eu9r.html win7于ubuntu双系统,进入windows后直接格式化硬盘分区将ubuntu删 ...
随机推荐
- 【NOIP2017提高组模拟6.27】C
题目 蜘蛛精大爷是世界上最爷的爷,ta的图论专著<蜘蛛精大爷教你学做人OI之图论>正在热卖,只要233美元一本,每人限购一本......在某弱的不懈要求下,ta给某弱出了一道题,然而某弱太 ...
- linux操作目录命令之mkdir与rmdir
一.mkdir 创建目录(一个或多个目录) mkdir -m 777 -p path 1)-m 对新建目录设置权限 2)-p 可以是一个路径名称.此时若路径的某一级目录尚不存在,使有该选项后系统 ...
- Linux基础教程 linux下使用find命令根据系统时间查找文件用法
LinuxFind 兄弟连Linux培训 总结这些时间戳包括 复制代码代码如下: mtime 文件内容上次修改时间 atime 文件被读取或访问的时间 ctime 文件状态变化时间 mtime 和 ...
- C++ -- 类与成员
一.初始化列表 1.是构造函数中一种成员的初始化方式 例如,class 类名 { 类名(参数列表):成员1(成员1),成员2(成员2)... { } } 2.用此方法可以解决类中的成员与 ...
- 洛谷P2482 [SDOI2010]猪国杀——题解
猪国杀,模拟题的一颗耀眼的明珠,成长大牛.锻炼码力必写题! 模拟题没什么思维难度.只要按部就班地去做就是.模拟简单在这,难也在这.因为题面巨长,条件巨多,忽疏一点都有可能全盘皆输.故推荐考试时碰见了, ...
- PISCES: A Programmable, Protocol-Independent Software Switch
Name of article:PISCES: A Programmable, Protocol-Independent Software Switch Origin of the article:S ...
- Python爬取中文页面的时候出现的乱码问题(续)
我在上一篇博客中说明了在爬取数据的时候,把数据写入到文件的乱码问题 在这一篇里面我做一个总结: 1.首先应该看一个案例 我把数据写在.py文件中: #coding:utf-8 s = 'hehe测试中 ...
- 《Effective Java》读书笔记 - 11.序列化
Chapter 11 Serialization Item 74: Implement Serializable judiciously 让一个类的实例可以被序列化不仅仅是在类的声明中加上" ...
- 《Effective Java》读书笔记 - 9.异常
Chapter 9 Exceptions Item 57: Use exceptions only for exceptional conditions 这条item的意思就是,千万不要用except ...
- 模板引擎ejs的include方法
html无法include header.ejs footer.ejs 最后用 user.ejs在首尾include