[
https://issues.apache.org/jira/browse/BEAM-4752?focusedWorklogId=122999&page=com.atlassian.jira.plugin.system.issuetabpanels:worklog-tabpanel#worklog-122999
]
ASF GitHub Bot logged work on BEAM-4752:
----------------------------------------
Author: ASF GitHub Bot
Created on: 13/Jul/18 18:58
Start Date: 13/Jul/18 18:58
Worklog Time Spent: 10m
Work Description: charlesccychen commented on issue #5946: Revert
"[BEAM-4752] Add support for newer dill dependency"
URL: https://github.com/apache/beam/pull/5946#issuecomment-404923467
Thanks, LGTM. I don't quite understand how the change breaks the SDK
harness though:
```
DataflowRuntimeException: Dataflow pipeline failed. State: FAILED, Error:
java.util.concurrent.ExecutionException: java.lang.RuntimeException: Error
received from SDK harness for instruction -83: Traceback (most recent call
last):
File
"/usr/local/lib/python2.7/site-packages/apache_beam/runners/worker/sdk_worker.py",
line 134, in _execute
response = task()
File
"/usr/local/lib/python2.7/site-packages/apache_beam/runners/worker/sdk_worker.py",
line 169, in <lambda>
self._execute(lambda: worker.do_instruction(work), work)
File
"/usr/local/lib/python2.7/site-packages/apache_beam/runners/worker/sdk_worker.py",
line 215, in do_instruction
request.instruction_id)
File
"/usr/local/lib/python2.7/site-packages/apache_beam/runners/worker/sdk_worker.py",
line 234, in process_bundle
self.data_channel_factory)
File
"/usr/local/lib/python2.7/site-packages/apache_beam/runners/worker/bundle_processor.py",
line 230, in __init__
self.ops = self.create_execution_tree(self.process_bundle_descriptor)
File
"/usr/local/lib/python2.7/site-packages/apache_beam/runners/worker/bundle_processor.py",
line 272, in create_execution_tree
descriptor.transforms, key=topological_height, reverse=True)])
File
"/usr/local/lib/python2.7/site-packages/apache_beam/runners/worker/bundle_processor.py",
line 207, in wrapper
result = cache[args] = func(*args)
File
"/usr/local/lib/python2.7/site-packages/apache_beam/runners/worker/bundle_processor.py",
line 255, in get_operation
in descriptor.transforms[transform_id].outputs.items()
File
"/usr/local/lib/python2.7/site-packages/apache_beam/runners/worker/bundle_processor.py",
line 254, in <dictcomp>
for tag, pcoll_id
File
"/usr/local/lib/python2.7/site-packages/apache_beam/runners/worker/bundle_processor.py",
line 207, in wrapper
result = cache[args] = func(*args)
File
"/usr/local/lib/python2.7/site-packages/apache_beam/runners/worker/bundle_processor.py",
line 255, in get_operation
in descriptor.transforms[transform_id].outputs.items()
File
"/usr/local/lib/python2.7/site-packages/apache_beam/runners/worker/bundle_processor.py",
line 254, in <dictcomp>
for tag, pcoll_id
File
"/usr/local/lib/python2.7/site-packages/apache_beam/runners/worker/bundle_processor.py",
line 207, in wrapper
result = cache[args] = func(*args)
File
"/usr/local/lib/python2.7/site-packages/apache_beam/runners/worker/bundle_processor.py",
line 258, in get_operation
transform_id, transform_consumers)
File
"/usr/local/lib/python2.7/site-packages/apache_beam/runners/worker/bundle_processor.py",
line 362, in create_operation
return creator(self, transform_id, transform_proto, payload, consumers)
File
"/usr/local/lib/python2.7/site-packages/apache_beam/runners/worker/bundle_processor.py",
line 499, in create
serialized_fn, parameter.side_inputs)
File
"/usr/local/lib/python2.7/site-packages/apache_beam/runners/worker/bundle_processor.py",
line 537, in _create_pardo_operation
dofn_data = pickler.loads(serialized_fn)
File
"/usr/local/lib/python2.7/site-packages/apache_beam/internal/pickler.py", line
238, in loads
return dill.loads(s)
File "/usr/local/lib/python2.7/site-packages/dill/dill.py", line 277, in
loads
return load(file)
File "/usr/local/lib/python2.7/site-packages/dill/dill.py", line 266, in
load
obj = pik.load()
File "/usr/local/lib/python2.7/pickle.py", line 864, in load
dispatch[key](self)
File "/usr/local/lib/python2.7/pickle.py", line 1096, in load_global
klass = self.find_class(module, name)
File "/usr/local/lib/python2.7/site-packages/dill/dill.py", line 423, in
find_class
return StockUnpickler.find_class(self, module, name)
File "/usr/local/lib/python2.7/pickle.py", line 1130, in find_class
__import__(module)
ImportError: No module named _dill
```
----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on GitHub and use the
URL above to go to the specific comment.
For queries about this service, please contact Infrastructure at:
[email protected]
Issue Time Tracking
-------------------
Worklog Id: (was: 122999)
Time Spent: 1.5h (was: 1h 20m)
> Import error in apache_beam.internal.pickler: "'module' object has no
> attribute 'dill'"
> ---------------------------------------------------------------------------------------
>
> Key: BEAM-4752
> URL: https://issues.apache.org/jira/browse/BEAM-4752
> Project: Beam
> Issue Type: Bug
> Components: sdk-py-core
> Affects Versions: 2.4.0
> Environment: CentOS Linux release 7.4.1708
> Python 2.7.13
> Reporter: Barry Hart
> Assignee: Ahmet Altay
> Priority: Major
> Fix For: 2.4.0
>
> Time Spent: 1.5h
> Remaining Estimate: 0h
>
> I'm seeing the following error (stack trace below). I looked at the module
> structure of the {{dill}} library, and it does not have a {{dill}} submodule
> (although it *does* have a {{_dill}} submodule). I think the correct way to
> reference {{Pickler}} is simply {{dill.Pickler.}}
> {noformat}
> Traceback (most recent call last):
> File "script/beam_run_model.py", line 29, in <module>
> import apache_beam as beam
> File
> "/usr/local/pyenv/versions/2.7.13/lib/python2.7/site-packages/apache_beam/__init__.py",
> line 84, in <module>
> import apache_beam.internal.pickler
> File
> "/usr/local/pyenv/versions/2.7.13/lib/python2.7/site-packages/apache_beam/internal/pickler.py",
> line 107, in <module>
> dill.dill.Pickler.dispatch[type])
> AttributeError: 'module' object has no attribute 'dill'{noformat}
> Oddly, I have successfully used Beam 2.4.0 in the past with this version of
> Dill. ¯_(ツ)_/¯
--
This message was sent by Atlassian JIRA
(v7.6.3#76005)