bioplatformsaustralia / ckanext-bulk Goto Github PK
View Code? Open in Web Editor NEWEasy bulk access to CKAN datasets, on Windows, MacOS and Linux
License: GNU Affero General Public License v3.0
Easy bulk access to CKAN datasets, on Windows, MacOS and Linux
License: GNU Affero General Public License v3.0
If an incorrect API key is used, the files end up with html from the failed access. This causes redownloads when accessed again with a correct API key.
e.g. μ in a label name.
traceback:
File '/env/lib/python2.7/site-packages/pylons/controllers/core.py', line 107 in _inspect_call
result = self._perform_call(func, args)
File '/env/lib/python2.7/site-packages/pylons/controllers/core.py', line 60 in _perform_call
return func(**args)
File '/env/lib/python2.7/site-packages/ckanext/bulk/controller.py', line 67 in file_list
resources)
File '/env/lib/python2.7/site-packages/ckanext/bulk/zipoutput.py', line 137 in generate_bulk_zip
zf.writestr(ip('package_metadata/{}.csv'.format(typ)), schema_to_csv(typ, 'dataset_fields', typ_packages))
File '/env/lib/python2.7/site-packages/ckanext/bulk/zipoutput.py', line 91 in schema_to_csv
header.append(unicode(field['label'].encode('utf8')))
UnicodeDecodeError: 'ascii' codec can't decode byte 0xce in position 10: ordinal not in range(128)
DOS encode it.
Riley had problems with download.sh not having executable permissions when he unzip'd the download script
https://bioplatforms.zendesk.com/agent/tickets/1380
He was using the University of Melbourne HPC environment.
Relevant line in the code is
ckanext-bulk/ckanext/bulk/zipoutput.py
Line 257 in 3bbfc1d
The README needs to have instructions for the users how to add the permissions.
A declarative, efficient, and flexible JavaScript library for building user interfaces.
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google ❤️ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.