Closed tobydriscoll closed 5 years ago
I'm having the same issue. I did a bulk load, MatrixDepot.load("*/*/*")
, and now can't load any matrices. This is quite concerning.
@tobydriscoll, @GregVernon , sorry for the late response. I was busy with other projects and did not receive notification.
That is not the expected behavior. The problem is, that the program cannot find file ".../MatrixDepot/data/uf/Gset/G24.mtx" in the installation directory, see: MatrixDepot.DATA_DIR
.
The initial download should create the required directories and extract all the files in there. Maybe there is a permission problem. Could you, please, report, what MatrixDepot.DATA_DIR
is and the status of the directory.
@KlausC , no worries:
julia> MatrixDepot.DATA_DIR
"C:\\Users\\gregj\\.julia\\packages\\MatrixDepot\\E06jU\\data"
julia> uperm(MatrixDepot.DATA_DIR)
0x06
Unfortunately I have no windows installation at hand.
Unix user permissions for data
I would expect 0x07
, while the printout looks fine. On Linux the execute bit for directories is required in order to be allowed to access subdirectories.
Can you tell me what is in data
? There should be subdirectories uf
and uf\Gset\G24
with proper permissions.
Maybe it is a good idea to make data/uf
and data/mm
soft links referring to directories in your home area, where you have full control. That is what I did, in order to keep the precious downloaded data at a save place (some of the files are really big - like 1 GiB).
macos here.
driscoll@src\> ls -l ~/.julia/packages/MatrixDepot/E06jU/
total 72
-r--r--r-- 1 driscoll WIN\Domain Users 1167 Dec 7 11:30 LICENSE.md
-r--r--r-- 1 driscoll WIN\Domain Users 5459 Dec 7 11:30 NEWS.md
-r--r--r-- 1 driscoll WIN\Domain Users 16920 Dec 7 11:30 README.md
-r--r--r-- 1 driscoll WIN\Domain Users 15 Dec 7 11:30 REQUIRE
drwxr-xr-x 8 driscoll WIN\Domain Users 256 Jan 15 14:12 data
drwxr-xr-x 20 driscoll WIN\Domain Users 640 Dec 7 11:30 doc
drwxr-xr-x 4 driscoll WIN\Domain Users 128 Jan 15 14:11 myMatrixDepot
drwxr-xr-x 14 driscoll WIN\Domain Users 448 Dec 7 11:30 src
drwxr-xr-x 56 driscoll WIN\Domain Users 1792 Dec 7 11:30 test
driscoll@src\> ls -l ~/.julia/packages/MatrixDepot/E06jU/data
total 3720
-r--r--r-- 1 driscoll WIN\Domain Users 427 Dec 7 11:30 README.md
-rw-r--r-- 1 driscoll WIN\Domain Users 471128 Jan 15 14:11 db.data
-r--r--r-- 1 driscoll WIN\Domain Users 41539 Dec 7 11:30 mm_matrices.html
-r-xr-xr-x 1 driscoll WIN\Domain Users 161 Dec 7 11:30 tamufilter
drwxr-xr-x 8 driscoll WIN\Domain Users 256 Jan 16 14:40 uf
-r--r--r-- 1 driscoll WIN\Domain Users 1373626 Dec 7 11:30 uf_matrices.html
driscoll@src\> ls -l ~/.julia/packages/MatrixDepot/E06jU/data/uf
total 0
drwxr-xr-x 4 driscoll WIN\Domain Users 128 Jan 15 14:29 Arenas
drwxr-xr-x 4 driscoll WIN\Domain Users 128 Jan 16 14:46 Gset
drwxr-xr-x 3 driscoll WIN\Domain Users 96 Jan 16 14:40 Newman
drwxr-xr-x 3 driscoll WIN\Domain Users 96 Jan 15 14:12 Pajek
drwxr-xr-x 3 driscoll WIN\Domain Users 96 Jan 15 14:28 SNAP
drwxr-xr-x 3 driscoll WIN\Domain Users 96 Jan 16 14:39 VDOL
driscoll@src\> ls -l ~/.julia/packages/MatrixDepot/E06jU/data/uf/Gset/
total 0
drwxr-xr-x 3 driscoll WIN\Domain Users 96 Jan 16 14:37 G12
drwxr-xr-x 3 driscoll WIN\Domain Users 96 Jan 16 14:46 G24
driscoll@src\> ls -l ~/.julia/packages/MatrixDepot/E06jU/data/uf/Gset/G12
total 40
-rw------- 1 driscoll WIN\Domain Users 16913 Jan 29 2007 G12.mtx
driscoll@src\> ls -l ~/.julia/packages/MatrixDepot/E06jU/data/uf/Gset/G24
total 352
-rw------- 1 driscoll WIN\Domain Users 178271 Jan 29 2007 G24.mtx
@tobydriscoll, the dir and file permissions look fine. Could you compare the output and report:
julia> md = mdopen("*/G24")
(PS Gset/G24(#485) 2000x2000(39980/19990) 1996 [A] 'undirected random graph' [Random matrix, 1% uniformly distributed. G24=pattern of G29]()
julia> MatrixDepot.metadata(md)
1-element Array{AbstractString,1}:
"G24.mtx"
julia> MatrixDepot.metasymbols(md)
1-element Array{Symbol,1}
:A
Another attempt:
Try again after removing data/db.data
, then restart julia.
I could reproduce the error. It is a bug and will be fixed soon. As a work-around you have to:
md = mdopen("*/G24")
MatrixDepot.addmetadata!(md.data)
Cool, thanks.
@tobydriscoll Would you be able to try out master to see if the issue has been completely resolved and let us know how it goes?
I had to first ] rm MatrixDepot
, then ] add MatrixDepot#master
, and then it works.
This fixed the bug for me as well. Perhaps this bugfix could get put in a release?
When I access a SuiteSparse matrix for the first time, everything is fine. When I quit and restart Julia, though, I get a fatal error. Example: