{"action":"closed","issue":{"url":"https://api.github.com/repos/axiom-data-science/docker-pycsw/issues/5","repository_url":"https://api.github.com/repos/axiom-data-science/docker-pycsw","labels_url":"https://api.github.com/repos/axiom-data-science/docker-pycsw/issues/5/labels{/name}","comments_url":"https://api.github.com/repos/axiom-data-science/docker-pycsw/issues/5/comments","events_url":"https://api.github.com/repos/axiom-data-science/docker-pycsw/issues/5/events","html_url":"https://github.com/axiom-data-science/docker-pycsw/issues/5","id":196913279,"number":5,"title":"pycsw python 3 problem persists?","user":{"login":"rsignell-usgs","id":1872600,"avatar_url":"https://avatars.githubusercontent.com/u/1872600?v=3","gravatar_id":"","url":"https://api.github.com/users/rsignell-usgs","html_url":"https://github.com/rsignell-usgs","followers_url":"https://api.github.com/users/rsignell-usgs/followers","following_url":"https://api.github.com/users/rsignell-usgs/following{/other_user}","gists_url":"https://api.github.com/users/rsignell-usgs/gists{/gist_id}","starred_url":"https://api.github.com/users/rsignell-usgs/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/rsignell-usgs/subscriptions","organizations_url":"https://api.github.com/users/rsignell-usgs/orgs","repos_url":"https://api.github.com/users/rsignell-usgs/repos","events_url":"https://api.github.com/users/rsignell-usgs/events{/privacy}","received_events_url":"https://api.github.com/users/rsignell-usgs/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":3,"created_at":"2016-12-21T11:47:20Z","updated_at":"2016-12-21T17:24:25Z","closed_at":"2016-12-21T17:24:25Z","body":"I saw the container on [docker hub was updated 7 days ago](https://hub.docker.com/r/axiom/docker-pycsw/tags/), but I just tried installing the new container and I'm getting the same problems when exporting:\r\n```\r\ndocker logs pycsw\r\n...\r\nDec 21 11:38:20 fd343fd10718 pycsw_export: Found 12 records\r\nDec 21 11:38:20 fd343fd10718 pycsw_export:\r\nDec 21 11:38:20 fd343fd10718 pycsw_export: Exporting records\r\nDec 21 11:38:20 fd343fd10718 pycsw_export:\r\nDec 21 11:38:20 fd343fd10718 pycsw_export: Processing 5798c696e4b0589fa1c728a5\r\nDec 21 11:38:20 fd343fd10718 pycsw_export: Writing to file /export/5798c696e4b0589fa1c728a5.xml\r\nDec 21 11:38:20 fd343fd10718 pycsw_export: Traceback (most recent call last):\r\nDec 21 11:38:20 fd343fd10718 pycsw_export:   File \"/opt/pycsw/pycsw/core/admin.py\", line 396, in export_records\r\nDec 21 11:38:20 fd343fd10718 pycsw_export:     xml.write(record.xml)\r\nDec 21 11:38:20 fd343fd10718 pycsw_export: TypeError: write() argument must be str, not bytes\r\nDec 21 11:38:20 fd343fd10718 pycsw_export:\r\nDec 21 11:38:20 fd343fd10718 pycsw_export: During handling of the above exception, another exception occurred:\r\nDec 21 11:38:20 fd343fd10718 pycsw_export:\r\nDec 21 11:38:20 fd343fd10718 pycsw_export: Traceback (most recent call last):\r\nDec 21 11:38:20 fd343fd10718 pycsw_export:   File \"bin/pycsw-admin.py\", line 266, in <module>\r\nDec 21 11:38:20 fd343fd10718 pycsw_export:     admin.export_records(CONTEXT, DATABASE, TABLE, XML_DIRPATH)\r\nDec 21 11:38:20 fd343fd10718 pycsw_export:   File \"/opt/pycsw/pycsw/core/admin.py\", line 398, in export_records\r\nDec 21 11:38:20 fd343fd10718 pycsw_export:     raise RuntimeError(\"Error writing to %s\" % filename, err)\r\nDec 21 11:38:20 fd343fd10718 pycsw_export: RuntimeError: ('Error writing to /export/5798c696e4b0589fa1c728a5.xml', TypeError('write() argument must be str, not bytes',))\r\n```\r\n\r\nI logged into the container and it seems that the libxml2 version is the [recommended 2.9.3](https://github.com/geopython/pycsw/issues/454#issuecomment-257889079):\r\n```\r\ndocker exec -it pycsw bash\r\nroot@fd343fd10718:/opt/pycsw# conda list libxml2\r\n# packages in environment at /opt/conda:\r\n#\r\nlibxml2                   2.9.3                         9    conda-forge\r\n```\r\n@kwilcox,  #help?\r\n"}}
{"actor":{"display_login":"rsignell-usgs"}}