{"action":"created","issue":{"url":"https://api.github.com/repos/acsone/setuptools-odoo/issues/10","repository_url":"https://api.github.com/repos/acsone/setuptools-odoo","labels_url":"https://api.github.com/repos/acsone/setuptools-odoo/issues/10/labels{/name}","comments_url":"https://api.github.com/repos/acsone/setuptools-odoo/issues/10/comments","events_url":"https://api.github.com/repos/acsone/setuptools-odoo/issues/10/events","html_url":"https://github.com/acsone/setuptools-odoo/issues/10","id":198227044,"number":10,"title":"setuptools-odoo broken with setuptools >= 31.0.0 for Odoo 10","user":{"login":"sbidoul","id":692075,"avatar_url":"https://avatars2.githubusercontent.com/u/692075?v=4","gravatar_id":"","url":"https://api.github.com/users/sbidoul","html_url":"https://github.com/sbidoul","followers_url":"https://api.github.com/users/sbidoul/followers","following_url":"https://api.github.com/users/sbidoul/following{/other_user}","gists_url":"https://api.github.com/users/sbidoul/gists{/gist_id}","starred_url":"https://api.github.com/users/sbidoul/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/sbidoul/subscriptions","organizations_url":"https://api.github.com/users/sbidoul/orgs","repos_url":"https://api.github.com/users/sbidoul/repos","events_url":"https://api.github.com/users/sbidoul/events{/privacy}","received_events_url":"https://api.github.com/users/sbidoul/received_events","type":"User","site_admin":false},"labels":[{"id":266385671,"url":"https://api.github.com/repos/acsone/setuptools-odoo/labels/bug","name":"bug","color":"fc2929","default":true}],"state":"closed","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":7,"created_at":"2016-12-31T10:20:01Z","updated_at":"2018-05-20T14:40:53Z","closed_at":"2017-09-17T15:59:03Z","author_association":"MEMBER","body":"This affects Odoo 10.\r\n\r\nSymptom is\r\n\r\n```console\r\n$ odoo\r\nTraceback (most recent call last):\r\n  File \"/home/sbi-local/.virtualenvs/odoo-10c/bin/odoo\", line 17, in <module>\r\n    odoo.cli.main()\r\nAttributeError: 'module' object has no attribute 'cli'\r\n```\r\n\r\nThis is apparently due to the `*-nspkg.pth` files creating a dummy `odoo` package before the python program starts, therefore making `import odoo` do nothing and preventing `odoo/__init__.py` from being properly executed.\r\n\r\nUntil a workaround is found, stick to \"setuptools<31\" to build wheels."},"comment":{"url":"https://api.github.com/repos/acsone/setuptools-odoo/issues/comments/390487543","html_url":"https://github.com/acsone/setuptools-odoo/issues/10#issuecomment-390487543","issue_url":"https://api.github.com/repos/acsone/setuptools-odoo/issues/10","id":390487543,"user":{"login":"eLBati","id":1033131,"avatar_url":"https://avatars3.githubusercontent.com/u/1033131?v=4","gravatar_id":"","url":"https://api.github.com/users/eLBati","html_url":"https://github.com/eLBati","followers_url":"https://api.github.com/users/eLBati/followers","following_url":"https://api.github.com/users/eLBati/following{/other_user}","gists_url":"https://api.github.com/users/eLBati/gists{/gist_id}","starred_url":"https://api.github.com/users/eLBati/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/eLBati/subscriptions","organizations_url":"https://api.github.com/users/eLBati/orgs","repos_url":"https://api.github.com/users/eLBati/repos","events_url":"https://api.github.com/users/eLBati/events{/privacy}","received_events_url":"https://api.github.com/users/eLBati/received_events","type":"User","site_admin":false},"created_at":"2018-05-20T14:40:53Z","updated_at":"2018-05-20T14:40:53Z","author_association":"NONE","body":"@sbidoul Hi,\r\n\r\nafter having installed ```odoo-autodiscover==2.0.0```, I successfully installed an OCA module (```odoo11-addon-date-range```) without getting the error.\r\n\r\nIf I build my custom module with ```setuptools-odoo-make-default -d .``` and ```python setup.py bdist_wheel``` and install it, I get\r\n```\r\nTraceback (most recent call last):\r\n  File \"bin/odoo\", line 8, in <module>\r\n    odoo.cli.main()\r\nAttributeError: module 'odoo' has no attribute 'cli'\r\n```\r\nDo you build OCA modules differently?\r\n\r\nThanks"}}
{"actor":{"display_login":"eLBati"}}