Closed dfang closed 8 years ago
@dfang it does work with odoo 9.0.
I'll close the issue, feel free to reopen if you have problems.
@sbidoul i can't install it with pip .
> pip install odoo-autodiscover
Collecting odoo-autodiscover
Using cached odoo_autodiscover-1.0.2-py27-none-any.whl
Collecting odoo>=8.0a (from odoo-autodiscover)
Could not find a version that satisfies the requirement odoo>=8.0a (from odoo-autodiscover) (from versions: )
No matching distribution found for odoo>=8.0a (from odoo-autodiscover)
thanks !
You must install odoo first.
There is an example for 8.0 in the readme, it should be similar for 9.0: https://pypi.python.org/pypi/odoo-autodiscover
@sbidoul i installed odoo from source code.
> pyenv virtualenvs
2.7.11/envs/8.0 (created from /usr/local/var/pyenv/versions/2.7.11)
2.7.11/envs/9.0 (created from /usr/local/var/pyenv/versions/2.7.11)
2.7.11/envs/saas-11 (created from /usr/local/var/pyenv/versions/2.7.11)
2.7.11/envs/saas-9 (created from /usr/local/var/pyenv/versions/2.7.11)
8.0 (created from /usr/local/var/pyenv/versions/2.7.11)
* 9.0 (created from /usr/local/var/pyenv/versions/2.7.11)
saas-11 (created from /usr/local/var/pyenv/versions/2.7.11)
saas-9 (created from /usr/local/var/pyenv/versions/2.7.11)
(9.0)
That should be fine. What does pip list
show?
> pip list
argh (0.26.2)
Babel (1.3)
beautifulsoup4 (4.4.1)
cffi (1.7.0)
cryptography (1.4)
decorator (3.4.0)
docutils (0.12)
enum34 (1.1.6)
feedparser (5.1.3)
gdata (2.0.18)
gevent (1.0.2)
greenlet (0.4.7)
idna (2.1)
ipaddress (1.0.16)
jcconv (0.2.3)
Jinja2 (2.7.3)
lxml (3.4.1)
Mako (1.0.1)
MarkupSafe (0.23)
mock (1.0.1)
ofxparse (0.14)
paramiko (2.0.1)
passlib (1.6.2)
pathtools (0.1.2)
Pillow (2.7.0)
pip (8.1.2)
psutil (2.2.0)
psycogreen (1.0)
psycopg2 (2.5.4)
pyasn1 (0.1.9)
pycparser (2.14)
pydot (1.0.2)
pyparsing (2.0.3)
pyPdf (1.13)
pyserial (2.7)
pysftp (0.2.9)
Python-Chart (1.39)
python-dateutil (2.4.0)
python-ldap (2.4.19)
python-openid (2.2.5)
python-stdnum (1.3)
pytz (2014.10)
pyusb (1.0.0b2)
PyYAML (3.11)
qrcode (5.1)
reportlab (3.1.44)
requests (2.6.0)
setuptools (23.1.0)
six (1.10.0)
suds-jurko (0.6)
vatnumber (1.2)
virtualenv (15.0.2)
vobject (0.6.6)
watchdog (0.8.3)
Werkzeug (0.9.6)
wheel (0.29.0)
XlsxWriter (0.7.7)
xlwt (0.7.5)
(9.0)
As you see odoo is not in that list. You could for instance run pip install -e .
in the odoo source code directory (where the Odoo setup.py
is located).
Hi @sbidoul, after run pip install -e .
, pip install odoo-autodiscover
still failed.
and i see odoo is in pip list
show me pip list again and the error message
@sbidoul pip list:
> pip list
argh (0.26.2)
Babel (1.3)
beautifulsoup4 (4.4.1)
cffi (1.7.0)
cryptography (1.4)
decorator (3.4.0)
docutils (0.12)
enum34 (1.1.6)
feedparser (5.1.3)
funcsigs (1.0.2)
gdata (2.0.18)
gevent (1.0.2)
greenlet (0.4.10)
idna (2.1)
ipaddress (1.0.16)
jcconv (0.2.3)
Jinja2 (2.7.3)
lxml (3.4.1)
Mako (1.0.1)
MarkupSafe (0.23)
mock (1.0.1)
odoo (9.0rc0, /Users/mj23/Development/source_code/dfang/odoo_dev_env/odoo)
ofxparse (0.14)
paramiko (2.0.1)
passlib (1.6.2)
pathtools (0.1.2)
pbr (1.10.0)
Pillow (2.7.0)
pip (8.1.2)
psutil (2.2.0)
psycogreen (1.0)
psycopg2 (2.5.4)
pyasn1 (0.1.9)
pycparser (2.14)
pydot (1.0.2)
pyparsing (2.0.3)
pyPdf (1.13)
pyserial (2.7)
pysftp (0.2.9)
Python-Chart (1.39)
python-dateutil (2.4.0)
python-ldap (2.4.19)
python-openid (2.2.5)
python-stdnum (1.3)
pytz (2014.10)
pyusb (1.0.0)
PyYAML (3.11)
qrcode (5.1)
reportlab (3.1.44)
requests (2.10.0)
setuptools (23.1.0)
six (1.10.0)
suds-jurko (0.6)
vatnumber (1.2)
virtualenv (15.0.2)
vobject (0.6.6)
watchdog (0.8.3)
Werkzeug (0.11.10)
wheel (0.29.0)
XlsxWriter (0.7.7)
xlwt (0.7.5)
(9.0)
pip install :
> pip install odoo-autodiscover
Collecting odoo-autodiscover
Using cached odoo_autodiscover-1.0.2-py27-none-any.whl
Collecting odoo>=8.0a (from odoo-autodiscover)
Could not find a version that satisfies the requirement odoo>=8.0a (from odoo-autodiscover) (from versions: )
No matching distribution found for odoo>=8.0a (from odoo-autodiscover)
(9.0)
That's weird, I don't understand. You see in (from versions: )
that pip does not find odoo.
Last thing to try: pip install -U pip
to get the latest pip.
Or maybe it's due to pyenv
? I usually use virtualenv
.
i don't understand too, 😢
pip is the latest version(8.1.2)...
i use pyenv and pyenv-virtualenv in bash ...
@sbidoul removed pyenv-virtualenv lines in my ~/.bash_profile. then
virtualenv 9.0
. ./9.0/bin/activate
pip install -r requirements.txt
pip install -e .
pip install odoo-autodiscover
still failed:
> pip install odoo-autodiscover
Collecting odoo-autodiscover
Using cached odoo_autodiscover-1.0.2-py27-none-any.whl
Collecting odoo>=8.0a (from odoo-autodiscover)
Could not find a version that satisfies the requirement odoo>=8.0a (from odoo-autodiscover) (from versions: )
No matching distribution found for odoo>=8.0a (from odoo-autodiscover)
(9.0)
I just ran the exact same commands and it does work for me (ubuntu 16.04)
> pip list | grep odoo
odoo (9.0rc0, /home/.../src/odoo)
odoo-autodiscover (1.0.2)
i'm on a mac, system version El Capitan 10.11.5. and python 2.7.11 ...
😞
I've a colleague who uses it on mac, so that must be something else.
@sbidoul, i remove ~/.pip/pip.conf, then installatation succeed. contents in pip.conf
[global]
ignore-installed = true
index-url = https://pypi.tuna.tsinghua.edu.cn/simple
thanks for your help ...
Good. I did not know that ignore-installed
option.
@sbidoul I think it is not a good solution.
@SalahAdDin please elaborate
@sbidoul ignoring the current odoo version you could have incompatibility issues.
We do require a specific odoo version for each addon. It is explicit in the install_require.
So, we have to ignore the current odoo
python package, right?
So, we have to ignore the current odoo python package
No we don't. See also https://github.com/OCA/server-ux/issues/7#issuecomment-397874160
~/.pip/pip.conf
Hey buddy, where I can find pip.conf file on mac os? i've got kinda the same issue..
Hi, it seems cool, but not support odoo 9.0 ?
thanks !