Giter Club home page Giter Club logo

Comments (11)

darr1s avatar darr1s commented on August 17, 2024 7

Any updates?

from server-ux.

aturing avatar aturing commented on August 17, 2024 1

Same problem here with the official odoo docker image. Following @sbidoul instructions, I install pip packages as root with the following command and it works:

docker exec -it --user="root" <container_id> pip3 install <package>

Hope it helps

from server-ux.

sbidoul avatar sbidoul commented on August 17, 2024

The error is actually No matching distribution found for odoo<11.1dev,>=11.0a, so you need to pip install or setup.py develop odoo first.

from server-ux.

JordiBForgeFlow avatar JordiBForgeFlow commented on August 17, 2024

Ohh, of course!

from server-ux.

SalahAdDin avatar SalahAdDin commented on August 17, 2024

If you try to install it(update) inside a Docker container we have the next problem:

odoo@8112e474d490:/$ pip3 install -U odoo
Collecting odoo
  Could not find a version that satisfies the requirement odoo (from versions: )
No matching distribution found for odoo

from server-ux.

sbidoul avatar sbidoul commented on August 17, 2024

from server-ux.

SalahAdDin avatar SalahAdDin commented on August 17, 2024

@sbidoul Yes, it is.

docker exec -it odoo.web bash                                                   ✔  3656  15:44:56 
odoo@8112e474d490:/$ pip3 freeze | grep odoo
odoo==11.0.post20180122
odoo@8112e474d490:/$ 

from server-ux.

sbidoul avatar sbidoul commented on August 17, 2024

@SalahAdDin

I'm not sure exactly why this happens, but the problem is related to odoo being installed system wide and pip3 running under the odoo user not "seeing" it as installed. This looks like a pip bug to me but I'm not sure.

Anyway, you can make it work by running pip3 install as root, with such a docker image:

FROM odoo:11
USER 0
RUN apt-get update && apt-get install python3-pyldap python3-vobject python3-qrcode
RUN pip3 install --pre odoo11-addon-date_range
USER odoo

Note the apt install of some required Odoo dependencies that are missing in the official docker image.

from server-ux.

SalahAdDin avatar SalahAdDin commented on August 17, 2024

Thank you, I will test it

from server-ux.

angerangel avatar angerangel commented on August 17, 2024

Same problem:

pip3 list | grep odoo

odoo (12.0.post20190514)
odoo-autodiscover (2.0.0)
setuptools-odoo (2.4.1)

Could not find a version that satisfies the requirement odoo<12.1dev,>=12.0a

from server-ux.

sbidoul avatar sbidoul commented on August 17, 2024

There were improvements in upstream Odoo regarding this issue. If this is still a problem, can you please open a new issue with detailed instruction on how to reproduce at https://github.com/acsone/setuptools-odoo?

from server-ux.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.