cldf-datasets / doreco

CLDF dataset derived from DoReCo's core corpus
https://doreco.info/
3 stars 0 forks source link

Run all #28

Closed FredericBlum closed 10 months ago

FredericBlum commented 10 months ago

The changes in this PR fix one of the two issues described in #27 . The other issue ("utils" not being loaded) remains. It seems that I also have another, related issue: The custom commands do not get loaded correctly when I follow the described workflow. This is despite running pip install -e . before. The following error occurs:

(doreco_test) blum@lingn45 doreco % time cldfbench doreco.query --format tsv init_query.sql > res.tsv
/Users/blum/Projects/venv/doreco_test/lib/python3.11/site-packages/clldutils/clilib.py:291: UserWarning: ImportError loading entry point doreco
  warnings.warn('ImportError loading entry point {0.name}'.format(ep))
usage: cldfbench [-h] [--log-level LOG_LEVEL] [-z FIELD_SIZE_LIMIT]
                 [--random-seed RANDOM_SEED]
                 COMMAND ...
cldfbench: error: argument COMMAND: invalid choice: 'doreco.query' (choose from 'catconfig', 'catinfo', 'catupdate', 'check', 'ci', 'cldfreadme', 'diff', 'download', 'geojson', 'info', 'ls', 'makecldf', 'media', 'new', 'readme', 'run', 'stub', 'zenodo')

@xrotwang Is there any way I need to call up setup.py for the custom commands to get loaded correctly?

xrotwang commented 10 months ago

Do you run the install in a virtual env? If not it may be permission problem with the global python installation.

Frederic Blum @.***> schrieb am Di., 5. Dez. 2023, 12:23:

The changes in this PR fix one of the two issues described in #27 https://github.com/cldf-datasets/doreco/issues/27 . The other issue ("utils" not being loaded) remains. It seems that I also have another, related issue: The custom commands do not get loaded correctly when I follow the described workflow. This is despite running pip install -e . before. The following error occurs:

(doreco_test) @.*** doreco % time cldfbench doreco.query --format tsv init_query.sql > res.tsv /Users/blum/Projects/venv/doreco_test/lib/python3.11/site-packages/clldutils/clilib.py:291: UserWarning: ImportError loading entry point doreco warnings.warn('ImportError loading entry point {0.name}'.format(ep)) usage: cldfbench [-h] [--log-level LOG_LEVEL] [-z FIELD_SIZE_LIMIT] [--random-seed RANDOM_SEED] COMMAND ... cldfbench: error: argument COMMAND: invalid choice: 'doreco.query' (choose from 'catconfig', 'catinfo', 'catupdate', 'check', 'ci', 'cldfreadme', 'diff', 'download', 'geojson', 'info', 'ls', 'makecldf', 'media', 'new', 'readme', 'run', 'stub', 'zenodo')

@xrotwang https://github.com/xrotwang Is there any way I need to call up setup.py for the custom commands to get loaded correctly?

You can view, comment on, or merge this pull request online at:

https://github.com/cldf-datasets/doreco/pull/28 Commit Summary

File Changes

(2 files https://github.com/cldf-datasets/doreco/pull/28/files)

Patch Links:

— Reply to this email directly, view it on GitHub https://github.com/cldf-datasets/doreco/pull/28, or unsubscribe https://github.com/notifications/unsubscribe-auth/AAGUOKFZCAMYXOSACQ3IUE3YH374BAVCNFSM6AAAAABAHQPJBKVHI2DSMVQWIX3LMV43ASLTON2WKOZSGAZDKOJVHAZTGOA . You are receiving this because you were mentioned.Message ID: @.***>