Closed janvainer closed 3 years ago
It is mentioned in setup.py
:
https://github.com/danpovey/lilcom/blob/7feb4b22084b0952b5b889a348b650d2685ffb51/setup.py#L59
It would be great if PyPI contains prebuilt wheel packages, so that pip install
will install numpy
automatically.
OK.
On Sat, Nov 21, 2020 at 8:40 PM Fangjun Kuang notifications@github.com wrote:
It is mentioned in setup.py:
https://github.com/danpovey/lilcom/blob/7feb4b22084b0952b5b889a348b650d2685ffb51/setup.py#L59
It would be great if PyPI contains prebuilt wheel packages, so that pip install will install numpy automatically.
— You are receiving this because you are subscribed to this thread. Reply to this email directly, view it on GitHub https://github.com/danpovey/lilcom/issues/24#issuecomment-731573841, or unsubscribe https://github.com/notifications/unsubscribe-auth/AAZFLO4HA67D64DXZB7IW4LSQ6YNFANCNFSM4T5YMMQA .
Actually, can you LMK specifically what I have to do? Previously I was doing: python3 ./setup.py sdist; twine upload dist/* For a binary distribution I think I'd need to compile it on a variety of platforms (it contains C++ code).
On Sat, Nov 21, 2020 at 10:14 PM Daniel Povey dpovey@gmail.com wrote:
OK.
On Sat, Nov 21, 2020 at 8:40 PM Fangjun Kuang notifications@github.com wrote:
It is mentioned in setup.py:
https://github.com/danpovey/lilcom/blob/7feb4b22084b0952b5b889a348b650d2685ffb51/setup.py#L59
It would be great if PyPI contains prebuilt wheel packages, so that pip install will install numpy automatically.
— You are receiving this because you are subscribed to this thread. Reply to this email directly, view it on GitHub https://github.com/danpovey/lilcom/issues/24#issuecomment-731573841, or unsubscribe https://github.com/notifications/unsubscribe-auth/AAZFLO4HA67D64DXZB7IW4LSQ6YNFANCNFSM4T5YMMQA .
@danpovey There is something called manylinux. See https://github.com/pypa/manylinux
In summary: a wheel compiled for manylinux can run not only on Ubuntu, Debian, but also on other
Linuxes, like CentOS, Redhat, etc. That is the meaning of many
. This kind of wheel uses only
a limited set of C APIs that are supported by GLIBC on many Linux OSes.
manylinux
is not used for k2, since k2 depends on PyTorch, but PyTorch does not provide a wheel for manylinux after
version 1.5.0 or 1.3.0, I cannot remember the exact version.
BTW: PyPI supports manylinux. So if you can build a manylinux wheel, it can be uploaded to PyPI so that
others can use pip install lilcom
to install it instead of compiling lilcom from source.
I would like to help if you do not have time.
It would be great if you could help. But I don't understand why pip can't know to install NumPy as a dependency of lilcom if lilcom is to be built from source? I don't see what's so difficult about that. Building from source will tend to give more efficient code, which might be a significant consideration.
On Sat, Nov 21, 2020 at 10:31 PM Fangjun Kuang notifications@github.com wrote:
I would like to help if you do not have time.
— You are receiving this because you were mentioned. Reply to this email directly, view it on GitHub https://github.com/danpovey/lilcom/issues/24#issuecomment-731587320, or unsubscribe https://github.com/notifications/unsubscribe-auth/AAZFLO4SIZ6XBQ4WSUELQVTSQ7FMRANCNFSM4T5YMMQA .
I just tried
pip install git+https://github.com/danpovey/lilcom
and got the same error message as the one posted by @janvainer.
I think the problem is that pip install
will try to run setup.py
, but setup.py
assumes that
numpy
has already been installed.
Maybe we need to create a requirements.txt?
On Sat, Nov 21, 2020 at 11:16 PM Fangjun Kuang notifications@github.com wrote:
I just tried
pip install git+https://github.com/danpovey/lilcom
and got the same error message as the one posted by @janvainer https://github.com/janvainer.
I think the problem is that pip install will try to run setup.py, but setup.py assumes that numpy has already been installed.
— You are receiving this because you were mentioned. Reply to this email directly, view it on GitHub https://github.com/danpovey/lilcom/issues/24#issuecomment-731592588, or unsubscribe https://github.com/notifications/unsubscribe-auth/AAZFLO5764VZB74DEDUAQQDSQ7KWNANCNFSM4T5YMMQA .
Maybe we need to create a requirements.txt?
I tried it locally once again with a requirements.txt inside the project but it does not help. It has the same error.
I think the problem may be that the setup.py calls numpy.get_include(), and it imports numpy.
On Sat, Nov 21, 2020 at 11:39 PM Fangjun Kuang notifications@github.com wrote:
Maybe we need to create a requirements.txt?
I tried it locally once again with a requirements.txt inside the project but it does not help. It has the same error.
— You are receiving this because you were mentioned. Reply to this email directly, view it on GitHub https://github.com/danpovey/lilcom/issues/24#issuecomment-731595412, or unsubscribe https://github.com/notifications/unsubscribe-auth/AAZFLOZNZMEV72G5U3KFIG3SQ7NMJANCNFSM4T5YMMQA .
See if you can find the answer from here https://stackoverflow.com/questions/54117786/add-numpy-get-include-argument-to-setuptools-without-preinstalled-numpy
On Sat, Nov 21, 2020 at 11:45 PM Daniel Povey dpovey@gmail.com wrote:
I think the problem may be that the setup.py calls numpy.get_include(), and it imports numpy.
On Sat, Nov 21, 2020 at 11:39 PM Fangjun Kuang notifications@github.com wrote:
Maybe we need to create a requirements.txt?
I tried it locally once again with a requirements.txt inside the project but it does not help. It has the same error.
— You are receiving this because you were mentioned. Reply to this email directly, view it on GitHub https://github.com/danpovey/lilcom/issues/24#issuecomment-731595412, or unsubscribe https://github.com/notifications/unsubscribe-auth/AAZFLOZNZMEV72G5U3KFIG3SQ7NMJANCNFSM4T5YMMQA .
Hi, when installing this package in a fresh virtual environment, the following error eccurs:
By installing numpy beforehand, it is then possible to install lilcom. Could this be mentioned in the README?