You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I saw the container on docker hub was updated 7 days ago, but I just tried installing the new container and I'm getting the same problems when exporting:
docker logs pycsw
...
Dec 21 11:38:20 fd343fd10718 pycsw_export: Found 12 records
Dec 21 11:38:20 fd343fd10718 pycsw_export:
Dec 21 11:38:20 fd343fd10718 pycsw_export: Exporting records
Dec 21 11:38:20 fd343fd10718 pycsw_export:
Dec 21 11:38:20 fd343fd10718 pycsw_export: Processing 5798c696e4b0589fa1c728a5
Dec 21 11:38:20 fd343fd10718 pycsw_export: Writing to file /export/5798c696e4b0589fa1c728a5.xml
Dec 21 11:38:20 fd343fd10718 pycsw_export: Traceback (most recent call last):
Dec 21 11:38:20 fd343fd10718 pycsw_export: File "/opt/pycsw/pycsw/core/admin.py", line 396, in export_records
Dec 21 11:38:20 fd343fd10718 pycsw_export: xml.write(record.xml)
Dec 21 11:38:20 fd343fd10718 pycsw_export: TypeError: write() argument must be str, not bytes
Dec 21 11:38:20 fd343fd10718 pycsw_export:
Dec 21 11:38:20 fd343fd10718 pycsw_export: During handling of the above exception, another exception occurred:
Dec 21 11:38:20 fd343fd10718 pycsw_export:
Dec 21 11:38:20 fd343fd10718 pycsw_export: Traceback (most recent call last):
Dec 21 11:38:20 fd343fd10718 pycsw_export: File "bin/pycsw-admin.py", line 266, in <module>
Dec 21 11:38:20 fd343fd10718 pycsw_export: admin.export_records(CONTEXT, DATABASE, TABLE, XML_DIRPATH)
Dec 21 11:38:20 fd343fd10718 pycsw_export: File "/opt/pycsw/pycsw/core/admin.py", line 398, in export_records
Dec 21 11:38:20 fd343fd10718 pycsw_export: raise RuntimeError("Error writing to %s" % filename, err)
Dec 21 11:38:20 fd343fd10718 pycsw_export: RuntimeError: ('Error writing to /export/5798c696e4b0589fa1c728a5.xml', TypeError('write() argument must be str, not bytes',))
I logged into the container and it seems that the libxml2 version is the recommended 2.9.3:
docker exec -it pycsw bash
root@fd343fd10718:/opt/pycsw# conda list libxml2
# packages in environment at /opt/conda:
#
libxml2 2.9.3 9 conda-forge
I saw the container on docker hub was updated 7 days ago, but I just tried installing the new container and I'm getting the same problems when exporting:
I logged into the container and it seems that the libxml2 version is the recommended 2.9.3:
@kwilcox, #help?
The text was updated successfully, but these errors were encountered: