Contributors mailing list archives

contributors@odoo-community.org

Re: Install development version of addon with pip

by
Therp, Ronald Portier
- 28/12/2016 15:29:55
Hello Stéphane,

Now it works!

Maybe warning for others: I use virtualenv on Debian Jessie. If I create
a new virtualenv, pip 1.5.6 is installed within it by default.
I had to update pip to the new version from within the virtualenv to get
everything going.

Maybe other people will encounter the same problem?

Anyway, I am very glad the problem is solved.

Thanks again, Ronald


Op 28-12-16 om 16:08 schreef Bidoul@pad.odoo-community.org:
> It is due to your pip version (1.5.6 is very old). Can you 
> 
> pip install -U "pip>=9.0.1" 
> 
> and try again?
> 
> -sbi
> 
> On Wed, Dec 28, 2016 at 3:38 PM, Ronald Portier <ronald@therp.nl
> <mailto:ronald@therp.nl>> wrote:
> 
>     Hi Stéphane, Glad to hear from you. Actually I was also looking at
>     the build directory message, but I can find no other setuptools_odoo
>     directory even after searching for it as root. There is no
>     setup_tools directory at all, just the freshly installed egg: #
>     updatedb # locate setuptools_odoo
>     /home/openeyedev/var/projects/oe_political_party_10/buildout_acp/odoo-venv/src/odoo10-addon-partner-multi-relation/setuptools_odoo-1.0.0rc2-py2.7.egg
>     Seems the directory is created by pip and then discarded. Is that
>     possible? Anyway I attach the pip list, as requested. Thanks a lot!
>     Kind regards, Ronald Op 28-12-16 om 15:08 schreef
>     Bidoul@pad.odoo-community.org <mailto:Bidoul@pad.odoo-community.org>:
>     > Hi Ronald,
>     > 
>     > I just tried the same command as yours and it works fine.
>     > 
>     > What is weird is that setuptools-odoo seems to run off some build directory:
>     > 
>     > "build/bdist.linux-x86_64/egg/setuptools_odoo/setup_keywords.py", line
>     > 61, in odoo_addon
>     >       File "build/bdist.linux-x86_64/egg/setuptools_odoo/core.py", line
>     > 217, in prepare_odoo_addon
>     >       File "build/bdist.linux-x86_64/egg/setuptools_odoo/core.py", line
>     > 208, in _find_addons_dir
>     > 
>     > Perhaps you have an old version of setuptools-odoo lying around?
>     > Can you send me the output of "pip list" in the same virtualenv?
>     > 
>     > Best regards,
>     > 
>     > -sbi
>     > 
>     > On Wed, Dec 28, 2016 at 2:38 PM, Ronald Portier      > > wrote: > >
>     Hello, > > I followed with much interest the presentation by
>     Stéphane Bidoul during > the Odoo days on easy installation of Odoo
>     with community addons. > > This presentation: > >
>     http://www.slideshare.net/acsone/odoo-development-workflow-with-pip-and-virtualenv
>     
>     > > > However I have difficulty getting it to work with installing a
>     > development version off an addon. Even though creating as far as I
>     can > see all the needed setup.py stuff. I hope somebody can set me
>     on the > right track. > > This command: > pip install -e
>     git+https://github.com/nl66278/partner-contact\
>      > > >
>     @10.0-partner_multi_relation#egg=odoo10-addon-partner_multi_relation\ >
>     > \&subdirectory=setup/partner_multi_relation > > Results in this
>     output: > > Obtaining odoo10-addon-partner-multi-relation from >
>     git+https://github.com/nl66278/partner-contact@10.0-partner_multi_relation#egg=odoo10-addon-partner_multi_relation&subdirectory=setup/partner_multi_relation
>     <https://github.com/nl66278/partner-contact@10.0-partner_multi_relation#egg=odoo10-addon-partner_multi_relation&subdirectory=setup/partner_multi_relation>
>     >
>     <https://github.com/nl66278/partner-contact@10.0-partner_multi_relation#egg=odoo10-addon-partner_multi_relation&subdirectory=setup/partner_multi_relation
>     <https://github.com/nl66278/partner-contact@10.0-partner_multi_relation#egg=odoo10-addon-partner_multi_relation&subdirectory=setup/partner_multi_relation>>
>     > Cloning https://github.com/nl66278/partner-contact
>      > (to >
>     10.0-partner_multi_relation) to >
>     ./odoo-venv/src/odoo10-addon-partner-multi-relation > Running
>     setup.py >
>     (path:/home/openeyedev/var/projects/oe_political_party_10/buildout_acp/odoo-venv/src/odoo10-addon-partner-multi-relation/setup/partner_multi_relation/setup.py)
>     > egg_info for package odoo10-addon-partner-multi-relation >
>     zip_safe flag not set; analyzing archive contents... > > Installed >
>     /home/openeyedev/var/projects/oe_political_party_10/buildout_acp/odoo-venv/src/odoo10-addon-partner-multi-relation/setuptools_odoo-1.0.0rc2-py2.7.egg
>     > Searching for setuptools-git > Reading
>     https://pypi.python.org/simple/setuptools-git/
>      > > Best match:
>     setuptools-git 1.1 > Downloading >
>     https://pypi.python.org/packages/40/59/108e8fd37f8e846a354eeebc0b083aef76ff391b5d0b24228bd70dfa8af5/setuptools-git-1.1.tar.gz#md5=7b5967e9527c789c3113b07a1f196f6e
>     
>     > > Processing setuptools-git-1.1.tar.gz > Writing
>     /tmp/user/1000/easy_install-VTQu4f/setuptools-git-1.1/setup.cfg >
>     Running setuptools-git-1.1/setup.py -q bdist_egg --dist-dir >
>     /tmp/user/1000/easy_install-VTQu4f/setuptools-git-1.1/egg-dist-tmp-q_Nq7j
>     > > Installed >
>     /home/openeyedev/var/projects/oe_political_party_10/buildout_acp/odoo-venv/src/odoo10-addon-partner-multi-relation/setuptools_git-1.1-py2.7.egg
>     > Traceback (most recent call last): > File "", line 17, in > File >
>     "/home/openeyedev/var/projects/oe_political_party_10/buildout_acp/odoo-venv/src/odoo10-addon-partner-multi-relation/setup/partner_multi_relation/setup.py",
>     > line 5, in > odoo_addon=True, > File
>     "/usr/lib/python2.7/distutils/core.py", line 111, in setup >
>     _setup_distribution = dist = klass(attrs) > File >
>     "/home/openeyedev/var/projects/oe_political_party_10/buildout_acp/odoo-venv/local/lib/python2.7/site-packages/setuptools/dist.py",
>     > line 266, in __init__ > _Distribution.__init__(self,attrs) > File
>     "/usr/lib/python2.7/distutils/dist.py", line 287, in __init__ >
>     self.finalize_options() > File >
>     "/home/openeyedev/var/projects/oe_political_party_10/buildout_acp/odoo-venv/local/lib/python2.7/site-
>     packages/setuptools/dist.py",
>     >     line 301, in finalize_options
>     >             ep.load()(self, ep.name  , value)
>     >           File
>     >     "build/bdist.linux-x86_64/egg/setuptools_odoo/setup_keywords.py", line
>     >     61, in odoo_addon
>     >           File "build/bdist.linux-x86_64/egg/setuptools_odoo/core.py", line
>     >     217, in prepare_odoo_addon
>     >           File "build/bdist.linux-x86_64/egg/setuptools_odoo/core.py", line
>     >     208, in _find_addons_dir
>     >         RuntimeError: No addons namespace found.
>     >         Complete output from command python setup.py egg_info:
>     >         zip_safe flag not set; analyzing archive contents...
>     > 
>     > 
>     > 
>     >     Installed
>     >     /home/openeyedev/var/projects/oe_political_party_10/buildout_acp/odoo-venv/src/odoo10-addon-partner-multi-relation/setuptools_odoo-1.0.0rc2-py2.7.egg
>     > 
>     >     Searching for setuptools-git
>     > 
>     >     Reading https://pypi.python.org/simple/setuptools-git/
>     
>     > > > Best match: setuptools-git 1.1 > > Downloading >
>     https://pypi.python.org/packages/40/59/108e8fd37f8e846a354eeebc0b083aef76ff391b5d0b24228bd70dfa8af5/setuptools-git-1.1.tar.gz#md5=7b5967e9527c789c3113b07a1f196f6e
>     
>     > > > Processing setuptools-git-1.1.tar.gz > > Writing
>     /tmp/user/1000/easy_install-VTQu4f/setuptools-git-1.1/setup.cfg > >
>     Running setuptools-git-1.1/setup.py -q bdist_egg --dist-dir >
>     /tmp/user/1000/easy_install-VTQu4f/setuptools-git-1.1/egg-dist-tmp-q_Nq7j
>     > > > > Installed >
>     /home/openeyedev/var/projects/oe_political_party_10/buildout_acp/odoo-venv/src/odoo10-addon-partner-multi-relation/setuptools_git-1.1-py2.7.egg
>     > > Traceback (most recent call last): > > File "", line 17, in > >
>     File >
>     "/home/openeyedev/var/projects/oe_political_party_10/buildout_acp/odoo-venv/src/odoo10-addon-partner-multi-relation/setup/partner_multi_relation/setup.py",
>     > line 5, in > > odoo_addon=True, > > File
>     "/usr/lib/python2.7/distutils/core.py", line 111, in setup > >
>     _setup_distribution = dist = klass(attrs) > > File >
>     "/home/openeyedev/var/projects/oe_political_party_10/buildout_acp/odoo-venv/local/lib/python2.7/site-packages/setuptools/dist.py",
>     > line 266, in __init__ > > _Distribution.__init__(self,attrs) > >
>     File "/usr/lib/python2.7/distutils/dist.py", line 287, in __init__ >
>     > self.finalize_options() > > File >
>     "/home/openeyedev/var/projects/oe_political_party_10/buildout_acp/odoo-venv/local/lib/python2.7/site-
>     packages/setuptools/dist.py",
>     >     line 301, in finalize_options
>     > 
>     >         ep.load()(self, ep.name  , value)
>     > 
>     >       File "build/bdist.linux-x86_64/egg/setuptools_odoo/setup_keywords.py",
>     >     line 61, in odoo_addon
>     > 
>     >       File "build/bdist.linux-x86_64/egg/setuptools_odoo/core.py", line 217,
>     >     in prepare_odoo_addon
>     > 
>     >       File "build/bdist.linux-x86_64/egg/setuptools_odoo/core.py", line 208,
>     >     in _find_addons_dir
>     > 
>     >     RuntimeError: No addons namespace found.
>     > 
>     >     ----------------------------------------
>     >     Cleaning up...
>     >     Command python setup.py egg_info failed with error code 1 in
>     >     /home/openeyedev/var/projects/oe_political_party_10/buildout_acp/odoo-venv/src/odoo10-addon-partner-multi-relation
>     >     Storing debug log for failure in /home/openeyedev/.pip/pip.log
>     > 
>     >     _______________________________________________
>     >     Mailing-List: http://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:
>     http://odoo-community.org/groups?unsubscribe
>      > > > >
>     _______________________________________________ > Mailing-List:
>     http://odoo-community.org/groups/contributors-15
>      > Post to:
>     mailto:contributors@odoo-community.org
>     <mailto:contributors@odoo-community.org> > Unsubscribe:
>     http://odoo-community.org/groups?unsubscribe
>      >
> 
>     _______________________________________________
>     Mailing-List: http://odoo-community.org/groups/contributors-15
>     
>     Post to: mailto:contributors@odoo-community.org
>     <mailto:contributors@odoo-community.org>
>     Unsubscribe: http://odoo-community.org/groups?unsubscribe
>     
> 
> 
> _______________________________________________
> Mailing-List: http://odoo-community.org/groups/contributors-15
> Post to: mailto:contributors@odoo-community.org
> Unsubscribe: http://odoo-community.org/groups?unsubscribe
>