{"action":"created","issue":{"url":"https://api.github.com/repos/simplesconsultoria/sc.embedder/issues/38","labels_url":"https://api.github.com/repos/simplesconsultoria/sc.embedder/issues/38/labels{/name}","comments_url":"https://api.github.com/repos/simplesconsultoria/sc.embedder/issues/38/comments","events_url":"https://api.github.com/repos/simplesconsultoria/sc.embedder/issues/38/events","html_url":"https://github.com/simplesconsultoria/sc.embedder/issues/38","id":112789100,"number":38,"title":"PicklingError: Can't pickle <class 'collective.oembed.interfaces.OEmbedLayer'>: import of module collective.oembed.interfaces failed ","user":{"login":"idgserpro","id":8203476,"avatar_url":"https://avatars.githubusercontent.com/u/8203476?v=3","gravatar_id":"","url":"https://api.github.com/users/idgserpro","html_url":"https://github.com/idgserpro","followers_url":"https://api.github.com/users/idgserpro/followers","following_url":"https://api.github.com/users/idgserpro/following{/other_user}","gists_url":"https://api.github.com/users/idgserpro/gists{/gist_id}","starred_url":"https://api.github.com/users/idgserpro/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/idgserpro/subscriptions","organizations_url":"https://api.github.com/users/idgserpro/orgs","repos_url":"https://api.github.com/users/idgserpro/repos","events_url":"https://api.github.com/users/idgserpro/events{/privacy}","received_events_url":"https://api.github.com/users/idgserpro/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"milestone":null,"comments":7,"created_at":"2015-10-22T12:05:00Z","updated_at":"2015-10-26T14:05:28Z","closed_at":"2015-10-23T19:11:42Z","body":"The sc.embedder 1.0b3 [requires collective.oembed](https://github.com/simplesconsultoria/sc.embedder/blob/1.0b3/setup.py#L55). The sc.embedder 1.0b4 [removed this dependency](https://github.com/simplesconsultoria/sc.embedder/commit/cdb900c731df61d8103225151c6a8d516ad6650f). On sites that have sc.embedder 1.0b3 and collective.oembed installed  and then were upgraded to sc.embedder 1.0b4, the collective.oembed is not added when running buildout. So, when we try install a product in controlpanel the error occurs:\r\n\r\n    Traceback (innermost last):\r\n\r\n        Module ZPublisher.Publish, line 146, in publish\r\n        Module Zope2.App.startup, line 301, in commit\r\n        Module transaction._manager, line 89, in commit\r\n        Module transaction._transaction, line 329, in commit\r\n        Module transaction._transaction, line 443, in _commitResources\r\n        Module ZODB.Connection, line 567, in commit\r\n        Module ZODB.Connection, line 623, in _commit\r\n        Module ZODB.Connection, line 658, in _store_objects\r\n        Module ZODB.serialize, line 422, in serialize\r\n        Module ZODB.serialize, line 431, in _dump\r\n\r\n    PicklingError: Can't pickle <class 'collective.oembed.interfaces.OEmbedLayer'>: import of module collective.oembed.interfaces failed\r\n\r\nIt would be interesting to have a upgrade step that fix this problem if the collective.oembed is not available."},"comment":{"url":"https://api.github.com/repos/simplesconsultoria/sc.embedder/issues/comments/151143878","html_url":"https://github.com/simplesconsultoria/sc.embedder/issues/38#issuecomment-151143878","issue_url":"https://api.github.com/repos/simplesconsultoria/sc.embedder/issues/38","id":151143878,"user":{"login":"idgserpro","id":8203476,"avatar_url":"https://avatars.githubusercontent.com/u/8203476?v=3","gravatar_id":"","url":"https://api.github.com/users/idgserpro","html_url":"https://github.com/idgserpro","followers_url":"https://api.github.com/users/idgserpro/followers","following_url":"https://api.github.com/users/idgserpro/following{/other_user}","gists_url":"https://api.github.com/users/idgserpro/gists{/gist_id}","starred_url":"https://api.github.com/users/idgserpro/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/idgserpro/subscriptions","organizations_url":"https://api.github.com/users/idgserpro/orgs","repos_url":"https://api.github.com/users/idgserpro/repos","events_url":"https://api.github.com/users/idgserpro/events{/privacy}","received_events_url":"https://api.github.com/users/idgserpro/received_events","type":"User","site_admin":false},"created_at":"2015-10-26T14:05:28Z","updated_at":"2015-10-26T14:05:28Z","body":"> but that error can only happen if it was installed at some point and then the egg removed\r\n\r\nYou (sc.embedder) never installed it explicitly but explicitly added it as a dependency. The upgradeStep from collective.oembed was executed, and now sc.embedder removed the egg. If the upgradeStep from this package wasn't supposed to be executed, than a warning should have been in sc.embedder's README, stating \"don't install since we're only using a python dependency from this package\"."}}