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
Windows build from source cannot find sourceforge dependencies #6343
Comments
Can we use the link from https://sourceforge.net/projects/libjpeg-turbo/files/2.1.3/ ? That is:
That should do auto-mirror selection. For example, I did a wget of that from here in Finland and it selected a mirror from neighbouring Sweden. https://altushost-swe.dl.sourceforge.net/project/libjpeg-turbo/2.1.3/libjpeg-turbo-2.1.3.tar.gz |
I tried
not quite the same as before but still no joy. |
I do not see The SourceForge documentation says wget downloads with automatic mirror should be supported. The website being returned appears to be a HTTP 302 redirect, which does seem to be supported by >>> import urllib.request
>>> len(urllib.request.urlopen("https://sourceforge.net/projects/libjpeg-turbo/files/2.1.3/libjpeg-turbo-2.1.3.tar.gz/download").read())
2260756 |
It will be tested in the PR by AppVeyor and GitHub Actions. |
Normally it would be, but in this case the files are already downloaded from https://github.com/python-pillow/pillow-depends which is why the issue did not affect the CI builds in the first place. To test this, I would remove the Line 32 in 561d7ca
Pillow/.github/workflows/test-windows.yml Line 75 in 561d7ca
|
@nulano this looks to be above my comfort level with GitHub etc. I hope someone else can help me with this. I think the PR is fine but would love some help before it goes out to the world. |
I've made the changes, see my response in the PR: #6345 (comment) |
@hugovk, thank you for the original auto-mirror-download suggestion; I don't know why it didn't work with my (maybe outdated?) Windows port of wget. @nulano, thank you for all the help. You guys are awesome! Now, do I need to do anything more on this? Are these mods to the PR something that I need to, um, push or merge or whatever? (I'm so behind on learning git / GitHub). I'm guessing if I click "Create pull request" on @nulano's changes, then it will create a new PR or update my existing one? If it creates a new PR, what do I do with the old one? And do I want a PR that changes the Windows build or test workflow? Do you want it to download all the dependencies over and over? Obviously I need a clue... |
Oh, no, we don't want to download all the dependencies over and over. Precisely to avoid this problem, where one of the dependencies might become unavailable. Instead, we host dependencies for our CI scripts over at https://github.com/python-pillow/pillow-depends This discussion was just about temporarily ignoring pillow-depends, to demonstrate that your new URL does work. The PR doesn't need to contain that change. |
Thanks, that’s what I thought. So I think I do not need to do anything more
on this pull request.
…On Wed, Jun 1, 2022 at 9:18 PM Andrew Murray ***@***.***> wrote:
Oh, no, we don't want to download all the dependencies over and over.
Precisely to avoid this problem, where one of the dependencies might become
unavailable. Instead, we host dependencies for our CI scripts over at
https://github.com/python-pillow/pillow-depends
This discussion was just about temporarily ignoring pillow-depends, to
demonstrate that your new URL does work. The PR doesn't need to contain
that change.
—
Reply to this email directly, view it on GitHub
<#6343 (comment)>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/AF5CW6BGA7WIQUP47HRQTOTVNARXXANCNFSM5XPEUA6A>
.
You are receiving this because you authored the thread.Message ID:
***@***.***>
|
What did you do?
Attempted to build Pillow from source on Windows
What did you expect to happen?
Build should run OK
What actually happened?
winbuild\build_prepare.py
could not download dependencies becauseSF_MIRROR
https://iweb.dl.sourceforge.net
is not online.What are your OS, Python and Pillow versions?
I find that the line
SF_MIRROR = "https://iweb.dl.sourceforge.net"
is the culprit.Also,
ping https://iweb.dl.sourceforge.net
gets me:Ping request could not find host https://iweb.dl.sourceforge.net. Please check the name and try again.
I changed to
SF_MIRROR = "https://cytranet.dl.sourceforge.net"
and it works.I don't know if
iweb
is down for good or not. Maybebuild_prepare.py
can be modified to have fallback mirrors, or somehow detect which of several SF mirrors are up?The text was updated successfully, but these errors were encountered: