Open eromoe opened 7 years ago
And deepdive would not automaticlly create database
root@2f46265d3bfb:/data/deepdive/examples/spouse# deepdive load articles input/articles-1000.tsv.bz2
/data/deepdive/examples/spouse: Not compiled yet, please run first: deepdive compile
Loading articles from input/articles-1000.tsv.bz2 (tsv format)
psql: FATAL: database "deepdive_spous" does not exist
loading articles: 0:00:00 0 [ 0 /s] ([ 0 /s])
loading articles: 0:00:00 192KiB [2.12MiB/s] ([2.12MiB/s])
postgres=# \l
List of databases
Name | Owner | Encoding | Collate | Ctype | Access privileges
-----------+----------+-----------+---------+-------+-----------------------
postgres | postgres | SQL_ASCII | C | C |
template0 | postgres | SQL_ASCII | C | C | =c/postgres +
| | | | | postgres=CTc/postgres
template1 | postgres | SQL_ASCII | C | C | =c/postgres +
| | | | | postgres=CTc/postgres
(3 rows)
After I manually create database, then got:
Loading articles from input/articles-100.tsv.bz2 (tsv format)
ERROR: relation "articles" does not exist
loading articles: 0:00:00 12 [ 125 /s] ([ 125 /s])
loading articles: 0:00:00 132KiB [1.34MiB/s] ([1.34MiB/s])
Is there any real working guide ??
In the first log:
/data/deepdive/examples/spouse: Not compiled yet, please run first: deepdive compile
I think you missed compilation step. Before load data try to compile deepdive config file:
deepdive compile
@mcavdar He said that "I also tried the notebook inside that example, in !deepdive complile section got error"
@eromoe @nlpjoe You are right. Even in the first error, deepdive compile
line is executed.
It can be occured because of "udf/nlp_markup.sh" file's permissions. I always give all permissions(777) to udf files.
@mcavdar I still can't understand why it can't work
➜ spouse git:(master) ✗ ll udf/nlp_markup.sh
-rwxrwxrwx 1 Echo staff 1.1K 11 9 16:59 udf/nlp_markup.sh
➜ spouse git:(master) ✗ ll input
total 31112
-rw-r--r-- 1 Echo staff 136K 11 9 16:59 articles-100.tsj.bz2
-rw-r--r-- 1 Echo staff 136K 11 9 16:59 articles-100.tsv.bz2
-rw-r--r-- 1 Echo staff 1.2M 11 9 16:59 articles-1000.tsj.bz2
-rw-r--r-- 1 Echo staff 1.2M 11 9 16:59 articles-1000.tsv.bz2
-rwxr-xr-x 1 Echo staff 711B 11 9 16:59 articles.tsj.sh
-rwxrwxrwx 1 Echo staff 209K 11 10 14:45 has_spouse
-rw-r--r-- 1 Echo staff 653K 11 9 16:59 sentences-100.tsj.bz2
-rw-r--r-- 1 Echo staff 642K 11 9 16:59 sentences-100.tsv.bz2
-rw-r--r-- 1 Echo staff 5.6M 11 9 16:59 sentences-1000.tsj.bz2
-rw-r--r-- 1 Echo staff 5.4M 11 9 16:59 sentences-1000.tsv.bz2
-rwxrwxrwx 1 Echo staff 76K 11 9 16:59 spouses_dbpedia.csv.bz2
error is as same as:
2017-07-20 01:35:02.525573 [ERROR] base relation 'has_spouse' must have data to load at: input/has_spouse.*
2017-07-20 01:35:02.525592 [ERROR] FAILED deepdive check compiled_base_relations_have_input_data
@nlpjoe Did you touch app.ddlog file? What version of deepdive do you use ?(Also spouse example?) BTW I just realised a strange line in the first output.
psql: FATAL: database "deepdive_spous" does not exist
It should be deepdivespouse$USER.
Can you please let us know which steps do you execute, from scratch.
deepdive compile not working where it is giving some json error on how to debug it
Hi, example is out date http://deepdive.stanford.edu/example-spouse
I tried by below steps
but got error
[error] app.ddlog[56.48] failure:
json' expected butt' found
I also tried the notebook inside that example, in
!deepdive complile
section got error