Contributors mailing list archives

contributors@odoo-community.org

Browse archives

Avatar

Re: setuptools-odoo: packaging multiple addons

by
Therp, Ronald Portier
- 15/04/2017 23:05:50
Thanks a lot to everybody. I figured out hwo to correctly pip install
the modules I will need. Testing now with web_sheet_full_width.

My bottleneck is that I do not see how auto-discover works with 10.0. It
is supposed to be included, but after installing and restarting, and
even after upgrading everything, no pip installed module becomes visible
as an addon:

(virtualenv)openeyedev@laptop:odoo$ pip list | grep odoo
odoo (10.0,
/home/openeyedev/var/projects/oe_political_party_10/buildout_acp/parts/odoo)
odoo10-addon-web-sheet-full-width (10.0.1.0.1)

Even though I can install the module with:
$ odoo -d  -i web_sheet_full_width

The module never becomes visible in the list of modules (although in the
table _ir_module_module it has state installed), and it has no effect
either.

Kind regards,

Ronald


Op 14-04-17 om 19:38 schreef Pedro M. Baeza (Tecnativa):
> It should be odoo10-addon-partner-multi-relation as it was renamed in
> version 9, but the module is still not ported, so that's why you can't
> install with any of the 2 names.
> 
> Regards.
> 
> 2017-04-14 19:08 GMT+02:00 Ronald Portier <ronald@therp.nl
> <mailto:ronald@therp.nl>>:
> 
>     Hi,
> 
>     I have another, but possibly related problem with pip installing addons:
> 
>     (buildout)openeyedev@laptop:buildout_acp$ pip install
>     odoo10-addon-partner_relations -f https://wheelhouse.odoo-community.org/oca Downloading/unpacking
>      odoo10-addon-partner-relations
>       Could not find any downloads that satisfy the requirement
>     odoo10-addon-partner-relations
>     Cleaning up...
>     No distributions at all found for odoo10-addon-partner-relations
>     Storing debug log for failure in /home/openeyedev/.pip/pip.log
> 
>     Actually cannot install any addon this way.
> 
>     Maybe some pointer were to look?
> 
>     pip log ends in:
>         Skipping link
>     https://wheelhouse.odoo-community.org/oca/odoo9_addons_oca_website_cms-9.0.20170328-py2-none-any.whl
>     
>     (from https://wheelhouse.odoo-community.org/oca/
>     ); wrong project name
>     (not odoo10-addon-partner-relations)
>         Skipping link
>     https://wheelhouse.odoo-community.org/oca/odoo9_addons_oca_website_cms-9.0.20170409-py2-none-any.whl
>     
>     (from https://wheelhouse.odoo-community.org/oca/
>     ); wrong project name
>     (not odoo10-addon-partner-relations)
>       Could not find any downloads that satisfy the requirement
>     odoo10-addon-partner-relations
>     Cleaning up...
>     No distributions at all found for odoo10-addon-partner-relations
>     Exception information:
>     Traceback (most recent call last):
>       File "/usr/lib/python2.7/dist-packages/pip/basecommand.py", line 122,
>     in main
>         status = self.run(options, args)
>       File "/usr/lib/python2.7/dist-packages/pip/commands/install.py", line
>     290, in run
>         requirement_set.prepare_files(finder,
>     force_root_egg_info=self.bundle, bundle=self.bundle)
>       File "/usr/lib/python2.7/dist-packages/pip/req.py", line 1178, in
>     prepare_files
>         url = finder.find_requirement(req_to_install, upgrade=self.upgrade)
>       File "/usr/lib/python2.7/dist-packages/pip/index.py", line 277, in
>     find_requirement
>         raise DistributionNotFound('No distributions at all found for %s' % req)
>     DistributionNotFound: No distributions at all found for
>     odoo10-addon-partner-relations
> 
> 
>     Kind regards,
> 
>     Ronald
> 
> 
> 
>     Op 18-03-17 om 08:53 schreef Mignon, Laurent:
>     > Hi,
>     > 
>     > This is a know issue with setuptools >= 0.31.0.0 and odoo 10. You can
>     > take a look at https://github.com/acsone/setuptools-odoo/issues/10
>     . A
>     > workkaround is described.
>     > 
>     > Regards,
>     > 
>     > lmi
>     > 
>     > On Sat, Mar 18, 2017 at 2:08 AM, Stephen Medina      > > wrote:
>     > 
>     >     Hello,
>     > 
>     > 
>     >     I am not able package multiple addons using setuptools-odoo as per
>     >     the instructions in the documentation
>     >     .
>     >     Is the 'odoo' module is being hidden by the 'odoo.addons' namespace?
>     > 
>     > 
>     >     *$ odoo --database=odootest*
>     >     Traceback (most recent call last):
>     >       File "/home/odoo/venv/bin/odoo", line 9, in 
>     >         odoo.cli.main()
>     >     AttributeError: 'module' object has no attribute 'cli'
>     > 
>     >     Packing a single module works fine. Has anyone tried this recently?
>     > 
>     > 
>     >     -Stephen
>     > 
>     >     _______________________________________________
>     >     Mailing-List: https://odoo-community.org/groups/contributors-15
>     > > Post to:
>     mailto:contributors@odoo-community.org
>     <mailto:contributors@odoo-community.org> >
>     <mailto:contributors@odoo-community.org
>     <mailto:contributors@odoo-community.org>> > Unsubscribe:
>     https://odoo-community.org/groups?unsubscribe
>     
>     >     
>     > 
>     > 
>     > 
>     > 
>     > -- 
>     > *Laurent Mignon*
>     > Senior software engineer
>     > 
>     > Tel: +352 20 21 10 20 32 > Fax: +352 20 21 10 21
>     
>     > Email: laurent.mignon@acsone.eu <mailto:laurent.mignon@acsone.eu> 
>     > 
>     > Acsone SA, Succursale de Luxembourg 
>     > 22, Zone Industrielle
>     > ​ ​
>     > ​| L-8287 Kehlen, Luxembourg
>     > TVA LU24733605
>     > ​ | ​RCS B160400​
>     > 
>     > ​
>     > Acsone sa/nv
>     > Boulevard de la Woluwe 56, b4  Woluwedal
>     > ​ | B-1200 Bruxelles - Brussel 
>     > RPM Bruxelles 0835.207.216 RPR Brussel  
>     > 
>     > www.acsone.eu  
>     > 
>     > 
>     > 
>     > _______________________________________________
>     > Mailing-List: https://odoo-community.org/groups/contributors-15
>     > Post to:
>     mailto:contributors@odoo-community.org
>     <mailto:contributors@odoo-community.org> > Unsubscribe:
>     https://odoo-community.org/groups?unsubscribe
>      >
> 
>     _______________________________________________
>     Mailing-List: https://odoo-community.org/groups/contributors-15
>     
>     Post to: mailto:contributors@odoo-community.org
>     <mailto:contributors@odoo-community.org>
>     Unsubscribe: https://odoo-community.org/groups?unsubscribe
>     
> 
> 
> _______________________________________________
> Mailing-List: https://odoo-community.org/groups/contributors-15
> Post to: mailto:contributors@odoo-community.org
> Unsubscribe: https://odoo-community.org/groups?unsubscribe
> 


Reference