Contributors mailing list archives
contributors@odoo-community.org
Browse archives
Re: Install development version of addon with pip
by
SYLEAM SARL, Sylvain Garancher
Hello,
Maybe a requirement on the pip/setuptools/other version could be added in setuptools_odoo ?
Maybe a requirement on the pip/setuptools/other version could be added in setuptools_odoo ?
Regards,
--
--
2016-12-28 16:37 GMT+01:00 Ronald Portier <ronald@therp.nl>:
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/ 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-buildout_acp/odoo-venv/src/ odoo10-addon-partner-multi- relation/setuptools_odoo-1.0. 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- > > > > > 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/workflow-with-pip-and- virtualenv nl66278/partner-contact\ > > > > > @10.0-partner_multi_relation#egg=odoo10-addon-partner_ > <https://github.com/nl66278/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 partner-contact@10.0-partner_ > > > > <https://github.com/nl66278/multi_relation#egg=odoo10- addon-partner_multi_relation& subdirectory=setup/partner_ multi_relation partner-contact@10.0-partner_ multi_relation#egg=odoo10- addon-partner_multi_relation& subdirectory=setup/partner_ multi_relation 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/> <https://github.com/nl66278/partner-contact@10.0-partner_ >> > > Cloning https://github.com/nl66278/multi_relation#egg=odoo10- addon-partner_multi_relation& subdirectory=setup/partner_ multi_relation 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/ > > > > Processing setuptools-git-1.1.tar.gz > Writing > /tmp/user/1000/easy_install-108e8fd37f8e846a354eeebc0b083a ef76ff391b5d0b24228bd70dfa8af5 /setuptools-git-1.1.tar.gz# md5= 7b5967e9527c789c3113b07a1f196f 6e 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/ 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/ 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/> > > > > Best match: setuptools-git 1.1 > > Downloading > > https://pypi.python.org/packages/40/59/ > > > > > Processing setuptools-git-1.1.tar.gz > > Writing > /tmp/user/1000/easy_install-108e8fd37f8e846a354eeebc0b083a ef76ff391b5d0b24228bd70dfa8af5 /setuptools-git-1.1.tar.gz# md5= 7b5967e9527c789c3113b07a1f196f 6e 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/ 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 >______________________________
_________________
Mailing-List: http://odoo-community.org/groups/contributors-15
Post to: mailto:contributors@odoo-community.org
Unsubscribe: http://odoo-community.org/groups?unsubscribe
************************************************************ ******************** Ce message et toutes les pièces jointes (ci-après le "message") sont établis à l'intention exclusive de ses destinataires et sont confidentiels. Si vous recevez ce message par erreur, merci de le détruire et d'en avertir immédiatement l'expéditeur. Toute utilisation de ce message non conforme à sa destination, toute diffusion ou toute publication, totale ou partielle, est interdite, sauf autorisation expresse. L'internet ne permettant pas d'assurer l'intégrité de ce message, SYLEAM décline toute responsabilité au titre de ce message, dans l'hypothèse où il aurait été modifié. This message and any attachments (the "message") is intended solely for the addressees and is confidential. If you receive this message in error, please delete it and immediately notify the sender. Any use not in accord with its purpose, any dissemination or disclosure, either whole or partial, is prohibited except after formal approval. The internet can not guarantee the integrity of this message. SYLEAM cannot therefore be liable for the message if modified. ****************************** ****************************** ********************
Reference
-
Install development version of addon with pip
byTherp, Ronald Portier-
Re: Install development version of addon with pip
byAcsone SA/NV, Stéphane Bidoul -
Re: Install development version of addon with pip
bySYLEAM SARL, Sylvain Garancher -
Re: Install development version of addon with pip
byTherp, Ronald Portier -
Re: Install development version of addon with pip
byAcsone SA/NV, Stéphane Bidoul -
Re: Install development version of addon with pip
byTherp, Ronald Portier -
Re: Install development version of addon with pip
byAcsone SA/NV, Stéphane Bidoul
-