acsone / odoo-autodiscover

GNU Lesser General Public License v3.0
8 stars 5 forks source link

Installation issue "No matching distribution found for odoo>=8.0a" #1

Closed dfang closed 8 years ago

dfang commented 8 years ago

Hi, it seems cool, but not support odoo 9.0 ?

thanks !

sbidoul commented 8 years ago

@dfang it does work with odoo 9.0.

I'll close the issue, feel free to reopen if you have problems.

dfang commented 8 years ago

@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 !

sbidoul commented 8 years ago

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

dfang commented 8 years ago

@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)
sbidoul commented 8 years ago

That should be fine. What does pip list show?

dfang commented 8 years ago
> 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)
sbidoul commented 8 years ago

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).

dfang commented 8 years ago

Hi @sbidoul, after run pip install -e ., pip install odoo-autodiscover still failed. and i see odoo is in pip list

sbidoul commented 8 years ago

show me pip list again and the error message

dfang commented 8 years ago

@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)
sbidoul commented 8 years ago

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.

dfang commented 8 years ago

i don't understand too, 😢

pip is the latest version(8.1.2)...

i use pyenv and pyenv-virtualenv in bash ...

dfang commented 8 years ago

@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)
sbidoul commented 8 years ago

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)
dfang commented 8 years ago

i'm on a mac, system version El Capitan 10.11.5. and python 2.7.11 ...

😞

sbidoul commented 8 years ago

I've a colleague who uses it on mac, so that must be something else.

dfang commented 8 years ago

@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 ...

sbidoul commented 8 years ago

Good. I did not know that ignore-installed option.

SalahAdDin commented 6 years ago

@sbidoul I think it is not a good solution.

sbidoul commented 6 years ago

@SalahAdDin please elaborate

SalahAdDin commented 6 years ago

@sbidoul ignoring the current odoo version you could have incompatibility issues.

sbidoul commented 6 years ago

We do require a specific odoo version for each addon. It is explicit in the install_require.

SalahAdDin commented 6 years ago

So, we have to ignore the current odoo python package, right?

sbidoul commented 6 years ago

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

murattishkul commented 5 years ago

~/.pip/pip.conf

Hey buddy, where I can find pip.conf file on mac os? i've got kinda the same issue..