-
Notifications
You must be signed in to change notification settings - Fork 3
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
Trouble installing numpy and scipy from requirements #1
Comments
This action is a script running directly on the host machine, not in a container. So the packages installed previously should be seen in this action. I could not reproduce the same error in either ubuntu:20.04 docker image or native ubuntu:20 box. I guess the only way to debug would be directly running it in the github machines. Would you mind sharing a repository that can reproduce the error so that I can fork and test it? |
Hi! Thank you for getting back to me so quickly! I have created the following repo: https://github.com/PeterSR/debug-github-actions-python-unit-test |
from the logs, I found that a docker container was started to run this action, which is not consistent with the docs. I still have no idea why this is, but it is most likely to be the cause of this issue: the container cannot make use of the packages installed on the host machine. I cannot think of an easy fix to this problem for now, so the simplest workaround is to dump this action and write down every command you need in your action file. |
Hi! Thank you for the digging work. It's a shame, but it sounds like that is the best option. |
@PeterSR glad to know it's worked out :D |
That's a good point - But the question is: Does it matter inside GitHub Actions? I am pretty new to it, but it seems very much like Docker, where each build is a separate container, isolated from other projects. |
It depends. refer to the docs (this part can be trusted at least 😆 ) |
Thank you so much for the link and insights! Very helpful. Will have a look at it. Btw feel free to close this issue if you find it outside the scope of the project to do anything about it. |
closed until a solution is found |
Trying to install
numpy
andscipy
to use in Python unit test.Using the following action
.github/workflows/python-test.yml
:requirements.txt
:It fails with the following output:
output.txt
The Ubuntu packages installed are based on https://docs.scipy.org/doc/scipy/reference/building/linux.html#debian-ubuntu, but I have also tried a bunch of other packages.
I suspect that packages installed earlier are not visible for this action when it is running.
Any ideas?
The text was updated successfully, but these errors were encountered: