denshoproject / ddr-cmdln

Command-line tools for automating the Densho Digital Repository's various processes.
Other
0 stars 2 forks source link

`DeprecationWarning: pkg_resources` when running `ddr sync` #238

Open gjost opened 9 months ago

gjost commented 9 months ago

Sara: I got a strange message when running ddr sync on maunakea . The sync was successful. But I'm not sure what this message means,

(cmdln) ddr@maunakea:/media/qnfs/kinkura/gold/ddr-densho-477$ ddr sync -u DDRAdmin -m maunakea@hq.densho.org -c /media/qnfs/kinkura/gold/ddr-densho-477
/opt/ddr-cmdln/venv/cmdln/bin/ddr:4: DeprecationWarning: pkg_resources is deprecated as an API. See https://setuptools.pypa.io/en/latest/pkg_resources.html
  __import__('pkg_resources').run_script('ddr-cmdln==5.8.2', 'ddr')
gjost commented 9 months ago

Retire the old argparse ddr command and replace with the Click ddr2.