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删 ...
随机推荐
- python 脚本制作
U盘拷贝 当U盘插入主机时 被系统识别挂载后 通过python代码自动的去读取U盘中的资料并且进行拷贝 寄存在U盘上的 把硬盘上的资料进行读取并移动到U盘里 有点像 繁殖性 传输性 破坏性 破坏系统或 ...
- 对0.5px的边的研究--------------引用
什么是像素? 像素是屏幕显示最小的单位,在一个1080p的屏幕上,它的像素数量是1920 1080,即横边有1920个像素,而竖边为1080个.一个像素就是一个单位色块,是由rgba四个通道混合而成. ...
- 1.关于python 的hmac加密
import base64 import hmac import urllib from hashlib import sha1 expires = b" # 过期时间戳 uuid = 'a ...
- 面向对象this关键字的内存图解
this:哪个对象调用方法,this就代表哪个对象 案例1: //定义老师类 class Teacher { private String name; private int age; public ...
- java文件断点续传的简单实现
一.概述 所谓断点续传,其实只是指下载,也就是要从文件已经下载的地方开始继续下载.在以前版本的HTTP协议是不支持断点的,HTTP/1.1开始就支持了.一般断点下载时才用到Range和Content- ...
- java大文件上传
上次遇到这样一个问题,客户上传高清视频(1G以上)的时候上传失败. 一开始以为是session过期或者文件大小受系统限制,导致的错误.查看了系统的配置文件没有看到文件大小限制,web.xml中sees ...
- 洛谷 P3049 Landscaping ( 贪心 || DP)
题意 : 有n块土地,每块有A[i]泥土,现把其改造成B[i]泥土,有3种操作:(1)花费X向任意土地增加1泥土:(2)花费Y向任意土地减少1泥土:(3)花费Z*|i-j|把土地i的1泥土运到土地j. ...
- 文本框——EditText
长度
- POJ 2289 多重二分匹配+二分 模板
题意:在通讯录中有N个人,每个人能可能属于多个group,现要将这些人分组m组,设各组中的最大人数为max,求出该最小的最大值 下面用的是朴素的查找,核心代码find_path复杂度是VE的,不过据说 ...
- TTTTTTTTTTTTT LA 2191 树状数组 稍修改
题意:给出n个数字,操作有修改(S)和输出区间和(M). #include <iostream> #include <cstdio> #include <cstring& ...