-
Notifications
You must be signed in to change notification settings - Fork 47
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
setuptools-odoo broken with setuptools >= 31.0.0 for Odoo 10 #10
Comments
Wheels on wheelhouse.odoo-community.org/oca are unaffected so far. |
A possible workaround: acsone/odoo@a5b490c |
acsone/odoo@a5b490c works for me |
Patch works for me too. |
$ odoo Traceback (most recent call last): File "/home/sbi-local/.virtualenvs/odoo-10c/bin/odoo", line 17, in <module> odoo.cli.main() AttributeError: 'module' object has no attribute 'cli' from https://github.com/acsone/odoo/blob/a5b490c4e9bb017dcf951e9ecb5cba22b486b4ad/setup/odoo
@eLBati I just submitted odoo/odoo#15718 |
As a better alternative to odoo/odoo#15718 I implemented an automatic patching mechanism in If you want to test with Odoo 10, just Feedback welcome. |
odoo-autodiscover 2.0.0b1 is on pypi. People impacted by this issue can test if |
@sbidoul Hi, after having installed If I build my custom module with
Do you build OCA modules differently? Thanks |
Hi @eLBati, That should work. Can you provide a bit more details? eg result of |
Hi @sbidoul after checking all involved packages, it seems I did not update |
Hello @sbidoul many thanks |
Hi Jonathan! AFAIK this problem does not occur on v11 with python 3. By chance would you have some remaining |
Actually I already fixed this point.
Hope you can see what am I doing wrong with those informations thanks again |
Unfortunately not. Look in sys.path everywhere you have and |
OK so I cleaned all my project restarting into new environements defining a quick-step to reproduce the error:
|
@sbidoul when you say |
I very much doubt it's a bug in setuptools-odoo. Must be something in your environment. |
I'm facing exactly the same issue as @JonathanNEMRY |
Can you provide a minimal project (setup.py, etc) with a detailed procedure to reproduce? |
It has https issues with pypi.org since 2020-10-14. This means odoo-autodiscover>=2 must be used on Odoo<=10 projects. See also acsone/setuptools-odoo#10
It has https issues with pypi.org since 2020-10-14. This means odoo-autodiscover>=2 must be used on Odoo<=10 projects. See also acsone/setuptools-odoo#10
$ odoo Traceback (most recent call last): File "/home/sbi-local/.virtualenvs/odoo-10c/bin/odoo", line 17, in <module> odoo.cli.main() AttributeError: 'module' object has no attribute 'cli' from https://github.com/acsone/odoo/blob/a5b490c4e9bb017dcf951e9ecb5cba22b486b4ad/setup/odoo
This affects Odoo 10.
Symptom is
This is apparently due to the
*-nspkg.pth
files creating a dummyodoo
package before the python program starts, therefore makingimport odoo
do nothing and preventingodoo/__init__.py
from being properly executed.Until a workaround is found, stick to "setuptools<31" to build wheels.
The text was updated successfully, but these errors were encountered: