[ 
https://issues.apache.org/jira/browse/BEAM-4752?focusedWorklogId=123002&page=com.atlassian.jira.plugin.system.issuetabpanels:worklog-tabpanel#worklog-123002
 ]

ASF GitHub Bot logged work on BEAM-4752:
----------------------------------------

                Author: ASF GitHub Bot
            Created on: 13/Jul/18 19:06
            Start Date: 13/Jul/18 19:06
    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-404925443
 
 
   Looked at this a bit more and my guess is that the version of dill differs 
from job submission (latest, 0.2.8) and on the SDK harness when deserializing 
(0.2.6).  So at submission time, the pickled output references `dill._dill`, 
but when run on the SDK harness, this isn't defined since it uses the old 
version.  So maybe the safe thing to do is to add a similar branch that also 
populates `dill._dill` if it isn't there.

----------------------------------------------------------------
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:
us...@infra.apache.org


Issue Time Tracking
-------------------

    Worklog Id:     (was: 123002)
    Time Spent: 1h 50m  (was: 1h 40m)

> 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: 1h 50m
>  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)

Reply via email to