-
-
Notifications
You must be signed in to change notification settings - Fork 528
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Issue installing date_range from pip #7
Comments
The error is actually |
Ohh, of course! |
If you try to install it(update) inside a Docker container we have the next problem:
|
Is this the official odoo docker image?
If not make sure you pip install -e odoo/
Le ven. 8 juin 2018 à 13:40, José Luis <notifications@github.com> a écrit :
… If you try to install it(update) inside a Docker container we have the
next problem:
***@***.***:/$ pip3 install -U odoo
Collecting odoo
Could not find a version that satisfies the requirement odoo (from versions: )
No matching distribution found for odoo
—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub
<#7 (comment)>, or mute
the thread
<https://github.com/notifications/unsubscribe-auth/AAqPazJQxrzcbBZtcVtU1eygq7ezUoQTks5t6mKmgaJpZM4SGup1>
.
|
@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:/$ |
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. |
Thank you, I will test it |
Same problem:
Could not find a version that satisfies the requirement odoo<12.1dev,>=12.0a |
Any updates? |
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? |
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:
Hope it helps |
I am facing an error when trying to install the module 'date_range' in v11 from pip. See below:
@sbidoul do you think that this may be related to the date_range module, or some other package, such as setuptools?
The text was updated successfully, but these errors were encountered: