Open fgmacedo opened 3 years ago
First, thanks for reporting.
I don't know much about poetry yet, but I was thinking about giving it a try. Unfortunately I will not have enough time to devote to this soon. In case you would, I am happy to discuss the details.
Thanks @gatagat. I think that a quickly approach is to declare cython and numpy as explicit requirements using install_requires
, I've forked the repo to not be blocked by this and it indeed solved the install issue. If you're ok with this I'll be glad to send a PR.
Let me know if you have any other suggestion.
Best regards!
@fgmacedo do it :)
For people who are struggling to install lap with docker
, you can try to use the other fork of the same project called lap05
.
You can make a search on pypi for the version that most sweet to you.
In your pyproject.toml
:
lap05 = "0.5.1"
numpy = "1.23.2" # You have to add this line because `numpy` is a dependancy of lap
Just make sure, you also install the python3-dev
lib in the section of your docker file where you install system deps.
Example:
# install system dependencies
RUN apt-get update && \
apt-get install -y build-essential && \
apt-get install -y python3-dev && \
apt-get install -y telnet netcat && \
apt-get install -y --no-install-recommends gcc && \
apt-get install -y locales wkhtmltopdf jq && \
apt-get install -y curl
@Almorisson if numpy
is a dependency it should be defined as such in lap05
, isn't it?
numpy
explicitly.Unfortunately, there is no word from @gatagat regarding the PR.
For anyone coming accross this. You can use lapx
instead which will resolve to lap
when importing.
It worked for me when lauching the test scripts of mmdet
pip install lapx
import lap
Its working for lap error fixing. Thanks
I'm trying to install this lib using poetry.
My pyproject.yml has two direct dependencies:
But since lap also needs numpy, there's no way to poetry to resolve dependencies without the lap mentioning that numpy is a install dependency.
I've found that this custom setup instructions is probably the issue, not compatible with the way poetry tries to install:
https://github.com/gatagat/lap/blob/ece5ee9d9876edfdcc770032fbdce66458c6b6a9/setup.py#L204-L222
Error: