Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

1.4.2: ERROR: test_graph_pickling (__main__.TestGraphAPI) #256

Closed
sandrotosi opened this issue Feb 15, 2021 · 1 comment
Closed

1.4.2: ERROR: test_graph_pickling (__main__.TestGraphAPI) #256

sandrotosi opened this issue Feb 15, 2021 · 1 comment

Comments

@sandrotosi
Copy link

Hello,
with the newly released 1.4.2, i get this error when running the unittests:

ERROR: test_graph_pickling (__main__.TestGraphAPI)
----------------------------------------------------------------------
Traceback (most recent call last):
  File "/build/pydot-1.4.2/test/pydot_unittest.py", line 114, in test_graph_pickling
    pickle.dumps(g)
AttributeError: Can't pickle local object 'Common.create_attribute_methods.<locals>.<lambda>'
@peternowee
Copy link
Member

Hi @sandrotosi, thanks for reporting. This test does not fail on plain pydot 1.4.2 as we distribute it here on GitHub and on PyPI.org, but only after applying the additional patch for the Debian package debian/patches/serialize-via-dill.patch, applied since Debian pydot 1.4.1-2. The test failure was happening with Debian pydot 1.4.1-2 already, which is why the test suite was disabled for Debian pydot 1.4.1-3.

I reviewed that patch a few months ago in #217 (comment), but did not get any reply. I added another comment today with some suggested solutions: #217 (comment).

Hope we can move this discussion to there. Closing this issue here.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants