home / github / issues

Menu
  • GraphQL API
  • Search all tables

issues: 272643261

This data as json

id node_id number title user state locked assignee milestone comments created_at updated_at closed_at author_association active_lock_reason draft pull_request body reactions performed_via_github_app state_reason repo type
272643261 MDU6SXNzdWUyNzI2NDMyNjE= 1706 Exception when using "python -OO .." 900941 closed 0     1 2017-11-09T17:08:39Z 2017-11-12T04:51:14Z 2017-11-12T04:51:14Z CONTRIBUTOR      

Hi:

I've noticed that importing xarray fails when running a script using -OO option, as shown below.

``` $ python -OO test.py Traceback (most recent call last): File "test.py", line 2, in <module> import xarray File "/Users/huziy/anaconda/envs/py3.6/lib/python3.6/site-packages/xarray/init.py", line 10, in <module> from .core.extensions import (register_dataarray_accessor, File "/Users/huziy/anaconda/envs/py3.6/lib/python3.6/site-packages/xarray/core/extensions.py", line 7, in <module> from .dataarray import DataArray File "/Users/huziy/anaconda/envs/py3.6/lib/python3.6/site-packages/xarray/core/dataarray.py", line 10, in <module> from ..plot.plot import _PlotMethods File "/Users/huziy/anaconda/envs/py3.6/lib/python3.6/site-packages/xarray/plot/init.py", line 4, in <module> from .plot import (plot, line, contourf, contour, File "/Users/huziy/anaconda/envs/py3.6/lib/python3.6/site-packages/xarray/plot/plot.py", line 555, in <module> @_plot2d File "/Users/huziy/anaconda/envs/py3.6/lib/python3.6/site-packages/xarray/plot/plot.py", line 404, in _plot2d plotfunc.doc = '\n'.join((plotfunc.doc, commondoc)) TypeError: sequence item 0: expected str instance, NoneType found (py3.6) huziy at iMac-Sasha in ~/PythonProjects/xarray_playground

$ cat test.py

import xarray ```

# Paste the output here xr.show_versions() here In [2]: xr.__version__ Out[2]: '0.9.6' In [8]: sys.version Out[8]: '3.6.1 |Anaconda 4.4.0 (x86_64)| (default, May 11 2017, 13:04:09) \n[GCC 4.2.1 Compatible Apple LLVM 6.0 (clang-600.0.57)]'
{
    "url": "https://api.github.com/repos/pydata/xarray/issues/1706/reactions",
    "total_count": 0,
    "+1": 0,
    "-1": 0,
    "laugh": 0,
    "hooray": 0,
    "confused": 0,
    "heart": 0,
    "rocket": 0,
    "eyes": 0
}
  completed 13221727 issue

Links from other tables

  • 1 row from issues_id in issues_labels
  • 1 row from issue in issue_comments
Powered by Datasette · Queries took 0.594ms · About: xarray-datasette