$ ckanapi search datasets -O datasets-search.jsonl.gz -z -r https://ckan.example.com
/usr/lib/ckan/default/local/lib/python2.7/site-packages/cryptography/__init__.py:39: CryptographyDeprecationWarning: Python 2 is no longer supported by the Python core team. Support for it is now deprecated in cryptography, and will be removed in a future release.
CryptographyDeprecationWarning,
Traceback (most recent call last):
File "/usr/lib/ckan/default/bin/ckanapi", line 8, in <module>
sys.exit(main())
File "/usr/lib/ckan/default/local/lib/python2.7/site-packages/ckanapi/cli/main.py", line 146, in main
return search_datasets(ckan, arguments)
File "/usr/lib/ckan/default/local/lib/python2.7/site-packages/ckanapi/cli/search.py", line 62, in search_datasets
jsonl_output = gzip.GzipFile(fileobj=jsonl_output)
NameError: global name 'gzip' is not defined