aviks / Taro.jl

Read and write Excel, Word and PDF documents in Julia
Other
123 stars 25 forks source link

can't manage to install correctly, test fail on my computer #19

Open bcameron43 opened 9 years ago

bcameron43 commented 9 years ago

I cannot use any of the Taro functions.

Pkg.test("Taro") INFO: No packages to install, update or remove ERROR: Taro did not provide a test/runtests.jl file in error at error.jl:21 in test at pkg/entry.jl:718 in anonymous at pkg/dir.jl:28 in cd at /usr/local/Cellar/julia/0.3.10/lib/julia/sys.dylib in cd at pkg/dir.jl:28 in test at pkg.jl:67

aviks commented 9 years ago

That is really strange. Taro does indeed provide a test/runtests.jl file, as you can see here: https://github.com/aviks/Taro.jl/blob/master/test/runtests.jl

What version of Taro do you see when you do a Pkg.status()? What happens when you do a using Taro in the REPL? Which OS are you using?

bcameron43 commented 9 years ago

Using OS X 10.10.5, Taro v0.2.0

">using Taro" does not cause an error, but when I do "Taro.init()" it fails.

aviks commented 9 years ago

What error do you see when you run Taro.init()

bcameron43 commented 9 years ago

init() not defined

bcameron43 commented 9 years ago

Also, I now realise I have to rebuild each time I launch julia to avoid an error when 'using Taro'

See below ''' julia> using Taro ERROR: Cannot find java library libjvm.dylib Search Path: /Users/benjamincameron /System/Library/Java/JavaVirtualMachines/1.6.0.jdk/Contents/Home/jre/lib/server in error at error.jl:21 in findjvm at /Users/benjamincameron/.julia/v0.3/JavaCall/src/jvm.jl:65 in include at /usr/local/Cellar/julia/0.3.10/lib/julia/sys.dylib in include_from_node1 at /usr/local/Cellar/julia/0.3.10/lib/julia/sys.dylib in include at /usr/local/Cellar/julia/0.3.10/lib/julia/sys.dylib in include_from_node1 at /usr/local/Cellar/julia/0.3.10/lib/julia/sys.dylib in reload_path at loading.jl:152 in _require at loading.jl:67 in require at loading.jl:54 in include at /usr/local/Cellar/julia/0.3.10/lib/julia/sys.dylib in include_from_node1 at /usr/local/Cellar/julia/0.3.10/lib/julia/sys.dylib in reload_path at loading.jl:152 in _require at loading.jl:67 in require at loading.jl:51 while loading /Users/benjamincameron/.julia/v0.3/JavaCall/src/jvm.jl, in expression starting on line 68 while loading /Users/benjamincameron/.julia/v0.3/JavaCall/src/JavaCall.jl, in expression starting on line 33 while loading /Users/benjamincameron/.julia/v0.3/Taro/src/Taro.jl, in expression starting on line 3

julia> Pkg.build("Taro") INFO: Building Taro

julia> using Taro

julia> Taro.init() ERROR: init not defined

julia> init() ERROR: init not defined '''

aviks commented 9 years ago

OK, so right there is your issue: ERROR: Cannot find java library libjvm.dylib ....

Taro (and its underlying JavaCall package) cannot find the JVM to load. It looks like you do not have a 1.7 version of the JDK installed in your machine. JavaCall, and hence Taro does not work with 1.6.

Please see http://aviks.github.io/JavaCall.jl/index.html for documentation relating to JavaCall.

aviks commented 9 years ago

PS. I will look at making the init() error better.

EricForgy commented 8 years ago

I have a similar problem on Windows:

julia> using Taro
ERROR: LoadError: LoadError: InitError: Cannot find java library jvm.dll
Search Path:
   C:\Program Files\Julia-0.4.5

I never used JavaCall.jl, but noticed it was installed when I Pkg.add'ed Taro. It seems the installation instructions assume you have a working JavaCall.

This package looks interesting, but not enough to get me to want to fiddle with getting a proper JVM installed at this time. Any chance to make the installation smoother?

rjplevin commented 6 years ago

Just tried to install/use Taro on 0.62 on a Mac and got a seg fault:

Main> Pkg.add("Taro.jl")
INFO: Cloning cache of JavaCall from https://github.com/JuliaInterop/JavaCall.jl.git
INFO: Cloning cache of Taro from https://github.com/aviks/Taro.jl.git
INFO: Installing JavaCall v0.5.2
INFO: Installing Taro v0.5.0
INFO: Building SpecialFunctions
INFO: Building Taro
INFO:   Downloading tika-app-1.10.jar from Maven Central
  % Total    % Received % Xferd  Average Speed   Time    Time     Time  Current
                                 Dload  Upload   Total   Spent    Left  Speed
100 45.0M  100 45.0M    0     0  9229k      0  0:00:05  0:00:05 --:--:-- 10.4M
INFO:   Downloading fop-2.0 binary from Apache OSUOSL Mirror
  % Total    % Received % Xferd  Average Speed   Time    Time     Time  Current
                                 Dload  Upload   Total   Spent    Left  Speed
100 17.3M  100 17.3M    0     0  17.3M      0  0:00:01  0:00:01 --:--:-- 14.5M
INFO: Package database updated

Main> using Taro
Loaded /Library/Java/JavaVirtualMachines/jdk1.8.0_74.jdk/Contents/Home/jre/lib/server/libjvm.dylib

Main> Taro.init()

signal (11): Segmentation fault: 11
while loading no file, in expression starting on line 0
unknown function (ip: 0x1302f22b3)
Allocations: 66991281 (Pool: 66970489; Big: 20792); GC: 167
aviks commented 6 years ago

@rjplevin see here: http://juliainterop.github.io/JavaCall.jl/faq.html#segault-on-osx