Contributors mailing list archives
contributors@odoo-community.org
Browse archives
Re: Install development version of addon with pip
by
Acsone SA/NV, Stéphane Bidoul
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 <ronald@therp.nl> 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_ 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- Cloning https://github.com/nl66278/partner_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/ 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/ 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/ 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
Unsubscribe: http://odoo-community.org/groups?unsubscribe
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
-