Closed FredericBlum closed 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
- b6c0510 https://github.com/cldf-datasets/doreco/pull/28/commits/b6c0510ca209208716d83256eecf8881c0090e9a fix license issue
- 09600ad https://github.com/cldf-datasets/doreco/pull/28/commits/09600adbdbcc184f5d6b82d6fbaf54f593b6ae79 update clldutils
File Changes
(2 files https://github.com/cldf-datasets/doreco/pull/28/files)
- M cldf/requirements.txt https://github.com/cldf-datasets/doreco/pull/28/files#diff-9eff341fbfab74a7e5e75877c211a8cd751fcf10e0aebdfcdb5af6024c4a57ef (21)
- M cldfbench_doreco.py https://github.com/cldf-datasets/doreco/pull/28/files#diff-fca4d419af4aec1b51991b1897e37f88b1fe3db940dc3034c0356d78fe3b0bba (2)
Patch Links:
- https://github.com/cldf-datasets/doreco/pull/28.patch
- https://github.com/cldf-datasets/doreco/pull/28.diff
— 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: @.***>
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:@xrotwang Is there any way I need to call up
setup.py
for the custom commands to get loaded correctly?