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
Build error when installing with pip #2231
Comments
One quick alternative is to rely on conda and use |
Hi @jcarpent ! If I want to help fix this issue, where should I start? |
Do you have the exact same error, though? If I had to guess, the main error in the log above is If you have the exact same error, you should start by giving more details on how you got there (how was Python installed? how was the virtual env created? full list of packages that were installed from PyPI, etc.) You can also try to break down the package installation error to the first dependency that doesn't work. If after reading your logs carefully you realize you have a different error: same process but in a different post 😉 |
@WanqingXia: these two points are also feedback to your original issue. From reading your logs, it seems the first dependency that doesn't work is "cmeel-boost": you can then try to |
My apologies, I missed understood the original issue. I didn't realize that it was a local installation and assumed that @WanqingXia was talking about some GitHub Action that should publish Pinocchio to pypi but was falling. Short answer, I do not have this issue. Once again, my apologies... |
This is not the right time: I am currently upgrading cmeel-boost. It will take some time while cmeel boost 1.84 is available, and eigenpy and pinocchio binaries are not ready for boost 1.84. @WanqingXia : we have working binaries, so I'd first like to know why you are building from source. Can you provide your python version, pip version, OS and architecture ? |
Ok, I saw 20.04 (I assume x86_64) and py 3.9. How did you install python 3.9 on ubuntu 20.04 ? |
Thank you for still tracking this issue. I downloaded python 3.9 from the official website Gzipped source tarball. After installing it, I used it as the interpreter in my PyCharm venv. |
Ok, I tried to reproduce your issue in a Dockerfile, and it is working for me. Is there anything you did differently ? FROM ubuntu:20.04
ADD https://www.python.org/ftp/python/3.9.16/Python-3.9.16.tgz /
# https://devguide.python.org/getting-started/setup-building/#build-dependencies
RUN echo 'deb-src http://archive.ubuntu.com/ubuntu/ focal main' >> /etc/apt/sources.list
RUN --mount=type=cache,sharing=locked,target=/var/cache/apt \
--mount=type=cache,sharing=locked,target=/var/lib/apt \
apt-get update -y && DEBIAN_FRONTEND=noninteractive apt-get install -qqy --no-install-recommends \
build-essential gdb lcov pkg-config \
libbz2-dev libffi-dev libgdbm-dev libgdbm-compat-dev liblzma-dev \
libncurses5-dev libreadline6-dev libsqlite3-dev libssl-dev \
lzma lzma-dev tk-dev uuid-dev zlib1g-dev libmpdec-dev
RUN tar xf /Python-3.9.16.tgz
WORKDIR /Python-3.9.16
RUN ./configure \
&& make \
&& make install
RUN python3 -m venv venv \
&& . venv/bin/activate \
&& pip install pin To me, this correctly lead to:
|
Please just try again correctly. There are 3 commands to run, and I already provided those:
|
iai-lab@iailab-System-Product-Name:
(new-venv) iai-lab@iailab-System-Product-Name:~/Downloads$ |
Thanks. I don't understand why it can download some binaries but not others. Please show me the output of this in the venv:
|
Here is the output
|
Just chiming in that we encounter the same error when trying to install Pinocchio from PyPI in My quick guess is that the relevant part is:
|
I am using PyCharm virtual env to install pin, I met the following build error. I have tried to install cmeel but it does not fix the problem. Does anyone know how to fix this?
Thanks in advance.
System
The text was updated successfully, but these errors were encountered: