Skip to content
This repository has been archived by the owner on Feb 9, 2020. It is now read-only.

Cartesian raises an error when testing. #9

Open
nicaiola opened this issue Nov 10, 2015 · 4 comments
Open

Cartesian raises an error when testing. #9

nicaiola opened this issue Nov 10, 2015 · 4 comments

Comments

@nicaiola
Copy link

Hi guys

I just started playing around with Julia, I wanted to try Jutho's TensorOperations library out. As soon as I started to test it I got the error message below. For either

julia> Pkg.test("Cartesian")
INFO: Testing Cartesian
ERROR: LoadError: LoadError: LoadError: MethodError: `start` has no method matching start(::Type{Symbol})
 in append_any at essentials.jl:127
 in include at ./boot.jl:261
 in include_from_node1 at ./loading.jl:304
 in require at ./loading.jl:243
 in include at ./boot.jl:261
 in include_from_node1 at ./loading.jl:304
 in include at ./boot.jl:261
 in include_from_node1 at ./loading.jl:304
 in process_options at ./client.jl:308
 in _start at ./client.jl:411
while loading /home/nicolap/.julia/v0.4/Cartesian/src/Cartesian.jl, in expression starting on line 142
while loading /home/nicolap/.julia/v0.4/Cartesian/test/tests.jl, in expression starting on line 1
while loading /home/nicolap/.julia/v0.4/Cartesian/test/runtests.jl, in expression starting on line 1
=========================================[ ERROR: Cartesian ]=========================================

failed process: Process(`/usr/bin/julia --check-bounds=yes --code-coverage=none --color=yes /home/nicolap/.julia/v0.4/Cartesian/test/runtests.jl`, ProcessExited(1)) [1]

======================================================================================================
ERROR: Cartesian had test errors
 in error at ./error.jl:21
 in test at pkg/entry.jl:753
 in anonymous at pkg/dir.jl:31
 in cd at file.jl:22
 in cd at pkg/dir.jl:31
 in test at pkg.jl:71

and

julia> Pkg.test("TensorOperations")
INFO: Testing TensorOperations
WARNING: Base.String is deprecated, use AbstractString instead.
  likely near /home/nicolap/.julia/v0.4/TensorOperations/src/TensorOperations.jl:11
WARNING: Base.String is deprecated, use AbstractString instead.
  likely near /home/nicolap/.julia/v0.4/TensorOperations/src/TensorOperations.jl:11
ERROR: LoadError: LoadError: LoadError: MethodError: `start` has no method matching start(::Type{Symbol})
 in append_any at essentials.jl:127
 in include at ./boot.jl:261
 in include_from_node1 at ./loading.jl:304
 in require at ./loading.jl:243
 in include at ./boot.jl:261
 in include_from_node1 at ./loading.jl:304
 in require at ./loading.jl:243
 in include at ./boot.jl:261
 in include_from_node1 at ./loading.jl:304
 in process_options at ./client.jl:308
 in _start at ./client.jl:411
while loading /home/nicolap/.julia/v0.4/Cartesian/src/Cartesian.jl, in expression starting on line 142
while loading /home/nicolap/.julia/v0.4/TensorOperations/src/TensorOperations.jl, in expression starting on line 28
while loading /home/nicolap/.julia/v0.4/TensorOperations/test/runtests.jl, in expression starting on line 1
=====================================[ ERROR: TensorOperations ]======================================

failed process: Process(`/usr/bin/julia --check-bounds=yes --code-coverage=none --color=yes /home/nicolap/.julia/v0.4/TensorOperations/test/runtests.jl`, ProcessExited(1)) [1]

======================================================================================================
ERROR: TensorOperations had test errors
 in error at ./error.jl:21
 in test at pkg/entry.jl:753
 in anonymous at pkg/dir.jl:31
 in cd at file.jl:22
 in cd at pkg/dir.jl:31
 in test at pkg.jl:71

I get the same error output.
Since I am very new here, I have no idea of how to fix it. Any tip/suggestion?

@timholy
Copy link
Owner

timholy commented Nov 10, 2015

I'm surprised it's even loading this package; Cartesian (the best parts) are now in Base. CC @Jutho.

@Jutho
Copy link
Contributor

Jutho commented Nov 10, 2015

I haven't tried Cartesian in julia v0.4. TensorOperations.jl itself certainly fails for other reasons. I have a newer version which is almost ready aside from updated documentation and discussing the changes/new features; unfortunately I won't have time to finalise this until after next week. It can already be tried by checking out the staged branch of TensorOperations.jl and looking at the examples in the test folder.

@nicaiola
Copy link
Author

Many thanks @Jutho, I checked out the staged branch and the test goes though smoothly. However it doesn't load the IndexNotation...

julia> using TensorOperations, IndexNotation
ERROR: ArgumentError: IndexNotation not found in path
 in require at ./loading.jl:233

Am I supposed to load it also for this version?
The (first and) last line of the doc's example below fails in either case.

using TensorOperations, IndexNotation
alpha=randn()
A=randn(5,5,5,5,5,5)
B=randn(5,5,5)
C=randn(5,5,5)
D=zeros(5,5,5)
D[l"a,b,c"]=A[l"a,e,f,c,f,g"]*B[l"g,b,e"]+alpha*C[l"c,a,b"]

@Jutho
Copy link
Contributor

Jutho commented Nov 11, 2015

Dear @nicaiola ; the docs are indeed outdated. IndexNotation is no longer needed and the way to use index notation has changed. See the test files for an example of the new syntax until the docs are updated. In case of further questions, please open an issue on the page of TensorToolbox.jl as we've drifted away from the original Cartesian.jl related error which is the focus of this issue.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants