You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@climate.apache.org by "Alex Goodman (JIRA)" <ji...@apache.org> on 2016/10/20 22:23:58 UTC
[jira] [Created] (CLIMATE-882) local data source is not Python 3
compatible
Alex Goodman created CLIMATE-882:
------------------------------------
Summary: local data source is not Python 3 compatible
Key: CLIMATE-882
URL: https://issues.apache.org/jira/browse/CLIMATE-882
Project: Apache Open Climate Workbench
Issue Type: Bug
Affects Versions: 1.1.0
Reporter: Alex Goodman
Assignee: Alex Goodman
Fix For: 1.2.0
Tests are failing for our python 3 builds because of the {{local}} module. Specifically, {{_get_netcdf_variable_name()}} raises an exception because Python 3 implicitly treats strings as unicode instead of bytes. The culprit is specifically this line:
{code}
dims_lower = [dim.encode().lower() for dim in dimensions]
{code}
Because {{encode()}} converts the strings to bytes in python 3.
--
This message was sent by Atlassian JIRA
(v6.3.4#6332)