AttributeError: 'memoryview' object has no attribute 'obj'

Issue #3016 resolved
Piotr Jurkiewicz created an issue

Apparently there is no attribute obj in memoryview, which points to the underlying object of the memoryview. It appeared in Python 3.3.

Traceback (most recent call last):
  File "/usr/lib/pypy3/lib-python/3/runpy.py", line 193, in _run_module_as_main
    "__main__", mod_spec)
  File "/usr/lib/pypy3/lib-python/3/runpy.py", line 85, in _run_code
    exec(code, run_globals)
  File "/home/jurkiew/flow_stats/flow_stats/convert.py", line 50, in <module>
  File "/home/jurkiew/flow_stats/flow_stats/convert.py", line 46, in main
  File "/home/jurkiew/flow_stats/flow_stats/convert.py", line 26, in convert
    for flow in reader(file):
  File "/home/jurkiew/flow_stats/flow_stats/lib/io.py", line 158, in read_arrays
    obj = mv.obj
AttributeError: 'memoryview' object has no attribute 'obj'

Comments (4)

  1. Log in to comment